forked from esara/robot-shop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
user-deployment.yaml
51 lines (51 loc) · 1.2 KB
/
user-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
apiVersion: apps/v1
kind: Deployment
metadata:
name: user
labels:
service: user
spec:
replicas: 1
selector:
matchLabels:
service: user
template:
metadata:
labels:
service: user
spec:
{{ if .Values.psp.enabled }}
serviceAccountName: robot-shop
{{ end }}
containers:
- name: user
image: {{ .Values.image.repo }}/rs-user:{{ .Values.image.version }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
# agent networking access
- name: INSTANA_AGENT_HOST
valueFrom:
fieldRef:
fieldPath: status.hostIP
ports:
- containerPort: 8080
resources:
limits:
cpu: 200m
memory: 100Mi
requests:
cpu: 100m
memory: 50Mi
restartPolicy: Always
{{- with .Values.user.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.user.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.user.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}