2022-12-22 20:29:31 +08:00
|
|
|
{{- if eq .Values.TALK_ENABLED "yes" }}
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
annotations:
|
2023-08-10 06:46:40 +08:00
|
|
|
kompose.cmd: kompose convert -c -f latest.yml --namespace {{ .Values.NAMESPACE }}
|
2023-07-20 21:54:51 +08:00
|
|
|
kompose.version: 1.30.0 (9d8dcb518)
|
2022-12-22 20:29:31 +08:00
|
|
|
labels:
|
|
|
|
io.kompose.service: nextcloud-aio-talk
|
|
|
|
name: nextcloud-aio-talk
|
2023-08-10 06:46:40 +08:00
|
|
|
namespace: {{ .Values.NAMESPACE }}
|
2022-12-22 20:29:31 +08:00
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
io.kompose.service: nextcloud-aio-talk
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
annotations:
|
2023-08-10 06:46:40 +08:00
|
|
|
kompose.cmd: kompose convert -c -f latest.yml --namespace {{ .Values.NAMESPACE }}
|
2023-07-20 21:54:51 +08:00
|
|
|
kompose.version: 1.30.0 (9d8dcb518)
|
2022-12-22 20:29:31 +08:00
|
|
|
labels:
|
|
|
|
io.kompose.network/nextcloud-aio: "true"
|
|
|
|
io.kompose.service: nextcloud-aio-talk
|
|
|
|
spec:
|
2023-07-20 21:54:51 +08:00
|
|
|
initContainers:
|
|
|
|
- name: init-volumes
|
|
|
|
image: alpine
|
|
|
|
command:
|
|
|
|
- chmod
|
|
|
|
- "777"
|
|
|
|
- /nextcloud-aio-talk-tmpfs0
|
|
|
|
- /nextcloud-aio-talk-tmpfs1
|
|
|
|
- /nextcloud-aio-talk-tmpfs2
|
|
|
|
- /nextcloud-aio-talk-tmpfs3
|
|
|
|
- /nextcloud-aio-talk-tmpfs4
|
|
|
|
volumeMounts:
|
|
|
|
- name: nextcloud-aio-talk-tmpfs4
|
|
|
|
mountPath: /nextcloud-aio-talk-tmpfs4
|
|
|
|
- name: nextcloud-aio-talk-tmpfs3
|
|
|
|
mountPath: /nextcloud-aio-talk-tmpfs3
|
|
|
|
- name: nextcloud-aio-talk-tmpfs2
|
|
|
|
mountPath: /nextcloud-aio-talk-tmpfs2
|
|
|
|
- name: nextcloud-aio-talk-tmpfs1
|
|
|
|
mountPath: /nextcloud-aio-talk-tmpfs1
|
|
|
|
- name: nextcloud-aio-talk-tmpfs0
|
|
|
|
mountPath: /nextcloud-aio-talk-tmpfs0
|
2022-12-22 20:29:31 +08:00
|
|
|
containers:
|
|
|
|
- env:
|
2023-06-13 16:03:44 +08:00
|
|
|
- name: INTERNAL_SECRET
|
|
|
|
value: "{{ .Values.TALK_INTERNAL_SECRET }}"
|
2022-12-22 20:29:31 +08:00
|
|
|
- name: NC_DOMAIN
|
|
|
|
value: "{{ .Values.NC_DOMAIN }}"
|
|
|
|
- name: SIGNALING_SECRET
|
|
|
|
value: "{{ .Values.SIGNALING_SECRET }}"
|
|
|
|
- name: TALK_PORT
|
|
|
|
value: "{{ .Values.TALK_PORT }}"
|
|
|
|
- name: TURN_SECRET
|
|
|
|
value: "{{ .Values.TURN_SECRET }}"
|
|
|
|
- name: TZ
|
|
|
|
value: "{{ .Values.TIMEZONE }}"
|
2023-09-16 20:07:04 +08:00
|
|
|
image: nextcloud/aio-talk:20230916_091439-latest
|
2022-12-22 20:29:31 +08:00
|
|
|
name: nextcloud-aio-talk
|
|
|
|
ports:
|
|
|
|
- containerPort: {{ .Values.TALK_PORT }}
|
2023-07-20 21:54:51 +08:00
|
|
|
hostPort: {{ .Values.TALK_PORT }}
|
|
|
|
protocol: TCP
|
2022-12-22 20:29:31 +08:00
|
|
|
- containerPort: {{ .Values.TALK_PORT }}
|
2023-07-20 21:54:51 +08:00
|
|
|
hostPort: {{ .Values.TALK_PORT }}
|
2022-12-22 20:29:31 +08:00
|
|
|
protocol: UDP
|
2023-02-04 22:23:44 +08:00
|
|
|
- containerPort: 8081
|
2023-07-20 21:54:51 +08:00
|
|
|
hostPort: 8081
|
|
|
|
protocol: TCP
|
|
|
|
securityContext:
|
|
|
|
readOnlyRootFilesystem: true
|
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /var/log/supervisord
|
|
|
|
name: nextcloud-aio-talk-tmpfs0
|
|
|
|
- mountPath: /var/run/supervisord
|
|
|
|
name: nextcloud-aio-talk-tmpfs1
|
2023-09-12 16:46:20 +08:00
|
|
|
- mountPath: /opt/eturnal/run
|
2023-07-20 21:54:51 +08:00
|
|
|
name: nextcloud-aio-talk-tmpfs2
|
2023-09-12 16:46:20 +08:00
|
|
|
- mountPath: /conf
|
2023-07-20 21:54:51 +08:00
|
|
|
name: nextcloud-aio-talk-tmpfs3
|
|
|
|
- mountPath: /tmp
|
|
|
|
name: nextcloud-aio-talk-tmpfs4
|
|
|
|
volumes:
|
|
|
|
- emptyDir: {}
|
|
|
|
name: nextcloud-aio-talk-tmpfs0
|
|
|
|
- emptyDir: {}
|
|
|
|
name: nextcloud-aio-talk-tmpfs1
|
|
|
|
- emptyDir: {}
|
|
|
|
name: nextcloud-aio-talk-tmpfs2
|
|
|
|
- emptyDir: {}
|
|
|
|
name: nextcloud-aio-talk-tmpfs3
|
|
|
|
- emptyDir: {}
|
|
|
|
name: nextcloud-aio-talk-tmpfs4
|
2022-12-22 20:29:31 +08:00
|
|
|
{{- end }}
|