diff --git a/apps/goff/base/deployment.yaml b/apps/goff/base/deployment.yaml index 6e56117..1043ceb 100644 --- a/apps/goff/base/deployment.yaml +++ b/apps/goff/base/deployment.yaml @@ -36,13 +36,12 @@ spec: containers: - name: goff image: gofeatureflag/go-feature-flag:latest - command: - - /go-feature-flag - - --config - - /goff/config.yaml + command: ["/go-feature-flag", "--config", "/goff/config.yaml"] volumeMounts: - - name: configs - mountPath: /goff/ + - name: config + mountPath: /goff/config.yaml + - name: default-flags + mountPath: /goff/default-flags.yaml ports: - name: http protocol: TCP @@ -64,9 +63,12 @@ spec: periodSeconds: 10 terminationGracePeriodSeconds: 1200 volumes: - - name: configs + - name: config configMap: - name: goff-configs + name: goff-relay-config + - name: default-flags + configMap: + name: default-flags --- apiVersion: networking.k8s.io/v1 diff --git a/apps/goff/base/kustomization.yaml b/apps/goff/base/kustomization.yaml index f27bb2e..7ceb745 100644 --- a/apps/goff/base/kustomization.yaml +++ b/apps/goff/base/kustomization.yaml @@ -3,7 +3,9 @@ kind: Kustomization resources: - deployment.yaml configMapGenerator: - - name: goff-configs + - name: goff-relay-config + files: + - relay-config.yaml + - name: default-flags files: - - config.yaml=relay-config.yaml - default-flags.yaml