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

51 lines
1.1 KiB
YAML
Raw 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
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
image: vectorim/element-web:latest
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"
2022-05-18 16:11:22 +00:00
cpu: "250m"
2022-05-11 18:21:35 +00:00
volumes:
- name: config
configMap:
name: element-config