Skip to content

Commit 361a79a

Browse files
author
Nate Thornton
committed
Shell script to grab the token and cert must use the longform base64 --decode option for Linux
Signed-off-by: Nate Thornton <nate.thornton@hpe.com>
1 parent cbfd356 commit 361a79a

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)