Cannot add Distributed Logs to existing cluster
Summary
Once I've created a StackGres cluster, I'm not able to add Distributed Logs.
Environment
-
StackGres version: 0.9-beta3
-
Kubernetes version (use
kubectl version
): 1.15 -
Cloud provider or hardware configuration: AWS
Steps to reproduce
First of all, I created the cluster with Helm:
helm install --namespace sg-cluster-dev gitlab \
--values SGCluster-values.yaml \
--values SGPostgresConfig-values.yaml \
--values SGPoolingConfig-values.yaml \
https://stackgres.io/downloads/stackgres-k8s/stackgres/0.9-beta3/helm-cluster.tgz
After this, I want to add Distributed Logs with Helm upgrade, getting the error:
helm upgrade --namespace sg-cluster-dev gitlab \
--values SGCluster-values.yaml \
--values SGPostgresConfig-values.yaml \
--values SGPoolingConfig-values.yaml \
--values SGDistributedLogs-values.yaml \
https://stackgres.io/downloads/stackgres-k8s/stackgres/0.9-beta3/helm-cluster.tgz
load.go:112: Warning: Dependencies are handled in Chart.yaml since apiVersion "v2". We recommend migrating dependencies to Chart.yaml.
Error: UPGRADE FAILED: cannot patch "gitlab" with kind SGCluster: admission webhook "sgcluster.stackgres-operator.stackgres" denied the request: Cannot update to distributed logs distributedlogs because it doesn't exist
Relevant logs and/or screenshots
Error: UPGRADE FAILED: cannot patch "gitlab" with kind SGCluster: admission webhook "sgcluster.stackgres-operator.stackgres" denied the request: Cannot update to distributed logs distributedlogs because it doesn't exist
SGCluster-values.yaml:
cluster:
create: true
postgresVersion: '12.2'
instances: 3
sgInstanceProfile: 'size-s'
pods:
persistentVolume:
size: 5Gi
configurations:
sgPostgresConfig: dev-postgresconf
sgPoolingConfig: dev-pgbouncerconf
#sgBackupConfig: dev-backupconf
distributedLogs:
sgDistributedLogs: distributedlogs
#You should only set following options for non production environment
nonProductionOptions:
disableClusterPodAntiAffinity: false
createMinio: true
SGDistributedLogs-values.yaml:
distributedLogs:
enabled: true
persistentVolume:
size: 10Gi
# storageClass: "-"
Edited by Adrián Escoms