-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample.yaml
More file actions
101 lines (96 loc) · 2.9 KB
/
example.yaml
File metadata and controls
101 lines (96 loc) · 2.9 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
---
name: Full Example
description: Test example with service account and service
xrPath: examples/apps/example.yaml
expected:
resourceCount: 3
resourceTypes:
- ServiceAccount
- Service
- Deployment
resources:
serviceaccount:
kind: ServiceAccount
apiVersion: v1
metadata:
name: my-service-account
labels:
app.kubernetes.io/name: hello-app
app.kubernetes.io/instance: hello-app
app.kubernetes.io/managed-by: crossplane
automountServiceAccountToken: true
service:
kind: Service
apiVersion: v1
metadata:
labels:
app.kubernetes.io/name: hello-app
app.kubernetes.io/instance: hello-app
app.kubernetes.io/managed-by: crossplane
annotations:
crossplane.io/composition-resource-name: service
spec:
type: ClusterIP
ports:
- port: 8080
targetPort: http
protocol: TCP
name: http
selector:
app.kubernetes.io/name: hello-app
app.kubernetes.io/instance: hello-app
deployment:
kind: Deployment
apiVersion: apps/v1
metadata:
labels:
app.kubernetes.io/name: hello-app
app.kubernetes.io/instance: hello-app
app.kubernetes.io/managed-by: crossplane
annotations:
crossplane.io/composition-resource-name: deployment
example.crossplane.io/managed-by: "function-template-typescript"
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: hello-app
app.kubernetes.io/instance: hello-app
template:
metadata:
labels:
app.kubernetes.io/name: hello-app
app.kubernetes.io/instance: hello-app
environment: "demo"
tier: "frontend"
annotations:
example.crossplane.io/managed-by: "function-template-typescript"
spec:
serviceAccountName: my-service-account
containers:
- name: hello-app
image: gcr.io/google-samples/hello-app:1.0
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 8080
protocol: TCP
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 50m
memory: 64Mi
livenessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 10
periodSeconds: 10
readinessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 5
periodSeconds: 5