maintenance: read k3s token from mounted file
This commit is contained in:
parent
321e7af20d
commit
c27ad64e50
@ -33,7 +33,7 @@ spec:
|
|||||||
args:
|
args:
|
||||||
- |
|
- |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
token="$(tr -d '\n' < /host/var/lib/rancher/k3s/server/node-token)"
|
token="$(tr -d '\n' < /host/var/lib/rancher/k3s/server/token)"
|
||||||
kubectl -n maintenance create secret generic metis-runtime \
|
kubectl -n maintenance create secret generic metis-runtime \
|
||||||
--from-literal=k3s_token="${token}" \
|
--from-literal=k3s_token="${token}" \
|
||||||
--dry-run=client -o yaml | kubectl apply -f -
|
--dry-run=client -o yaml | kubectl apply -f -
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user