44 lines
1.4 KiB
YAML
44 lines
1.4 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ .Release.Name }}
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
type: RollingUpdate
|
|
rollingUpdate: {maxSurge: 1, maxUnavailable: 0}
|
|
selector:
|
|
matchLabels: {app.kubernetes.io/instance: {{ .Release.Name }}, app.kubernetes.io/component: web}
|
|
template:
|
|
metadata:
|
|
labels: {app.kubernetes.io/instance: {{ .Release.Name }}, app.kubernetes.io/component: web}
|
|
spec:
|
|
automountServiceAccountToken: false
|
|
securityContext:
|
|
seccompProfile: {type: RuntimeDefault}
|
|
containers:
|
|
- name: nginx
|
|
image: {{ required "image is required" .Values.image | quote }}
|
|
imagePullPolicy: IfNotPresent
|
|
securityContext: {allowPrivilegeEscalation: false}
|
|
ports: [{name: http, containerPort: 8080}]
|
|
env:
|
|
- {name: ATLAS_GATEWAY_URL, value: {{ .Values.gatewayUrl | quote }}}
|
|
readinessProbe:
|
|
httpGet: {path: /healthz, port: http}
|
|
periodSeconds: 5
|
|
livenessProbe:
|
|
httpGet: {path: /healthz, port: http}
|
|
periodSeconds: 15
|
|
resources:
|
|
requests: {cpu: 10m, memory: 16Mi}
|
|
limits: {cpu: 200m, memory: 64Mi}
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ .Release.Name }}
|
|
spec:
|
|
selector: {app.kubernetes.io/instance: {{ .Release.Name }}, app.kubernetes.io/component: web}
|
|
ports: [{name: http, port: 8080, targetPort: http}]
|