diff --git a/Chart.yaml b/Chart.yaml index 4fc8990..451f5f3 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -6,4 +6,4 @@ dependencies: - name: application repository: https://camptocamp.github.io/helm-application/ alias: fmeflow - version: 2.23.0 + version: 2.24.0 diff --git a/tests/expected-basic.yaml b/tests/expected-basic.yaml index 86ca74a..16ac6e7 100644 --- a/tests/expected-basic.yaml +++ b/tests/expected-basic.yaml @@ -475,6 +475,8 @@ spec: values: - core topologyKey: "kubernetes.io/hostname" + hostname: core-0 + subdomain: fmeflow-basic-fmeflow-core initContainers: - name: dbinit securityContext: @@ -992,6 +994,8 @@ spec: values: - queue topologyKey: "kubernetes.io/hostname" + hostname: queue-0 + subdomain: fmeflow-basic-fmeflow-queue containers: - name: queue securityContext: @@ -1068,6 +1072,8 @@ spec: serviceAccountName: default securityContext: fsGroup: 1363 + hostname: websocket-0 + subdomain: fmeflow-basic-fmeflow-websocket containers: - name: websocket securityContext: diff --git a/tests/expected-external-db-traefik.yaml b/tests/expected-external-db-traefik.yaml index 15fffa7..3693987 100644 --- a/tests/expected-external-db-traefik.yaml +++ b/tests/expected-external-db-traefik.yaml @@ -480,6 +480,8 @@ spec: values: - core topologyKey: "kubernetes.io/hostname" + hostname: core-0 + subdomain: fmeflow-external-db-fmeflow-core initContainers: - name: dbinit securityContext: @@ -999,6 +1001,8 @@ spec: values: - queue topologyKey: "kubernetes.io/hostname" + hostname: queue-0 + subdomain: fmeflow-external-db-fmeflow-queue containers: - name: queue securityContext: @@ -1077,6 +1081,8 @@ spec: serviceAccountName: default securityContext: fsGroup: 1363 + hostname: websocket-0 + subdomain: fmeflow-external-db-fmeflow-websocket containers: - name: websocket securityContext: diff --git a/values.yaml b/values.yaml index 5f900d1..79bb525 100644 --- a/values.yaml +++ b/values.yaml @@ -258,6 +258,13 @@ fmeflow: services: core: type: StatefulSet + # FME Flow resolves its components at the hardcoded pod DNS names + # core- / queue- / websocket- under the headless + # service name, that the StatefulSet name cannot provide with the release + # prefix built by common.fullname. Registering those names with the pod + # hostname and subdomain keeps the workload names untouched and requires + # one replica per component. + hostname: core-0 replicaCount: 1 affinity: podAntiAffinity: @@ -463,6 +470,7 @@ fmeflow: queue: type: StatefulSet + hostname: queue-0 replicaCount: 1 affinity: podAntiAffinity: @@ -516,6 +524,7 @@ fmeflow: websocket: type: StatefulSet + hostname: websocket-0 replicaCount: 1 volumes: *shared-volumes service: