Add Lemmy.
This commit is contained in:
51
lemmy/deployment-ui.yaml
Normal file
51
lemmy/deployment-ui.yaml
Normal file
@@ -0,0 +1,51 @@
|
||||
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
|
||||
Reference in New Issue
Block a user