Files
Talks/talks-slides-dist/templates/deployment.yaml
Le Prévost-Corvellec Arnault 4ffed1b5fa
Some checks failed
Talks slides — image & chart / vars (push) Successful in 2s
Talks slides — image & chart / Build container image (push) Failing after 41s
Talks slides — image & chart / Helm chart (push) Failing after 43s
ci
2026-04-08 20:13:50 +02:00

68 lines
2.0 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "talks-slides.fullname" . }}
labels:
{{- include "talks-slides.labels" . | nindent 4 }}
spec:
{{- if not .Values.slides.autoscaling.enabled }}
replicas: {{ .Values.slides.replicaCount }}
{{- end }}
selector:
matchLabels:
{{- include "talks-slides.selectorLabels" . | nindent 6 }}
template:
metadata:
labels:
{{- include "talks-slides.selectorLabels" . | nindent 8 }}
{{- with .Values.slides.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.slides.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
securityContext:
seccompProfile:
type: RuntimeDefault
containers:
- name: nginx
image: "{{ .Values.slides.image.repository }}:{{ .Values.slides.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.slides.image.pullPolicy }}
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop: ["ALL"]
readOnlyRootFilesystem: false
ports:
- name: http
containerPort: 80
protocol: TCP
livenessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 10
periodSeconds: 30
readinessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 5
periodSeconds: 10
resources:
{{- toYaml .Values.slides.resources | nindent 12 }}
{{- with .Values.slides.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.slides.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.slides.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}