generated from crossplane/function-template-go
-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathobserved-k8s.yaml
More file actions
63 lines (63 loc) · 1.32 KB
/
observed-k8s.yaml
File metadata and controls
63 lines (63 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# This file simulates observed resources as they would appear in a running cluster
# Use this with: crossplane render xr.yaml composition-k8s.yaml functions.yaml -o observed-k8s.yaml
---
apiVersion: v1
kind: Service
metadata:
name: example-service
annotations:
crossplane.io/composition-resource-name: service
spec:
type: ClusterIP
selector:
app: example
ports:
- port: 80
targetPort: 8080
status: {}
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: example-deployment
annotations:
crossplane.io/composition-resource-name: deployment
spec:
replicas: 3
selector:
matchLabels:
app: example
template:
metadata:
labels:
app: example
spec:
containers:
- name: app
image: nginx:latest
ports:
- containerPort: 8080
status:
replicas: 3
updatedReplicas: 3
availableReplicas: 3
readyReplicas: 3
conditions:
- type: Available
status: "True"
reason: MinimumReplicasAvailable
message: Deployment has minimum availability
- type: Progressing
status: "True"
reason: NewReplicaSetAvailable
message: ReplicaSet has successfully progressed
---
apiVersion: v1
kind: ConfigMap
metadata:
name: example-config
annotations:
crossplane.io/composition-resource-name: config
data:
config.yaml: |
key: value