Step 4: enable frontend + path-based routing + tower:0.2.0
This commit is contained in:
42
templates/frontend-deployment.yaml
Normal file
42
templates/frontend-deployment.yaml
Normal 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 }}
|
||||
Reference in New Issue
Block a user