2024-09-25 16:14:31 +08:00
|
|
|
{{- if eq .Values.WHITEBOARD_ENABLED "yes" }}
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
annotations:
|
|
|
|
kompose.cmd: kompose convert -c -f latest.yml --namespace "{{ .Values.NAMESPACE }}"
|
|
|
|
kompose.version: 1.34.0 (cbf2835db)
|
|
|
|
labels:
|
|
|
|
io.kompose.service: nextcloud-aio-whiteboard
|
|
|
|
name: nextcloud-aio-whiteboard
|
|
|
|
namespace: "{{ .Values.NAMESPACE }}"
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
io.kompose.service: nextcloud-aio-whiteboard
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
annotations:
|
|
|
|
kompose.cmd: kompose convert -c -f latest.yml --namespace "{{ .Values.NAMESPACE }}"
|
|
|
|
kompose.version: 1.34.0 (cbf2835db)
|
|
|
|
labels:
|
|
|
|
io.kompose.service: nextcloud-aio-whiteboard
|
|
|
|
spec:
|
2024-11-15 23:52:55 +08:00
|
|
|
securityContext:
|
|
|
|
# The items below only work in pod context
|
|
|
|
fsGroup: 65534
|
|
|
|
fsGroupChangePolicy: "OnRootMismatch"
|
|
|
|
# The items below work in both contexts
|
|
|
|
runAsUser: 65534
|
|
|
|
runAsGroup: 65534
|
|
|
|
runAsNonRoot: true
|
2024-11-26 18:14:52 +08:00
|
|
|
{{- if eq (.Values.RPSS_ENABLED | default "no") "yes" }}
|
2024-11-15 23:52:55 +08:00
|
|
|
seccompProfile:
|
|
|
|
type: RuntimeDefault
|
|
|
|
{{- end }}
|
2024-09-25 16:14:31 +08:00
|
|
|
containers:
|
|
|
|
- env:
|
|
|
|
- name: JWT_SECRET_KEY
|
|
|
|
value: "{{ .Values.WHITEBOARD_SECRET }}"
|
|
|
|
- name: NEXTCLOUD_URL
|
|
|
|
value: https://{{ .Values.NC_DOMAIN }}
|
|
|
|
- name: REDIS_HOST
|
|
|
|
value: nextcloud-aio-redis
|
|
|
|
- name: REDIS_HOST_PASSWORD
|
|
|
|
value: "{{ .Values.REDIS_PASSWORD }}"
|
|
|
|
- name: STORAGE_STRATEGY
|
|
|
|
value: redis
|
|
|
|
- name: TZ
|
|
|
|
value: "{{ .Values.TIMEZONE }}"
|
2024-11-26 17:42:56 +08:00
|
|
|
image: nextcloud/aio-whiteboard:20241125_091756
|
2024-09-25 16:14:31 +08:00
|
|
|
name: nextcloud-aio-whiteboard
|
|
|
|
ports:
|
|
|
|
- containerPort: 3002
|
|
|
|
protocol: TCP
|
|
|
|
securityContext:
|
2024-11-15 23:52:55 +08:00
|
|
|
# The items below only work in container context
|
2024-11-05 23:05:22 +08:00
|
|
|
allowPrivilegeEscalation: false
|
2024-09-25 16:14:31 +08:00
|
|
|
capabilities:
|
2024-11-26 18:14:52 +08:00
|
|
|
{{- if eq (.Values.RPSS_ENABLED | default "no") "yes" }}
|
2024-11-15 23:52:55 +08:00
|
|
|
drop: ["ALL"]
|
|
|
|
{{- else }}
|
|
|
|
drop: ["NET_RAW"]
|
|
|
|
{{- end }}
|
|
|
|
add: ["NET_BIND_SERVICE"]
|
2024-09-25 16:14:31 +08:00
|
|
|
{{- end }}
|