cert-manager-webhook-domene.../chart/templates/deployment.yaml
Tommy Skaug 6bf4a93fe3
feat: Refactor Dockerfile and project structure for cert-manager-webhook-domeneshop
- Moved Go module files to the `src` directory.
- Updated Dockerfile to copy source files from `src` and adjusted build context.
- Introduced a multi-stage build process for better image management.
- Added Helm chart files and CI configurations for automated builds and releases.
- Removed obsolete Makefile and unnecessary files.
- Updated README to reflect project changes and usage instructions.
- Added initial versioning and metadata for the Helm chart.
2025-03-15 22:29:27 +01:00

77 lines
2.3 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "cert-manager-webhook-domeneshop.fullname" . }}
labels:
app: {{ include "cert-manager-webhook-domeneshop.name" . }}
chart: {{ include "cert-manager-webhook-domeneshop.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app: {{ include "cert-manager-webhook-domeneshop.name" . }}
release: {{ .Release.Name }}
template:
metadata:
labels:
app: {{ include "cert-manager-webhook-domeneshop.name" . }}
release: {{ .Release.Name }}
spec:
serviceAccountName: {{ include "cert-manager-webhook-domeneshop.fullname" . }}
securityContext:
runAsNonRoot: true
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
args:
- --tls-cert-file=/tls/tls.crt
- --tls-private-key-file=/tls/tls.key
env:
- name: GROUP_NAME
value: {{ .Values.groupName | quote }}
ports:
- name: https
containerPort: 443
protocol: TCP
livenessProbe:
httpGet:
scheme: HTTPS
path: /healthz
port: https
readinessProbe:
httpGet:
scheme: HTTPS
path: /healthz
port: https
volumeMounts:
- name: certs
mountPath: /tls
readOnly: true
resources:
{{ toYaml .Values.resources | indent 12 }}
volumes:
- name: certs
secret:
secretName: {{ include "cert-manager-webhook-domeneshop.servingCertificate" . }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}