diff --git a/packages/core/platform/bundles/paas-full.yaml b/packages/core/platform/bundles/paas-full.yaml index ff8cbef45..8563824f3 100644 --- a/packages/core/platform/bundles/paas-full.yaml +++ b/packages/core/platform/bundles/paas-full.yaml @@ -62,6 +62,17 @@ releases: namespace: cozy-system dependsOn: [cilium,kubeovn] +- name: cozystack-controller + releaseName: cozystack-controller + chart: cozy-cozystack-controller + namespace: cozy-system + dependsOn: [cilium,kubeovn] + {{- if eq (index $cozyConfig.data "telemetry-enabled") "false" }} + values: + cozystackController: + disableTelemetry: true + {{- end }} + - name: cert-manager releaseName: cert-manager chart: cozy-cert-manager diff --git a/packages/core/platform/bundles/paas-hosted.yaml b/packages/core/platform/bundles/paas-hosted.yaml index 6b2184972..c986a06bb 100644 --- a/packages/core/platform/bundles/paas-hosted.yaml +++ b/packages/core/platform/bundles/paas-hosted.yaml @@ -35,6 +35,17 @@ releases: namespace: cozy-system dependsOn: [] +- name: cozystack-controller + releaseName: cozystack-controller + chart: cozy-cozystack-controller + namespace: cozy-system + dependsOn: [] + {{- if eq (index $cozyConfig.data "telemetry-enabled") "false" }} + values: + cozystackController: + disableTelemetry: true + {{- end }} + - name: cert-manager releaseName: cert-manager chart: cozy-cert-manager diff --git a/packages/system/cozystack-api/templates/deployment.yaml b/packages/system/cozystack-api/templates/deployment.yaml index fbcb2f5fa..3dd93bd8c 100644 --- a/packages/system/cozystack-api/templates/deployment.yaml +++ b/packages/system/cozystack-api/templates/deployment.yaml @@ -6,7 +6,7 @@ metadata: labels: app: cozystack-api spec: - replicas: 1 + replicas: 2 selector: matchLabels: app: cozystack-api diff --git a/packages/system/cozystack-controller/templates/deployment.yaml b/packages/system/cozystack-controller/templates/deployment.yaml index e6e1be250..1d0bd956d 100644 --- a/packages/system/cozystack-controller/templates/deployment.yaml +++ b/packages/system/cozystack-controller/templates/deployment.yaml @@ -20,4 +20,11 @@ spec: - name: cozystack-controller image: "{{ .Values.cozystackController.image }}" args: + {{- if .Values.cozystackController.debug }} - --zap-log-level=debug + {{- else }} + - --zap-log-level=info + {{- end }} + {{- if .Values.cozystackController.disableTelemetry }} + - --disable-telemetry + {{- end }} diff --git a/packages/system/cozystack-controller/values.yaml b/packages/system/cozystack-controller/values.yaml index a23d35b86..e29dc6c26 100644 --- a/packages/system/cozystack-controller/values.yaml +++ b/packages/system/cozystack-controller/values.yaml @@ -1,2 +1,4 @@ cozystackController: image: ghcr.io/aenix-io/cozystack/cozystack-controller:latest@sha256:0638f77f16b778794bd8514a3c5a3c39408a078ad21a2ccc25c5fd8a1f66185f + debug: false + disableTelemetry: false