Skip to content

Commit 788e87d

Browse files
author
Nate Thornton
authored
Merge pull request #21 from NearNodeFlash/fix/daemons
Shell script to grab the token and cert must use the longform base64 …
2 parents cbfd356 + 361a79a commit 788e87d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/guides/compute-daemons/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ NNF software defines a Kubernetes Service Account for granting communication pri
3939
SERVICE_ACCOUNT=$1
4040
NAMESPACE=$2
4141

42-
kubectl get secret ${SERVICE_ACCOUNT} -n ${NAMESPACE} -o json | jq -Mr '.data.token' | base64 -D > ./service.token
43-
kubectl get secret ${SERVICE_ACCOUNT} -n ${NAMESPACE} -o json | jq -Mr '.data["ca.crt"]' | base64 -D > ./service.cert
42+
kubectl get secret ${SERVICE_ACCOUNT} -n ${NAMESPACE} -o json | jq -Mr '.data.token' | base64 --decode > ./service.token
43+
kubectl get secret ${SERVICE_ACCOUNT} -n ${NAMESPACE} -o json | jq -Mr '.data["ca.crt"]' | base64 -decode > ./service.cert
4444
```
4545

4646
The `service.token` and `service.cert` files must be copied to each compute node, typically in the `/etc/[BINARY-NAME]/` directory

0 commit comments

Comments
 (0)