forked from xuhao318/springboot_example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDeployment-6.yaml
executable file
·216 lines (216 loc) · 6.67 KB
/
Deployment-6.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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
---
kind: "Deployment"
apiVersion: "apps/v1"
metadata:
name: "environments"
labels:
nirmata.io/deployment.name: "environments"
nirmata.io/service.name: "environments"
nirmata.io/type: "app"
spec:
progressDeadlineSeconds: 2147483647
replicas: 2
revisionHistoryLimit: 5
selector:
matchLabels:
nirmata.io/service.name: "environments"
matchExpressions: []
strategy:
type: "RollingUpdate"
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
template:
metadata:
annotations: {}
labels:
nirmata.io/deployment.name: "environments"
nirmata.io/service.name: "environments"
nirmata.io/type: "app"
nirmata.io/force.rolling.update: "4"
spec:
serviceAccountName: "environments-service"
automountServiceAccountToken: false
restartPolicy: "Always"
terminationGracePeriodSeconds: 30
nodeSelector: {}
schedulerName: "default-scheduler"
priorityClassName: "nirmata-app-critical"
dnsPolicy: "ClusterFirst"
imagePullSecrets:
- name: registry-v2.nirmata.io
- name: ghcr.io
containers:
- name: "environments"
image: "ghcr.io/nirmata/environments:4.20.0-3.g6b895a0"
command: []
args: []
terminationMessagePath: "/dev/termination-log"
terminationMessagePolicy: "File"
imagePullPolicy: "Always"
ports:
- name: "yourkit"
containerPort: 10001
protocol: "TCP"
- name: "https"
containerPort: 8443
protocol: "TCP"
- name: "jmx"
containerPort: 9999
protocol: "TCP"
env:
- name: "nirmata.environments-processor"
value: "false"
- name: "nirmata.timeseries.readpreference"
value: "secondary"
- name: "nirmata.mongodb.readpreference.nearest"
value: "Alarm,AlarmType"
- name: "JAVA_TOOL_OPTIONS"
value: "-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9999 \
-Dcom.sun.management.jmxremote.rmi.port=9999 -Dcom.sun.management.jmxremote.authenticate=false \
-Dcom.sun.management.jmxremote.ssl=false"
- name: DD_AGENT_HOST
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: DD_ENTITY_ID
valueFrom:
fieldRef:
fieldPath: metadata.uid
- name: "service.es.address"
value: "elasticsearch"
- name: "JAVA_OPTS"
value: "-XshowSettings:vm -XX:MaxRAMPercentage=70.0 -agentpath:/usr/local/YourKit-JavaProfiler-2023.5/bin/linux-musl-x86-64/libyjpagent.so=port=10001,listen=all"
- name: "nirmata.environment.name"
valueFrom:
fieldRef:
apiVersion: "v1"
fieldPath: "metadata.namespace"
- name: "eureka.registration.enabled"
value: "false"
- name: "nirmata.service.dnsclient"
value: "true"
- name: "nirmata.locks.mongo.enabled"
value: "true"
- name: "service.mongodb.seedSet"
value: "mongodb:27017"
- name: "nirmata.zookeeper.address"
value: "zookeeper:2181"
- name: "nirmata.kafka.address"
value: "kafka:9092"
- name: "service.logs.level"
value: "warn"
- name: "nirmata.workflow.usecurator"
value: "false"
- name: "nirmata.alarms.curatorforworkflow"
value: "false"
- name: nirmata.gateway.address
valueFrom:
configMapKeyRef:
key: nirmata.url
name: nirmata-config
- name: "nirmata.tunnelServer.address"
valueFrom:
configMapKeyRef:
name: "nirmata-config"
key: "tunnelServerAddress"
- name: "HTTP_PROXY"
valueFrom:
configMapKeyRef:
name: "nirmata-config"
key: "HTTP_PROXY"
- name: "HTTPS_PROXY"
valueFrom:
configMapKeyRef:
name: "nirmata-config"
key: "HTTPS_PROXY"
- name: "NO_PROXY"
valueFrom:
configMapKeyRef:
name: "nirmata-config"
key: "NO_PROXY"
- name: "http_proxy"
valueFrom:
configMapKeyRef:
name: "nirmata-config"
key: "http_proxy"
- name: "https_proxy"
valueFrom:
configMapKeyRef:
name: "nirmata-config"
key: "https_proxy"
- name: "no_proxy"
valueFrom:
configMapKeyRef:
name: "nirmata-config"
key: "no_proxy"
livenessProbe:
initialDelaySeconds: 120
timeoutSeconds: 1
periodSeconds: 10
successThreshold: 1
failureThreshold: 3
httpGet:
path: "/environments/status"
port: 8443
scheme: "HTTPS"
readinessProbe:
initialDelaySeconds: 10
timeoutSeconds: 1
periodSeconds: 10
successThreshold: 1
failureThreshold: 3
httpGet:
path: "/environments/status"
port: 8443
scheme: "HTTPS"
resources:
limits:
memory: "6Gi"
requests:
memory: "6Gi"
cpu: 2
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
securityContext:
supplementalGroups: []
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: topology.kubernetes.io/zone
operator: In
values:
- us-west-2a
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchExpressions:
- key: nirmata.io/deployment.name
operator: In
values:
- cluster
- environments
topologyKey: topology.kubernetes.io/hostname
weight: 1
tolerations:
- key: "nirmata.io/dedicated-worker-group"
operator: "Equal"
value: "worker-group-1"
effect: "NoSchedule"
- key: "node.kubernetes.io/not-ready"
operator: "Exists"
effect: "NoExecute"
tolerationSeconds: 20
- key: "node.kubernetes.io/unreachable"
operator: "Exists"
effect: "NoExecute"
tolerationSeconds: 20