Add RBAC to Quickstart guide
This commit is contained in:
parent
9575c9d35e
commit
ca8542185a
16
README.md
16
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.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue