Unrelated chaotic good adjustments of snippets

This commit is contained in:
erthalion 2018-06-01 16:21:37 +02:00
parent 07d9dff847
commit b82faf66bb
1 changed files with 8 additions and 8 deletions

View File

@ -34,13 +34,13 @@ spec:
## Create a new Spilo cluster ## Create a new Spilo cluster
```bash ```bash
$ kubectl create -f manifests/minimal-postgres-manifest.yaml $ kubectl create -f manifests/minimal-postgres-manifest.yaml
``` ```
## Watch pods being created ## Watch pods being created
```bash ```bash
$ kubectl get pods -w --show-labels $ kubectl get pods -w --show-labels
``` ```
## Connect to PostgreSQL ## Connect to PostgreSQL
@ -48,10 +48,10 @@ spec:
We can use the generated secret of the `postgres` robot user to connect to our `acid-minimal-cluster` master running in Minikube: We can use the generated secret of the `postgres` robot user to connect to our `acid-minimal-cluster` master running in Minikube:
```bash ```bash
$ export PGHOST=db_host $ export PGHOST=db_host
$ export PGPORT=db_port $ export PGPORT=db_port
$ export PGPASSWORD=$(kubectl get secret postgres.acid-minimal-cluster.credentials -o 'jsonpath={.data.password}' | base64 -d) $ export PGPASSWORD=$(kubectl get secret postgres.acid-minimal-cluster.credentials -o 'jsonpath={.data.password}' | base64 -d)
$ psql -U postgres $ psql -U postgres
``` ```
# Defining database roles in the operator # Defining database roles in the operator
@ -169,7 +169,7 @@ pods, you can use
[taints and tolerations](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/) [taints and tolerations](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/)
and configure the required toleration in the manifest. and configure the required toleration in the manifest.
``` ```yaml
apiVersion: "acid.zalan.do/v1" apiVersion: "acid.zalan.do/v1"
kind: postgresql kind: postgresql
metadata: metadata:
@ -187,7 +187,7 @@ spec:
To spin up a new cluster as a clone of the existing one, you need to provide a To spin up a new cluster as a clone of the existing one, you need to provide a
clone section in the spec: clone section in the spec:
``` ```yaml
apiVersion: "acid.zalan.do/v1" apiVersion: "acid.zalan.do/v1"
kind: postgresql kind: postgresql