From b82faf66bbb504762fab39e7f677d32a1d68be10 Mon Sep 17 00:00:00 2001 From: erthalion <9erthalion6@gmail.com> Date: Fri, 1 Jun 2018 16:21:37 +0200 Subject: [PATCH] Unrelated chaotic good adjustments of snippets --- docs/user.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/user.md b/docs/user.md index 5beb4d31e..144b3b806 100644 --- a/docs/user.md +++ b/docs/user.md @@ -34,13 +34,13 @@ spec: ## Create a new Spilo cluster ```bash - $ kubectl create -f manifests/minimal-postgres-manifest.yaml +$ kubectl create -f manifests/minimal-postgres-manifest.yaml ``` ## Watch pods being created ```bash - $ kubectl get pods -w --show-labels +$ kubectl get pods -w --show-labels ``` ## 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: ```bash - $ export PGHOST=db_host - $ export PGPORT=db_port - $ export PGPASSWORD=$(kubectl get secret postgres.acid-minimal-cluster.credentials -o 'jsonpath={.data.password}' | base64 -d) - $ psql -U postgres +$ export PGHOST=db_host +$ export PGPORT=db_port +$ export PGPASSWORD=$(kubectl get secret postgres.acid-minimal-cluster.credentials -o 'jsonpath={.data.password}' | base64 -d) +$ psql -U postgres ``` # 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/) and configure the required toleration in the manifest. -``` +```yaml apiVersion: "acid.zalan.do/v1" kind: postgresql metadata: @@ -187,7 +187,7 @@ spec: To spin up a new cluster as a clone of the existing one, you need to provide a clone section in the spec: -``` +```yaml apiVersion: "acid.zalan.do/v1" kind: postgresql