Skip to content

Commit

Permalink
Merge pull request #1599 from rzetelskik/multi-datacenter-manager-doc…
Browse files Browse the repository at this point in the history
…s-fix-1.11

[v1.11] Fix invalid commands in Scylla Manager section of GKE mulit-datacenter documentation
  • Loading branch information
scylla-operator-bot[bot] authored Nov 28, 2023
2 parents aed9c6a + e327833 commit a7eb9e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/multidc/multidc.md
Original file line number Diff line number Diff line change
Expand Up @@ -586,12 +586,12 @@ auth_token: 84qtsfvm98qzmps8s65zr2vtpb8rg4sdzcbg4pbmg2pfhxwpg952654gj86tzdljfqns

Save the output, replace the token with your own, and patch the secret in the second datacenter with the below command:
```shell
kubectl --context="${CONTEXT_DC2}"-n=scylla patch secret/scylla-cluster-auth-token --type='json' -p='[{"op": "replace", "path": "/data/auth-token.yaml", "value": "auth_token: 84qtsfvm98qzmps8s65zr2vtpb8rg4sdzcbg4pbmg2pfhxwpg952654gj86tzdljfqnsghndljm58mmhpmwfgpsvjx2kkmnns8bnblmgkbl9n8l9f64rs6tcvttm7kmf"}]'
kubectl --context="${CONTEXT_DC2}" -n=scylla patch secret/scylla-cluster-auth-token--type='json' -p='[{"op": "add", "path": "/stringData", "value": {"auth-token.yaml": "auth_token: 84qtsfvm98qzmps8s65zr2vtpb8rg4sdzcbg4pbmg2pfhxwpg952654gj86tzdljfqnsghndljm58mmhpmwfgpsvjx2kkmnns8bnblmgkbl9n8l9f64rs6tcvttm7kmf"}}]'
```

Execute a rolling restart of the nodes in DC2 to make sure they pick up the new token:
```shell
kubectl --context="${CONTEXT_DC2}" patch scyllacluster/scylla-cluster --type merge -p '{"spec": {"forceRedeploymentReason": "sync scylla-manager-agent token ('$(date)')"}}'
kubectl --context="${CONTEXT_DC2}" -n=scylla patch scyllacluster/scylla-cluster --type='merge' -p='{"spec": {"forceRedeploymentReason": "sync scylla-manager-agent token ('"$( date )"')"}}'
```


Expand Down

0 comments on commit a7eb9e9

Please sign in to comment.