Files
traefik-error-pages/templates/deployment.yaml
T
feedc0de fbacd9845b
Validate, publish chart and promote Traefik error pages / publish (push) Successful in 20s
Validate, publish chart and promote Traefik error pages / validate (push) Successful in 15s
Add Argo CD Helm chart release
2026-10-19 08:43:29 +02:00

81 lines
2.4 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "traefik-error-pages.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "traefik-error-pages.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
maxSurge: 1
selector:
matchLabels:
{{- include "traefik-error-pages.selectorLabels" . | nindent 6 }}
template:
metadata:
annotations:
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
labels:
{{- include "traefik-error-pages.selectorLabels" . | nindent 8 }}
spec:
automountServiceAccountToken: false
securityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
containers:
- name: nginx
image: {{ printf "%s:%s" .Values.image.repository .Chart.AppVersion | quote }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: 8080
readinessProbe:
httpGet:
path: /healthz
port: http
initialDelaySeconds: 1
periodSeconds: 5
livenessProbe:
httpGet:
path: /healthz
port: http
initialDelaySeconds: 5
periodSeconds: 10
resources:
{{- toYaml .Values.resources | nindent 12 }}
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
volumeMounts:
- name: nginx-config
mountPath: /etc/nginx/conf.d
readOnly: true
- name: error-page
mountPath: /usr/share/nginx/html
readOnly: true
- name: tmp
mountPath: /tmp
volumes:
- name: nginx-config
configMap:
name: {{ include "traefik-error-pages.fullname" . }}
items:
- key: default.conf
path: default.conf
- name: error-page
configMap:
name: {{ include "traefik-error-pages.fullname" . }}
items:
- key: error-page.html
path: error-page.html
- name: tmp
emptyDir: {}