pgpool / pgpool2_on_k8s

57 stars 36 forks source link

Unchanged hot-postgres-auth #7

Open Halkrine opened 3 years ago

Halkrine commented 3 years ago

Hello. I'm trying to use pgpool2. So found here, and trying to install.

But I don't know why hot-postgres is unchanged.

Here is logs.

$ kubectl get pod -n demo NAME READY STATUS RESTARTS AGE kubedb-operator-6d79db757f-48nrs 1/1 Running 0 36m

$ kubectl apply -f https://raw.githubusercontent.com/pgpool/pgpool2_on_k8s/master/hot-postgres-auth.yaml --namespace=demo secret/hot-postgres-auth unchanged

$ kubectl apply -f https://raw.githubusercontent.com/pgpool/pgpool2_on_k8s/master/hot-postgres.yaml --namespace=demo postgres.kubedb.com/hot-postgres unchanged No resources found in demo namespace.

My OS is macOS, and i installed kubectl(with brew) and kubernetes(both is lately version).

Have a nice day.

Thanks.

pengbo0328 commented 3 years ago

It seems the parameter name is changed in the recent versions.

could you try to modify the hot-postgres.yaml as below?

git diff hot-postgres.yaml 
diff --git a/hot-postgres.yaml b/hot-postgres.yaml
index 8b28d58..f9abb02 100644
--- a/hot-postgres.yaml
+++ b/hot-postgres.yaml
@@ -6,8 +6,8 @@ spec:
   version: "11.2"
   replicas: 3
   standbyMode: Hot
-  databaseSecret:
-    secretName: hot-postgres-auth
+  authSecret:
+    name: hot-postgres-auth
   storageType: Durable
   storage:
     storageClassName: "standard

This document is old, I am going to update it.

If you will deploy Pgpool-II on k8s, here is the latest docs.

Halkrine commented 3 years ago

Sorry I'm late to confirm reply. I'll try it. Thanks to reply.