52 lines
1.2 KiB
YAML
52 lines
1.2 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: lemmy-ui
|
|
namespace: {{ .namespace }}
|
|
spec:
|
|
replicas: {{ .uiReplicas }}
|
|
selector:
|
|
matchLabels:
|
|
component: ui
|
|
template:
|
|
metadata:
|
|
labels:
|
|
component: ui
|
|
spec:
|
|
securityContext:
|
|
runAsNonRoot: true
|
|
runAsUser: 1000
|
|
runAsGroup: 1000
|
|
seccompProfile:
|
|
type: RuntimeDefault
|
|
containers:
|
|
- name: ui
|
|
image: {{ .uiImage }}
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
capabilities:
|
|
drop: [ALL]
|
|
readOnlyRootFilesystem: false
|
|
env:
|
|
- name: LEMMY_UI_LEMMY_INTERNAL_HOST
|
|
value: "lemmy-backend:{{ .backendPort }}"
|
|
- name: LEMMY_UI_LEMMY_EXTERNAL_HOST
|
|
value: "{{ .domain }}"
|
|
- name: LEMMY_UI_HTTPS
|
|
value: "true"
|
|
ports:
|
|
- containerPort: {{ .uiPort }}
|
|
name: http
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: {{ .uiPort }}
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 10
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: {{ .uiPort }}
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 5
|