Files
asset-management.sayantan.p…/helm-chart/charts/frontend/templates/deployment.yml
2026-06-10 12:25:52 +05:30

57 lines
1.8 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "chart.fullname" . }}-deployment
labels:
{{- include "chart.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "chart.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "chart.selectorLabels" . | nindent 8 }}
spec:
{{- if .Values.global.imagePullSecret.enabled }}
imagePullSecrets:
- name: {{ .Release.Name }}-registry-secret
{{- else if .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml .Values.imagePullSecrets | nindent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
livenessProbe:
httpGet:
path: /apps/{{repo_name}}/v{{version}}/api/health/ready
port: http
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
timeoutSeconds: 10
readinessProbe:
httpGet:
path: /apps/{{repo_name}}/v{{version}}/api/health/ready
port: http
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
timeoutSeconds: 10
resources:
{{- toYaml .Values.resources | nindent 10 }}
{{- with .Values.env }}
env:
{{- toYaml . | nindent 10 }}
{{- end }}