Step 4: enable frontend + path-based routing + tower:0.2.0

This commit is contained in:
git_admin
2026-04-26 18:17:38 +03:00
parent 13a1fcd448
commit 753ad486e7
4 changed files with 81 additions and 14 deletions

View File

@@ -0,0 +1,42 @@
{{- 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 }}