Skip to content

Commit

Permalink
Fix some errors in the Etcd addon docs. (#177)
Browse files Browse the repository at this point in the history
Signed-off-by: piyush1146115 <[email protected]>
  • Loading branch information
piyush1146115 authored Oct 26, 2021
1 parent a0845d4 commit 0ebb2d8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 5 additions & 3 deletions docs/addons/etcd/basic-auth/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ statefulset.apps/etcd created
Now, let's wait for the database pods `etcd-0`, `etcd-1`, and `etcd-2` to go into `Running` state,

```bash
kc get pods -n demo --selector=app=etcd
kubectl get pods -n demo --selector=app=etcd

NAME READY STATUS RESTARTS AGE
etcd-0 1/1 Running 0 11s
Expand Down Expand Up @@ -290,11 +290,11 @@ At first, let's create a secret called `gcs-secret` with access credentials to o
```bash
$ echo -n 'changeit' > RESTIC_PASSWORD
$ echo -n '<your-project-id>' > GOOGLE_PROJECT_ID
$ cat downloaded-sa-json.key > GOOGLE_Service_ACCOUNT_JSON_KEY
$ cat downloaded-sa-key.json > GOOGLE_SERVICE_ACCOUNT_JSON_KEY
$ kubectl create secret generic -n demo gcs-secret \
--from-file=./RESTIC_PASSWORD \
--from-file=./GOOGLE_PROJECT_ID \
--from-file=./GOOGLE_Service_ACCOUNT_JSON_KEY
--from-file=./GOOGLE_SERVICE_ACCOUNT_JSON_KEY
secret/gcs-secret created
```

Expand Down Expand Up @@ -621,6 +621,8 @@ kubectl delete -n demo backupconfiguration etcd-backup
kubectl delete -n demo restoresession etcd-restore
kubectl delete -n demo repository gcs-repo
kubectl delete -n demo appbinding etcd-appbinding
kubectl delete -n demo Secret etcd-basic-auth
kubectl delete -n demo Secret gcs-secret
# delete the Etcd cluster, Service, and PVCs
kubectl delete -f https://github.com/stashed/docs/tree/{{< param "info.version" >}}/docs/addons/etcd/basic-auth/examples/etcd.yaml
kubectl delete pvc -n demo data-etcd-0 data-etcd-1 data-etcd-2
Expand Down
5 changes: 4 additions & 1 deletion docs/addons/etcd/tls/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ At first, let's create a secret called `gcs-secret` with access credentials to o
```bash
$ echo -n 'changeit' > RESTIC_PASSWORD
$ echo -n '<your-project-id>' > GOOGLE_PROJECT_ID
$ cat downloaded-sa-json.key > GOOGLE_SERVICE_ACCOUNT_JSON_KEY
$ cat downloaded-sa-key.json > GOOGLE_SERVICE_ACCOUNT_JSON_KEY
$ kubectl create secret generic -n demo gcs-secret \
--from-file=./RESTIC_PASSWORD \
--from-file=./GOOGLE_PROJECT_ID \
Expand Down Expand Up @@ -649,6 +649,9 @@ kubectl delete -n demo backupconfiguration etcd-tls-backup
kubectl delete -n demo restoresession etcd-tls-restore
kubectl delete -n demo repository gcs-repo
kubectl delete -n demo appbinding etcd-appbinding
kubectl delete -n demo Secret gcs-secret
kubectl delete -n demo Secret etcd-client-certs
kubectl delete -n demo Secret etcd-server-certs
# delete the database, Service, and PVCs
kubectl delete -f https://github.com/stashed/docs/tree/{{< param "info.version" >}}/docs/addons/etcd/tls/examples/etcd-tls.yaml
kubectl delete pvc -n demo data-etcd-tls-0 data-etcd-tls-1 data-etcd-tls-2
Expand Down

0 comments on commit 0ebb2d8

Please sign in to comment.