netflux-kubernetes/deploy/base/deploy-element.yaml

55 lines
1.3 KiB
YAML
Raw Permalink Normal View History

2022-05-11 18:21:35 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: element
labels:
2022-06-05 15:44:52 +00:00
app: element
component: web
2022-05-11 18:21:35 +00:00
app.kubernetes.io/name: element
app.kubernetes.io/instance: element
annotations:
ignore-check.kube-linter.io/no-read-only-root-fs: "Element image requires write access for Nginx configuration"
2023-09-10 22:18:13 +00:00
ignore-check.kube-linter.io/run-as-non-root: "Not yet implemented"
2022-05-11 18:21:35 +00:00
spec:
selector:
matchLabels:
2022-06-05 15:44:52 +00:00
app: element
component: web
2022-05-11 18:21:35 +00:00
template:
metadata:
labels:
2022-06-05 15:44:52 +00:00
app: element
component: web
2022-05-11 18:21:35 +00:00
app.kubernetes.io/name: element
app.kubernetes.io/instance: element
spec:
containers:
- name: element
2023-10-08 17:40:14 +00:00
image: vectorim/element-web:latest
2023-10-08 18:14:15 +00:00
imagePullPolicy: Always
volumeMounts:
- name: config
mountPath: /app/config.json
subPath: config.json
ports:
- containerPort: 80
name: http
protocol: TCP
livenessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 10
periodSeconds: 10
resources:
requests:
memory: "32Mi"
cpu: "50m"
limits:
memory: "64Mi"
cpu: "250m"
2022-05-11 18:21:35 +00:00
volumes:
- name: config
configMap:
name: element-config