Files
admin-platform-v3/templates/frontend-deployment.yaml

43 lines
1.1 KiB
YAML

{{- if .Values.frontend.enabled -}}
apiVersion: apps/v1
kind: Deployment
metadata:
name: tower-frontend
labels:
{{- include "tower.labels" . | nindent 4 }}
odoosky.io/role: frontend
spec:
replicas: {{ .Values.frontend.replicas }}
selector:
matchLabels:
app.kubernetes.io/name: tower
odoosky.io/role: frontend
template:
metadata:
labels:
{{- include "tower.labels" . | nindent 8 }}
odoosky.io/role: frontend
spec:
containers:
- name: tower-ui
image: "{{ .Values.frontend.image.repository }}:{{ .Values.frontend.image.tag }}"
imagePullPolicy: {{ .Values.frontend.image.pullPolicy }}
ports:
- name: http
containerPort: 80
readinessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 2
periodSeconds: 5
livenessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 10
periodSeconds: 15
resources:
{{- toYaml .Values.frontend.resources | nindent 12 }}
{{- end }}