Automated connection between OpenBAO and ESO
This commit is contained in:
parent
b2e91d0163
commit
d390833416
1 changed files with 1 additions and 3 deletions
|
@ -4,7 +4,6 @@ server:
|
|||
- -c
|
||||
- |
|
||||
echo --- unseal workaround
|
||||
echo --- unseal workaround > /tmp/eso_posthook
|
||||
|
||||
sleep 10
|
||||
bao operator init >> /tmp/init.txt
|
||||
|
@ -19,7 +18,6 @@ server:
|
|||
|
||||
|
||||
echo --- provide OpenBAO secret to ESO
|
||||
echo --- provide OpenBAO secret to ESO >> /tmp/eso_posthook
|
||||
|
||||
if [[ "$(uname -m)" == "x86_64" ]]; then
|
||||
wget "https://dl.k8s.io/release/$(wget https://dl.k8s.io/release/stable.txt -q -O -)/bin/linux/amd64/kubectl" -O /tmp/kubectl_eso
|
||||
|
@ -28,7 +26,7 @@ server:
|
|||
fi
|
||||
chmod +x /tmp/kubectl_eso
|
||||
|
||||
kubectl create secret generic vault-token --from-literal=token="$(cat /openbao/data/initial_token.txt)" -n openbao
|
||||
/tmp/kubectl_eso create secret generic vault-token --from-literal=token="$(cat /openbao/data/initial_token.txt)" -n openbao
|
||||
|
||||
rm /tmp/kubectl_eso
|
||||
|
||||
|
|
Loading…
Reference in a new issue