reactive-tech / kubegres

Kubegres is a Kubernetes operator allowing to deploy one or many clusters of PostgreSql instances and manage databases replication, failover and backup.
https://www.kubegres.io
Apache License 2.0
1.32k stars 74 forks source link

No pod, sts created in default namespace #130

Closed khteh closed 2 years ago

khteh commented 2 years ago
apiVersion: kubegres.reactive-tech.io/v1
kind: Kubegres
metadata:
  name: postgresql
  namespace: default 
spec:
   replicas: 2
   image: postgres:latest
   database:
      size: 200Mi
   env:
      - name: POSTGRES_PASSWORD
        valueFrom:
           secretKeyRef:
              name: postgresql-secret
              key: superUserPassword
      - name: POSTGRES_REPLICATION_PASSWORD
        valueFrom:
           secretKeyRef:
              name: postgresql-secret
              key: replicationUserPassword
$ kubectl apply -f postgresql.yml
kubegres.kubegres.reactive-tech.io/postgresql unchanged
alex-arica commented 2 years ago

I suspect this happens because you are using Kubernetes 1.25.

Kubegres 1.16 is compatible with Kubernetes 1.25: https://github.com/reactive-tech/kubegres/releases/tag/v1.16