Newer
Older
Armen Gasparyan (EPAM)
committed
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: {{ .Values.conf.appName | quote}}
name: {{ .Values.conf.appName | quote}}
namespace: {{ .Release.Namespace | quote}}
Armen Gasparyan (EPAM)
committed
spec:
selector:
matchLabels:
app: {{ .Values.conf.appName | quote}}
Armen Gasparyan (EPAM)
committed
replicas: 1
template:
metadata:
labels:
app: {{ .Values.conf.appName | quote}}
Armen Gasparyan (EPAM)
committed
annotations:
rollme: {{ randAlphaNum 5 | quote }}
sidecar.istio.io/proxyCPU: {{ .Values.istio.proxyCPU | quote }}
sidecar.istio.io/proxyMemory: {{ .Values.istio.proxyMemory | quote }}
sidecar.istio.io/proxyCPULimit: {{ .Values.istio.proxyCPULimit | quote }}
sidecar.istio.io/proxyMemoryLimit: {{ .Values.istio.proxyMemoryLimit | quote }}
Armen Gasparyan (EPAM)
committed
spec:
containers:
- name: {{ .Values.conf.appName | quote}}
image: {{ .Values.data.image | quote}}
imagePullPolicy: {{ .Values.data.imagePullPolicy | quote}}
Armen Gasparyan (EPAM)
committed
envFrom:
- configMapRef:
name: {{ .Values.conf.configmap | quote}}
- secretRef:
name: {{ .Values.conf.notificationRedisSecretName | quote }}
{{- if .Values.global.onPremEnabled }}
name: {{ .Values.conf.rabbitmqSecretName | quote}}
name: {{ .Values.conf.openidSecretName | quote}}
Armen Gasparyan (EPAM)
committed
securityContext:
allowPrivilegeEscalation: false
runAsUser: 0
ports:
- containerPort: 8080
resources:
requests:
cpu: {{ .Values.data.requestsCpu | quote}}
memory: {{ .Values.data.requestsMemory | quote}}
{{- if .Values.global.limitsEnabled }}
Armen Gasparyan (EPAM)
committed
limits:
cpu: {{ .Values.data.limitsCpu | quote}}
memory: {{ .Values.data.limitsMemory | quote}}
serviceAccountName: {{ .Values.data.serviceAccountName | quote}}