-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathtest-deployment.yaml
138 lines (138 loc) · 3.33 KB
/
test-deployment.yaml
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
apiVersion: v1
kind: Service
metadata:
labels:
app: operator
name: operator-service
namespace: compute
spec:
ports:
- name: http
port: 80
protocol: TCP
targetPort: 80
selector:
app: operator
type: ClusterIP
---
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
env: test
tmp: tmp
labels:
app: operator
enclave: "true"
flavor: operator
name: operator
namespace: compute
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 1
selector:
matchLabels:
app: operator
enclave: "true"
flavor: operator
strategy:
rollingUpdate:
maxSurge: 0
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
annotations:
env: test
labels:
app: operator
enclave: "true"
flavor: operator
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: aws-nitro-enclaves-k8s-dp
operator: In
values:
- enabled
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: enclave
operator: In
values:
- "true"
topologyKey: kubernetes.io/hostname
containers:
- image: ghcr.io/iabtechlab/uid2-operator-eks-uid2:5.40.48.100
imagePullPolicy: Always
name: operator
ports:
- containerPort: 80
protocol: TCP
- containerPort: 9080
name: prometheus
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: /ops/healthcheck
port: 80
scheme: HTTP
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
resources:
limits:
aws.ec2.nitro/nitro_enclaves: "1"
cpu: "1"
hugepages-1Gi: 48Gi
requests:
aws.ec2.nitro/nitro_enclaves: "1"
cpu: "1"
hugepages-1Gi: 48Gi
startupProbe:
failureThreshold: 60
httpGet:
path: /ops/healthcheck
port: 80
scheme: HTTP
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /etc/config/config-values
name: configmap
readOnly: true
- mountPath: /etc/secret/secret-value
name: secret-volume
readOnly: true
- mountPath: /dev/hugepages
name: hugepage
readOnly: false
dnsPolicy: ClusterFirst
imagePullSecrets:
- name: gh-uid2-docker
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- name: configmap
projected:
sources:
- configMap:
name: operator-and-validator-operators-configmap
- emptyDir:
medium: HugePages-1Gi
name: hugepage
- name: secret-volume
secret:
secretName: operator-secrets