14 lines
578 B
Bash
14 lines
578 B
Bash
#!/bin/bash
|
|
ansible-playbook -i inventory/${MY_INVENTORY}/inventory.ini --become --user=${MY_SSH_USER} --become-user=root cluster.yml -e etcd_retries=42
|
|
|
|
export KUBECONFIG=$(pwd)/inventory/c12s-sample/artifacts/admin.conf
|
|
echo
|
|
echo "execute the following in any shell where you want to connect to your cluster with kubectl : "
|
|
echo "export KUBECONFIG=$(pwd)/inventory/c12s-sample/artifacts/admin.conf"
|
|
|
|
kubectl create namespace infra
|
|
|
|
echo
|
|
echo ArgoCD admin password :
|
|
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d; echo
|