From ca8542185a618a62917edfa6cac175335aef7be6 Mon Sep 17 00:00:00 2001 From: Sergey Dudoladov Date: Wed, 16 May 2018 11:01:16 +0200 Subject: [PATCH] Add RBAC to Quickstart guide --- README.md | 16 +++++++++------- manifests/postgres-operator.yaml | 2 +- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index c4b270d77..0f328a6da 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ and the replacements are spawned automatically by each StatefulSet with the new ## Quickstart -Prerequisites: [minikube](https://github.com/kubernetes/minikube/releases) and [kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl/#install-kubectl-binary-via-native-package-management) +Prerequisites: [minikube](https://github.com/kubernetes/minikube/releases) and [kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl/#install-kubectl-binary-via-curl) ### Local execution @@ -38,16 +38,13 @@ git clone https://github.com/zalando-incubator/postgres-operator.git cd postgres-operator minikube start -kubectl config set-context minikube kubectl create -f manifests/configmap.yaml # operator config -kubectl create -f manifests/serviceaccount.yaml # operator pod identity -kubectl create -f manifests/postgres-operator.yaml # start the operator - -# startup may last a few seconds +kubectl create -f manifests/operator-rbac.yaml # operator pod identity +kubectl create -f manifests/postgres-operator.yaml # create postgres-operator deployment +# operator startup may last a few seconds kubectl create -f manifests/minimal-postgres-manifest.yaml # submit a PG cluster -minikube delete # tear down cleanly ``` We have automated these steps for you: @@ -56,6 +53,11 @@ cd postgres-operator ./run_operator_locally.sh ``` +Tear down cleanly: +```bash +minikube delete +``` + ## Scope The scope of the postgres operator is on provisioning, modifying configuration and cleaning up Postgres clusters that use Patroni, basically to make it easy and convenient to run Patroni based clusters on Kubernetes. diff --git a/manifests/postgres-operator.yaml b/manifests/postgres-operator.yaml index a7a8dde49..54e65210f 100644 --- a/manifests/postgres-operator.yaml +++ b/manifests/postgres-operator.yaml @@ -9,7 +9,7 @@ spec: labels: name: postgres-operator spec: - serviceAccountName: operator + serviceAccountName: zalando-postgres-operator containers: - name: postgres-operator image: registry.opensource.zalan.do/acid/postgres-operator:4c8dfd7