diff --git a/charts/ocis/ci/values.yaml b/charts/ocis/ci/values.yaml index d2e07c99e..c628f6b15 100644 --- a/charts/ocis/ci/values.yaml +++ b/charts/ocis/ci/values.yaml @@ -21,6 +21,10 @@ image: - name: some-pull-secret nodeSelector: kubernetes.io/arch: "amd64" +hostAliases: +- ip: "192.168.4.2" + hostnames: + - "example.kube.owncloud.test" priorityClassName: ocis-middle-priority jobPriorityClassName: ocis-job-middle-priority features: diff --git a/charts/ocis/docs/values-desc-table.adoc b/charts/ocis/docs/values-desc-table.adoc index 42d66709d..49b04bdd0 100644 --- a/charts/ocis/docs/values-desc-table.adoc +++ b/charts/ocis/docs/values-desc-table.adoc @@ -714,6 +714,12 @@ a| [subs=-attributes] a| [subs=-attributes] `nil` | Sets a maximum file size for scans. Only this many bytes of a file will be scanned. 0 means unlimited and is the default. Usable common abbreviations: [KB, KiB, GB, GiB, TB, TiB, PB, PiB, EB, EiB], example: 2GB. +| hostAliases +a| [subs=-attributes] ++list+ +a| [subs=-attributes] +`[]` +| | http.cors.allow_origins a| [subs=-attributes] +list+ diff --git a/charts/ocis/docs/values.adoc.yaml b/charts/ocis/docs/values.adoc.yaml index 378e1ea88..6b19aefbf 100644 --- a/charts/ocis/docs/values.adoc.yaml +++ b/charts/ocis/docs/values.adoc.yaml @@ -137,6 +137,12 @@ messagingSystem: # -- For self signed certificates, consider to put the CA cert of the messaging system secure server into the secret referenced by "messagingSystemCaRef" # Not recommended for production installations. insecure: false + +# provide custom hostnames to every oCIS pods +hostAliases: [] +# - ip: "192.168.49.2" +# hostnames: +# - "ocis.kube.owncloud.test" # Feature options. # Enable or disable features of oCIS. diff --git a/charts/ocis/templates/_common/_tplvalues.tpl b/charts/ocis/templates/_common/_tplvalues.tpl index 1defec4a1..b9ace31c0 100644 --- a/charts/ocis/templates/_common/_tplvalues.tpl +++ b/charts/ocis/templates/_common/_tplvalues.tpl @@ -243,6 +243,16 @@ oCIS serviceAccount settings automountServiceAccountToken: true {{- end -}} +{{/* +oCIS hostAliases settings +*/}} +{{- define "ocis.hostAliases" -}} + {{- with $.Values.hostAliases }} +hostAliases: + {{- toYaml . | nindent 2 }} + {{- end }} +{{- end -}} + {{/* oCIS persistence dataVolumeName */}} diff --git a/charts/ocis/templates/antivirus/deployment.yaml b/charts/ocis/templates/antivirus/deployment.yaml index 01063ab25..3fd68def4 100644 --- a/charts/ocis/templates/antivirus/deployment.yaml +++ b/charts/ocis/templates/antivirus/deployment.yaml @@ -16,6 +16,7 @@ spec: {{- include "ocis.affinity" .Values.services.antivirus | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/appprovider/deployment.yaml b/charts/ocis/templates/appprovider/deployment.yaml index 6bc695b6f..964c111d6 100644 --- a/charts/ocis/templates/appprovider/deployment.yaml +++ b/charts/ocis/templates/appprovider/deployment.yaml @@ -17,6 +17,7 @@ spec: {{- include "ocis.affinity" $.Values.services.appprovider | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" $ | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ $.appName }} diff --git a/charts/ocis/templates/appregistry/deployment.yaml b/charts/ocis/templates/appregistry/deployment.yaml index 5397cba37..9c0dabbe1 100644 --- a/charts/ocis/templates/appregistry/deployment.yaml +++ b/charts/ocis/templates/appregistry/deployment.yaml @@ -13,6 +13,7 @@ spec: {{- include "ocis.affinity" .Values.services.appregistry | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/audit/deployment.yaml b/charts/ocis/templates/audit/deployment.yaml index a26373c09..970c07832 100644 --- a/charts/ocis/templates/audit/deployment.yaml +++ b/charts/ocis/templates/audit/deployment.yaml @@ -15,6 +15,7 @@ spec: {{- include "ocis.affinity" .Values.services.audit | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/authbasic/deployment.yaml b/charts/ocis/templates/authbasic/deployment.yaml index 0566b29ae..2c0bec497 100644 --- a/charts/ocis/templates/authbasic/deployment.yaml +++ b/charts/ocis/templates/authbasic/deployment.yaml @@ -16,6 +16,7 @@ spec: {{- include "ocis.affinity" .Values.services.authbasic | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/authmachine/deployment.yaml b/charts/ocis/templates/authmachine/deployment.yaml index 8f3e35364..566ee17e4 100644 --- a/charts/ocis/templates/authmachine/deployment.yaml +++ b/charts/ocis/templates/authmachine/deployment.yaml @@ -15,6 +15,7 @@ spec: {{- include "ocis.affinity" .Values.services.authmachine | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/eventhistory/deployment.yaml b/charts/ocis/templates/eventhistory/deployment.yaml index c72835595..4818d29a1 100644 --- a/charts/ocis/templates/eventhistory/deployment.yaml +++ b/charts/ocis/templates/eventhistory/deployment.yaml @@ -16,6 +16,7 @@ spec: {{- include "ocis.affinity" .Values.services.eventhistory | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/frontend/deployment.yaml b/charts/ocis/templates/frontend/deployment.yaml index fbfee5133..b44bbe4c7 100644 --- a/charts/ocis/templates/frontend/deployment.yaml +++ b/charts/ocis/templates/frontend/deployment.yaml @@ -15,6 +15,7 @@ spec: {{- include "ocis.affinity" .Values.services.frontend | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/gateway/deployment.yaml b/charts/ocis/templates/gateway/deployment.yaml index 5dd6cd874..6fedbc939 100644 --- a/charts/ocis/templates/gateway/deployment.yaml +++ b/charts/ocis/templates/gateway/deployment.yaml @@ -15,6 +15,7 @@ spec: {{- include "ocis.affinity" .Values.services.gateway | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/graph/deployment.yaml b/charts/ocis/templates/graph/deployment.yaml index 17c3939a2..428e10a95 100644 --- a/charts/ocis/templates/graph/deployment.yaml +++ b/charts/ocis/templates/graph/deployment.yaml @@ -15,6 +15,7 @@ spec: {{- include "ocis.affinity" .Values.services.graph | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/groups/deployment.yaml b/charts/ocis/templates/groups/deployment.yaml index 2aaa5e7fb..789faf0f0 100644 --- a/charts/ocis/templates/groups/deployment.yaml +++ b/charts/ocis/templates/groups/deployment.yaml @@ -15,6 +15,7 @@ spec: {{- include "ocis.affinity" .Values.services.groups | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/idm/deployment.yaml b/charts/ocis/templates/idm/deployment.yaml index fc13adea8..caf6da9f2 100644 --- a/charts/ocis/templates/idm/deployment.yaml +++ b/charts/ocis/templates/idm/deployment.yaml @@ -35,6 +35,7 @@ spec: - name: {{ include "ocis.persistence.dataVolumeName" . }} mountPath: /var/lib/ocis {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/idp/deployment.yaml b/charts/ocis/templates/idp/deployment.yaml index 1bd5d1fcb..337b028c9 100644 --- a/charts/ocis/templates/idp/deployment.yaml +++ b/charts/ocis/templates/idp/deployment.yaml @@ -17,6 +17,7 @@ spec: {{- include "ocis.affinity" .Values.services.idp | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/nats/deployment.yaml b/charts/ocis/templates/nats/deployment.yaml index df3d1a1b4..f81244f1e 100644 --- a/charts/ocis/templates/nats/deployment.yaml +++ b/charts/ocis/templates/nats/deployment.yaml @@ -27,6 +27,7 @@ spec: mountPath: /var/lib/ocis {{ end }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/notifications/deployment.yaml b/charts/ocis/templates/notifications/deployment.yaml index 8ae3bbcd5..0c07946c6 100644 --- a/charts/ocis/templates/notifications/deployment.yaml +++ b/charts/ocis/templates/notifications/deployment.yaml @@ -16,6 +16,7 @@ spec: {{- include "ocis.affinity" .Values.services.notifications | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/ocdav/deployment.yaml b/charts/ocis/templates/ocdav/deployment.yaml index 624c1af9f..c13151e29 100644 --- a/charts/ocis/templates/ocdav/deployment.yaml +++ b/charts/ocis/templates/ocdav/deployment.yaml @@ -15,6 +15,7 @@ spec: {{- include "ocis.affinity" .Values.services.ocdav | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/ocs/deployment.yaml b/charts/ocis/templates/ocs/deployment.yaml index ffeac6b8d..dd9c69cfc 100644 --- a/charts/ocis/templates/ocs/deployment.yaml +++ b/charts/ocis/templates/ocs/deployment.yaml @@ -15,6 +15,7 @@ spec: {{- include "ocis.affinity" .Values.services.ocs | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/policies/deployment.yaml b/charts/ocis/templates/policies/deployment.yaml index 0d621c9f9..9934ee01c 100644 --- a/charts/ocis/templates/policies/deployment.yaml +++ b/charts/ocis/templates/policies/deployment.yaml @@ -26,6 +26,7 @@ spec: {{- tpl . $ | nindent 8 }} {{- end }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/postprocessing/deployment.yaml b/charts/ocis/templates/postprocessing/deployment.yaml index 8c9dca3de..190bc0aaf 100644 --- a/charts/ocis/templates/postprocessing/deployment.yaml +++ b/charts/ocis/templates/postprocessing/deployment.yaml @@ -18,6 +18,7 @@ spec: {{- include "ocis.affinity" .Values.services.postprocessing | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/proxy/deployment.yaml b/charts/ocis/templates/proxy/deployment.yaml index 293fb7c09..7fcf52a36 100644 --- a/charts/ocis/templates/proxy/deployment.yaml +++ b/charts/ocis/templates/proxy/deployment.yaml @@ -15,6 +15,7 @@ spec: {{- include "ocis.affinity" .Values.services.proxy | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/search/deployment.yaml b/charts/ocis/templates/search/deployment.yaml index 847045658..17c941c17 100644 --- a/charts/ocis/templates/search/deployment.yaml +++ b/charts/ocis/templates/search/deployment.yaml @@ -26,6 +26,7 @@ spec: mountPath: /var/lib/ocis {{ end }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/settings/deployment.yaml b/charts/ocis/templates/settings/deployment.yaml index 7c6b58a80..3558668a1 100644 --- a/charts/ocis/templates/settings/deployment.yaml +++ b/charts/ocis/templates/settings/deployment.yaml @@ -15,6 +15,7 @@ spec: {{- include "ocis.affinity" .Values.services.settings | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/sharing/deployment.yaml b/charts/ocis/templates/sharing/deployment.yaml index 3734109a6..def3bec6b 100644 --- a/charts/ocis/templates/sharing/deployment.yaml +++ b/charts/ocis/templates/sharing/deployment.yaml @@ -15,6 +15,7 @@ spec: {{- include "ocis.affinity" .Values.services.sharing | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/storagepubliclink/deployment.yaml b/charts/ocis/templates/storagepubliclink/deployment.yaml index 60fa00469..aecc83d9a 100644 --- a/charts/ocis/templates/storagepubliclink/deployment.yaml +++ b/charts/ocis/templates/storagepubliclink/deployment.yaml @@ -15,6 +15,7 @@ spec: {{- include "ocis.affinity" .Values.services.storagepubliclink | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/storageshares/deployment.yaml b/charts/ocis/templates/storageshares/deployment.yaml index fab38f7db..0a68b4390 100644 --- a/charts/ocis/templates/storageshares/deployment.yaml +++ b/charts/ocis/templates/storageshares/deployment.yaml @@ -15,6 +15,7 @@ spec: {{- include "ocis.affinity" .Values.services.storageshares | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/storagesystem/deployment.yaml b/charts/ocis/templates/storagesystem/deployment.yaml index 8ecae47a6..e32d7abc7 100644 --- a/charts/ocis/templates/storagesystem/deployment.yaml +++ b/charts/ocis/templates/storagesystem/deployment.yaml @@ -27,6 +27,7 @@ spec: mountPath: /var/lib/ocis {{ end }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/storageusers/deployment.yaml b/charts/ocis/templates/storageusers/deployment.yaml index ba4d661de..ae9611b9a 100644 --- a/charts/ocis/templates/storageusers/deployment.yaml +++ b/charts/ocis/templates/storageusers/deployment.yaml @@ -27,6 +27,7 @@ spec: mountPath: /var/lib/ocis {{ end }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/storageusers/jobs.yaml b/charts/ocis/templates/storageusers/jobs.yaml index 48ae4c3df..832569e90 100644 --- a/charts/ocis/templates/storageusers/jobs.yaml +++ b/charts/ocis/templates/storageusers/jobs.yaml @@ -25,6 +25,7 @@ spec: {{- include "ocis.serviceAccount" . | nindent 10 }} restartPolicy: Never {{- include "ocis.priorityClassName" $.jobPriorityClassName | nindent 10 }} + {{- include "ocis.hostAliases" $ | nindent 10 }} nodeSelector: {{ toYaml $.jobNodeSelector | nindent 12 }} containers: - name: storage-users-clean-expired-uploads @@ -135,6 +136,7 @@ spec: spec: {{- include "ocis.serviceAccount" . | nindent 10 }} restartPolicy: Never + {{- include "ocis.hostAliases" $ | nindent 10 }} nodeSelector: {{ toYaml $.jobNodeSelector | nindent 12 }} containers: - name: storage-users-purge-expired-trash-bin-items diff --git a/charts/ocis/templates/store/deployment.yaml b/charts/ocis/templates/store/deployment.yaml index 86aff927d..45e0d764c 100644 --- a/charts/ocis/templates/store/deployment.yaml +++ b/charts/ocis/templates/store/deployment.yaml @@ -26,6 +26,7 @@ spec: mountPath: /var/lib/ocis {{ end }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/thumbnails/deployment.yaml b/charts/ocis/templates/thumbnails/deployment.yaml index 2d73cce0e..5aec922fe 100644 --- a/charts/ocis/templates/thumbnails/deployment.yaml +++ b/charts/ocis/templates/thumbnails/deployment.yaml @@ -27,6 +27,7 @@ spec: mountPath: /var/lib/ocis {{ end }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/thumbnails/jobs.yaml b/charts/ocis/templates/thumbnails/jobs.yaml index 4afd703d2..0cbc3a8b8 100644 --- a/charts/ocis/templates/thumbnails/jobs.yaml +++ b/charts/ocis/templates/thumbnails/jobs.yaml @@ -28,6 +28,7 @@ spec: {{- include "ocis.serviceAccount" . | nindent 10 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 10 }} {{- include "ocis.priorityClassName" $.jobPriorityClassName | nindent 10 }} + {{- include "ocis.hostAliases" $ | nindent 10 }} nodeSelector: {{ toYaml $.jobNodeSelector | nindent 12 }} containers: - name: thumbnails-cleanup diff --git a/charts/ocis/templates/userlog/deployment.yaml b/charts/ocis/templates/userlog/deployment.yaml index 3bce3e2b7..e9074b23c 100644 --- a/charts/ocis/templates/userlog/deployment.yaml +++ b/charts/ocis/templates/userlog/deployment.yaml @@ -16,6 +16,7 @@ spec: {{- include "ocis.affinity" .Values.services.userlog | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/users/deployment.yaml b/charts/ocis/templates/users/deployment.yaml index 79e7a9ed2..4e9e3f768 100644 --- a/charts/ocis/templates/users/deployment.yaml +++ b/charts/ocis/templates/users/deployment.yaml @@ -15,6 +15,7 @@ spec: {{- include "ocis.affinity" .Values.services.users | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/web/deployment.yaml b/charts/ocis/templates/web/deployment.yaml index c8576c3f9..1a2c8d4f4 100644 --- a/charts/ocis/templates/web/deployment.yaml +++ b/charts/ocis/templates/web/deployment.yaml @@ -15,6 +15,7 @@ spec: {{- include "ocis.affinity" .Values.services.web | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/webdav/deployment.yaml b/charts/ocis/templates/webdav/deployment.yaml index 05c5803fd..91f72a975 100644 --- a/charts/ocis/templates/webdav/deployment.yaml +++ b/charts/ocis/templates/webdav/deployment.yaml @@ -15,6 +15,7 @@ spec: {{- include "ocis.affinity" .Values.services.webdav | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/values.yaml b/charts/ocis/values.yaml index 77746ef47..12d93c9f2 100644 --- a/charts/ocis/values.yaml +++ b/charts/ocis/values.yaml @@ -136,6 +136,12 @@ messagingSystem: # -- For self signed certificates, consider to put the CA cert of the messaging system secure server into the secret referenced by "messagingSystemCaRef" # Not recommended for production installations. insecure: false + +# provide custom hostnames to every oCIS pods +hostAliases: [] +# - ip: "192.168.49.2" +# hostnames: +# - "ocis.kube.owncloud.test" # Feature options. # Enable or disable features of oCIS.