diff --git a/helm-chart/templates/nextcloud-aio-clamav-deployment.yaml b/helm-chart/templates/nextcloud-aio-clamav-deployment.yaml index 79ba5fa0..1c9261a3 100755 --- a/helm-chart/templates/nextcloud-aio-clamav-deployment.yaml +++ b/helm-chart/templates/nextcloud-aio-clamav-deployment.yaml @@ -40,6 +40,8 @@ spec: value: "{{ .Values.TIMEZONE }}" image: nextcloud/aio-clamav:20230124_100035-{{ .Values.IMAGE_TAG }} name: nextcloud-aio-clamav + ports: + - containerPort: 3310 volumeMounts: - mountPath: /var/lib/clamav name: nextcloud-aio-clamav diff --git a/helm-chart/templates/nextcloud-aio-clamav-service.yaml b/helm-chart/templates/nextcloud-aio-clamav-service.yaml new file mode 100644 index 00000000..908a7bae --- /dev/null +++ b/helm-chart/templates/nextcloud-aio-clamav-service.yaml @@ -0,0 +1,18 @@ +{{- if eq .Values.CLAMAV_ENABLED "yes" }} +apiVersion: v1 +kind: Service +metadata: + annotations: + kompose.cmd: kompose convert -c -f latest.yml + kompose.version: 1.28.0 (c4137012e) + labels: + io.kompose.service: nextcloud-aio-clamav + name: nextcloud-aio-clamav +spec: + ports: + - name: "3310" + port: 3310 + targetPort: 3310 + selector: + io.kompose.service: nextcloud-aio-clamav +{{- end }} diff --git a/helm-chart/templates/nextcloud-aio-collabora-deployment.yaml b/helm-chart/templates/nextcloud-aio-collabora-deployment.yaml index e45299b1..1dc4a201 100755 --- a/helm-chart/templates/nextcloud-aio-collabora-deployment.yaml +++ b/helm-chart/templates/nextcloud-aio-collabora-deployment.yaml @@ -44,6 +44,8 @@ spec: value: --o:ssl.enable=false --o:ssl.termination=true --o:logging.level=warning --o:home_mode.enable=true {{ .Values.COLLABORA_SECCOMP_POLICY }} --o:remote_font_config.url=https://{{ .Values.NC_DOMAIN }}/apps/richdocuments/settings/fonts.json image: nextcloud/aio-collabora:20230124_100035-{{ .Values.IMAGE_TAG }} name: nextcloud-aio-collabora + ports: + - containerPort: 9980 volumeMounts: - mountPath: /opt/cool/systemplate/tmpfonts name: nextcloud-aio-collabora-fonts diff --git a/helm-chart/templates/nextcloud-aio-collabora-service.yaml b/helm-chart/templates/nextcloud-aio-collabora-service.yaml new file mode 100644 index 00000000..3e953d72 --- /dev/null +++ b/helm-chart/templates/nextcloud-aio-collabora-service.yaml @@ -0,0 +1,18 @@ +{{- if eq .Values.COLLABORA_ENABLED "yes" }} +apiVersion: v1 +kind: Service +metadata: + annotations: + kompose.cmd: kompose convert -c -f latest.yml + kompose.version: 1.28.0 (c4137012e) + labels: + io.kompose.service: nextcloud-aio-collabora + name: nextcloud-aio-collabora +spec: + ports: + - name: "9980" + port: 9980 + targetPort: 9980 + selector: + io.kompose.service: nextcloud-aio-collabora +{{- end }} diff --git a/helm-chart/templates/nextcloud-aio-database-deployment.yaml b/helm-chart/templates/nextcloud-aio-database-deployment.yaml index 481a0dcc..c0ac5fe6 100755 --- a/helm-chart/templates/nextcloud-aio-database-deployment.yaml +++ b/helm-chart/templates/nextcloud-aio-database-deployment.yaml @@ -21,14 +21,13 @@ spec: io.kompose.network/nextcloud-aio: "true" io.kompose.service: nextcloud-aio-database spec: - initContainers: - name: init-volumes image: alpine command: - - sh - - -c - - "chmod 777 /nextcloud-aio-database /nextcloud-aio-database-dump - && chown 999:999 /nextcloud-aio-database" + - chown + - 999:999 + - /nextcloud-aio-database + - /nextcloud-aio-database-dump volumeMounts: - name: nextcloud-aio-database-dump mountPath: /nextcloud-aio-database-dump @@ -48,6 +47,8 @@ spec: value: "{{ .Values.TIMEZONE }}" image: nextcloud/aio-postgresql:20230124_100035-{{ .Values.IMAGE_TAG }} name: nextcloud-aio-database + ports: + - containerPort: 5432 volumeMounts: - mountPath: /var/lib/postgresql/data name: nextcloud-aio-database diff --git a/helm-chart/templates/nextcloud-aio-database-service.yaml b/helm-chart/templates/nextcloud-aio-database-service.yaml new file mode 100644 index 00000000..f32b53c8 --- /dev/null +++ b/helm-chart/templates/nextcloud-aio-database-service.yaml @@ -0,0 +1,16 @@ +apiVersion: v1 +kind: Service +metadata: + annotations: + kompose.cmd: kompose convert -c -f latest.yml + kompose.version: 1.28.0 (c4137012e) + labels: + io.kompose.service: nextcloud-aio-database + name: nextcloud-aio-database +spec: + ports: + - name: "5432" + port: 5432 + targetPort: 5432 + selector: + io.kompose.service: nextcloud-aio-database diff --git a/helm-chart/templates/nextcloud-aio-fulltextsearch-deployment.yaml b/helm-chart/templates/nextcloud-aio-fulltextsearch-deployment.yaml index 0f9fc173..538c51bd 100755 --- a/helm-chart/templates/nextcloud-aio-fulltextsearch-deployment.yaml +++ b/helm-chart/templates/nextcloud-aio-fulltextsearch-deployment.yaml @@ -42,6 +42,8 @@ spec: value: single-node image: nextcloud/aio-fulltextsearch:20230124_100035-{{ .Values.IMAGE_TAG }} name: nextcloud-aio-fulltextsearch + ports: + - containerPort: 9200 volumeMounts: - mountPath: /usr/share/elasticsearch/data name: nextcloud-aio-elasticsearch diff --git a/helm-chart/templates/nextcloud-aio-fulltextsearch-service.yaml b/helm-chart/templates/nextcloud-aio-fulltextsearch-service.yaml new file mode 100644 index 00000000..9f761861 --- /dev/null +++ b/helm-chart/templates/nextcloud-aio-fulltextsearch-service.yaml @@ -0,0 +1,18 @@ +{{- if eq .Values.FULLTEXTSEARCH_ENABLED "yes" }} +apiVersion: v1 +kind: Service +metadata: + annotations: + kompose.cmd: kompose convert -c -f latest.yml + kompose.version: 1.28.0 (c4137012e) + labels: + io.kompose.service: nextcloud-aio-fulltextsearch + name: nextcloud-aio-fulltextsearch +spec: + ports: + - name: "9200" + port: 9200 + targetPort: 9200 + selector: + io.kompose.service: nextcloud-aio-fulltextsearch +{{- end }} diff --git a/helm-chart/templates/nextcloud-aio-imaginary-deployment.yaml b/helm-chart/templates/nextcloud-aio-imaginary-deployment.yaml index 2eabe094..854bb0e0 100755 --- a/helm-chart/templates/nextcloud-aio-imaginary-deployment.yaml +++ b/helm-chart/templates/nextcloud-aio-imaginary-deployment.yaml @@ -28,4 +28,6 @@ spec: value: "{{ .Values.TIMEZONE }}" image: nextcloud/aio-imaginary:20230124_100035-{{ .Values.IMAGE_TAG }} name: nextcloud-aio-imaginary + ports: + - containerPort: 9000 {{- end }} diff --git a/helm-chart/templates/nextcloud-aio-imaginary-service.yaml b/helm-chart/templates/nextcloud-aio-imaginary-service.yaml new file mode 100644 index 00000000..824f7285 --- /dev/null +++ b/helm-chart/templates/nextcloud-aio-imaginary-service.yaml @@ -0,0 +1,18 @@ +{{- if eq .Values.IMAGINARY_ENABLED "yes" }} +apiVersion: v1 +kind: Service +metadata: + annotations: + kompose.cmd: kompose convert -c -f latest.yml + kompose.version: 1.28.0 (c4137012e) + labels: + io.kompose.service: nextcloud-aio-imaginary + name: nextcloud-aio-imaginary +spec: + ports: + - name: "9000" + port: 9000 + targetPort: 9000 + selector: + io.kompose.service: nextcloud-aio-imaginary +{{- end }} diff --git a/helm-chart/templates/nextcloud-aio-nextcloud-deployment.yaml b/helm-chart/templates/nextcloud-aio-nextcloud-deployment.yaml index 70abd7f5..d91f74ec 100755 --- a/helm-chart/templates/nextcloud-aio-nextcloud-deployment.yaml +++ b/helm-chart/templates/nextcloud-aio-nextcloud-deployment.yaml @@ -117,6 +117,9 @@ spec: value: "{{ .Values.UPDATE_NEXTCLOUD_APPS }}" image: nextcloud/aio-nextcloud:20230124_100035-{{ .Values.IMAGE_TAG }} name: nextcloud-aio-nextcloud + ports: + - containerPort: 9000 + - containerPort: 7867 volumeMounts: - mountPath: /var/www/html name: nextcloud-aio-nextcloud diff --git a/helm-chart/templates/nextcloud-aio-nextcloud-service.yaml b/helm-chart/templates/nextcloud-aio-nextcloud-service.yaml new file mode 100644 index 00000000..36053808 --- /dev/null +++ b/helm-chart/templates/nextcloud-aio-nextcloud-service.yaml @@ -0,0 +1,19 @@ +apiVersion: v1 +kind: Service +metadata: + annotations: + kompose.cmd: kompose convert -c -f latest.yml + kompose.version: 1.28.0 (c4137012e) + labels: + io.kompose.service: nextcloud-aio-nextcloud + name: nextcloud-aio-nextcloud +spec: + ports: + - name: "9000" + port: 9000 + targetPort: 9000 + - name: "7867" + port: 7867 + targetPort: 7867 + selector: + io.kompose.service: nextcloud-aio-nextcloud diff --git a/helm-chart/templates/nextcloud-aio-onlyoffice-deployment.yaml b/helm-chart/templates/nextcloud-aio-onlyoffice-deployment.yaml index fe624307..ae7fc2f3 100755 --- a/helm-chart/templates/nextcloud-aio-onlyoffice-deployment.yaml +++ b/helm-chart/templates/nextcloud-aio-onlyoffice-deployment.yaml @@ -44,6 +44,8 @@ spec: value: "{{ .Values.TIMEZONE }}" image: nextcloud/aio-onlyoffice:20230124_100035-{{ .Values.IMAGE_TAG }} name: nextcloud-aio-onlyoffice + ports: + - containerPort: 80 volumeMounts: - mountPath: /var/lib/onlyoffice name: nextcloud-aio-onlyoffice diff --git a/helm-chart/templates/nextcloud-aio-onlyoffice-service.yaml b/helm-chart/templates/nextcloud-aio-onlyoffice-service.yaml new file mode 100644 index 00000000..d324453e --- /dev/null +++ b/helm-chart/templates/nextcloud-aio-onlyoffice-service.yaml @@ -0,0 +1,18 @@ +{{- if eq .Values.ONLYOFFICE_ENABLED "yes" }} +apiVersion: v1 +kind: Service +metadata: + annotations: + kompose.cmd: kompose convert -c -f latest.yml + kompose.version: 1.28.0 (c4137012e) + labels: + io.kompose.service: nextcloud-aio-onlyoffice + name: nextcloud-aio-onlyoffice +spec: + ports: + - name: "80" + port: 80 + targetPort: 80 + selector: + io.kompose.service: nextcloud-aio-onlyoffice +{{- end }} diff --git a/helm-chart/templates/nextcloud-aio-redis-deployment.yaml b/helm-chart/templates/nextcloud-aio-redis-deployment.yaml index d47659a4..f9ada631 100755 --- a/helm-chart/templates/nextcloud-aio-redis-deployment.yaml +++ b/helm-chart/templates/nextcloud-aio-redis-deployment.yaml @@ -39,6 +39,8 @@ spec: value: "{{ .Values.TIMEZONE }}" image: nextcloud/aio-redis:20230124_100035-{{ .Values.IMAGE_TAG }} name: nextcloud-aio-redis + ports: + - containerPort: 6379 volumeMounts: - mountPath: /data name: nextcloud-aio-redis diff --git a/helm-chart/templates/nextcloud-aio-redis-service.yaml b/helm-chart/templates/nextcloud-aio-redis-service.yaml new file mode 100644 index 00000000..82147c73 --- /dev/null +++ b/helm-chart/templates/nextcloud-aio-redis-service.yaml @@ -0,0 +1,16 @@ +apiVersion: v1 +kind: Service +metadata: + annotations: + kompose.cmd: kompose convert -c -f latest.yml + kompose.version: 1.28.0 (c4137012e) + labels: + io.kompose.service: nextcloud-aio-redis + name: nextcloud-aio-redis +spec: + ports: + - name: "6379" + port: 6379 + targetPort: 6379 + selector: + io.kompose.service: nextcloud-aio-redis