47 lines
1.6 KiB
YAML
47 lines
1.6 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ include "calink.fullname" . }}-frontend
|
|
labels:
|
|
{{- include "calink.frontend.labels" . | nindent 4 }}
|
|
{{- with .Values.commonAnnotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
replicas: {{ .Values.frontend.replicas }}
|
|
selector:
|
|
matchLabels:
|
|
{{- include "calink.frontend.selectorLabels" . | nindent 6 }}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
{{- include "calink.frontend.selectorLabels" . | nindent 8 }}
|
|
{{- with .Values.commonAnnotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
spec:
|
|
containers:
|
|
- name: frontend
|
|
image: "{{ .Values.frontend.image.repository }}:{{ .Values.frontend.image.tag }}"
|
|
imagePullPolicy: {{ .Values.frontend.image.pullPolicy }}
|
|
ports:
|
|
- name: http
|
|
containerPort: 80
|
|
protocol: TCP
|
|
livenessProbe:
|
|
httpGet:
|
|
path: {{ .Values.frontend.healthCheck.path }}
|
|
port: http
|
|
initialDelaySeconds: {{ .Values.frontend.healthCheck.initialDelaySeconds }}
|
|
periodSeconds: {{ .Values.frontend.healthCheck.periodSeconds }}
|
|
readinessProbe:
|
|
httpGet:
|
|
path: {{ .Values.frontend.healthCheck.path }}
|
|
port: http
|
|
initialDelaySeconds: {{ .Values.frontend.healthCheck.initialDelaySeconds }}
|
|
periodSeconds: {{ .Values.frontend.healthCheck.periodSeconds }}
|
|
resources:
|
|
{{- toYaml .Values.frontend.resources | nindent 12 }}
|