Add RBAC to Quickstart guide

This commit is contained in:
Sergey Dudoladov 2018-05-16 11:01:16 +02:00
parent 9575c9d35e
commit ca8542185a
2 changed files with 10 additions and 8 deletions

View File

@ -29,7 +29,7 @@ and the replacements are spawned automatically by each StatefulSet with the new
## Quickstart ## 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 ### Local execution
@ -38,16 +38,13 @@ git clone https://github.com/zalando-incubator/postgres-operator.git
cd postgres-operator cd postgres-operator
minikube start minikube start
kubectl config set-context minikube
kubectl create -f manifests/configmap.yaml # operator config kubectl create -f manifests/configmap.yaml # operator config
kubectl create -f manifests/serviceaccount.yaml # operator pod identity kubectl create -f manifests/operator-rbac.yaml # operator pod identity
kubectl create -f manifests/postgres-operator.yaml # start the operator kubectl create -f manifests/postgres-operator.yaml # create postgres-operator deployment
# operator startup may last a few seconds
# startup may last a few seconds
kubectl create -f manifests/minimal-postgres-manifest.yaml # submit a PG cluster kubectl create -f manifests/minimal-postgres-manifest.yaml # submit a PG cluster
minikube delete # tear down cleanly
``` ```
We have automated these steps for you: We have automated these steps for you:
@ -56,6 +53,11 @@ cd postgres-operator
./run_operator_locally.sh ./run_operator_locally.sh
``` ```
Tear down cleanly:
```bash
minikube delete
```
## Scope ## 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. 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.

View File

@ -9,7 +9,7 @@ spec:
labels: labels:
name: postgres-operator name: postgres-operator
spec: spec:
serviceAccountName: operator serviceAccountName: zalando-postgres-operator
containers: containers:
- name: postgres-operator - name: postgres-operator
image: registry.opensource.zalan.do/acid/postgres-operator:4c8dfd7 image: registry.opensource.zalan.do/acid/postgres-operator:4c8dfd7