This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
postgres-operator|master ⇒ k config get-contexts | |
CURRENT NAME CLUSTER AUTHINFO NAMESPACE | |
hak8s.handoffs.tech hak8s.handoffs.tech hak8s.handoffs.tech | |
* minikube minikube minikube | |
postgres-operator|master ⇒ # start the operator; may take a few seconds | |
kubectl create -f manifests/configmap.yaml # configuration | |
kubectl create -f manifests/operator-service-account-rbac.yaml # identity and permissions | |
kubectl create -f manifests/postgres-operator.yaml # deployment | |
# create a Postgres cluster in a non-default namespace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
time="2019-03-18T16:09:02Z" level=info msg="users have been initialized" cluster-name=default/acid-minimal-cluster pkg=cluster worker=1 | |
time="2019-03-18T16:09:02Z" level=debug msg="created new secret \"default/foo-user.acid-minimal-cluster.credentials\", uid: \"25630725-4998-11e9-a27a-0aed8a66ff62\"" cluster-name=default/acid-minimal-cluster pkg=cluster worker=1 | |
time="2019-03-18T16:09:02Z" level=debug msg="created new secret \"default/zalando.acid-minimal-cluster.credentials\", uid: \"256a329c-4998-11e9-a27a-0aed8a66ff62\"" cluster-name=default/acid-minimal-cluster pkg=cluster worker=1 | |
time="2019-03-18T16:09:02Z" level=debug msg="created new secret \"default/standby.acid-minimal-cluster.credentials\", uid: \"256ecf23-4998-11e9-a27a-0aed8a66ff62\"" cluster-name=default/acid-minimal-cluster pkg=cluster worker=1 | |
time="2019-03-18T16:09:02Z" level=debug msg="created new secret \"default/postgres.acid-minimal-cluster.credentials\", uid: \"257223dd-4998-11e9-a27a-0aed8a66ff62\"" cluster-name=default/acid-minimal-clu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apps|⇒ k get pods | |
NAME READY STATUS RESTARTS AGE | |
acid-test-cluster-0 1/1 Running 0 48m | |
acid-test-cluster-1 1/1 Running 0 48m | |
postgres-operator-697dcf5677-xf252 1/1 Running 0 53m | |
apps|⇒ k logs -f acid-test-cluster-0 | |
2019-03-18 14:15:32,175 INFO: no action. i am the leader with the lock | |
2019-03-18 14:15:42,160 INFO: Lock owner: acid-test-cluster-0; I am acid-test-cluster-0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
time="2019-03-18T13:44:11Z" level=debug msg="cached StatefulSet value exists, rollingUpdate flag is true" cluster-name=default/acid-test-cluster pkg=cluster worker=0 | |
time="2019-03-18T13:44:11Z" level=debug msg="Generating Spilo container, environment variables: [{SCOPE acid-test-cluster nil} {PGROOT /home/postgres/pgdata/pgroot nil} {POD_IP &EnvVarSource{FieldRef:&ObjectFieldSelector{APIVersion:v1,FieldPath:status.podIP,},ResourceFieldRef:nil,ConfigMapKeyRef:nil,SecretKeyRef:nil,}} {POD_NAMESPACE &EnvVarSource{FieldRef:&ObjectFieldSelector{APIVersion:v1,FieldPath:metadata.namespace,},ResourceFieldRef:nil,ConfigMapKeyRef:nil,SecretKeyRef:nil,}} {PGUSER_SUPERUSER postgres nil} {KUBERNETES_SCOPE_LABEL version nil} {KUBERNETES_ROLE_LABEL spilo-role nil} {KUBERNETES_LABELS application=spilo nil} {PGPASSWORD_SUPERUSER &EnvVarSource{FieldRef:nil,ResourceFieldRef:nil,ConfigMapKeyRef:nil,SecretKeyRef:&SecretKeySelector{LocalObjectReference:LocalObjectReference{Name:postgres.acid-test-cluster.credentials,},Key:passw |