Last active
November 1, 2021 12:29
-
-
Save andersondario/ab9c49ea16840c85b9ca816468e33f66 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
minikube start --addons=ingress --cpus=4 --cni=flannel --install-addons=true --kubernetes-version=stable --memory=6g | |
minikube dashboard (optional) | |
export NAMESPACE=awx | |
kubectl create ns ${NAMESPACE} | |
kubectl config set-context --current --namespace=$NAMESPACE | |
git clone https://github.com/ansible/awx-operator.git | |
cd awx-operator/ | |
sudo apt update | |
sudo apt install curl jq | |
RELEASE_TAG=`curl -s https://api.github.com/repos/ansible/awx-operator/releases/latest | grep tag_name | cut -d '"' -f 4` | |
echo $RELEASE_TAG | |
git checkout $RELEASE_TAG | |
export NAMESPACE=awx | |
make deploy | |
kubectl apply -f awx-demo.yml | |
// Wait... | |
watch kubectl get pods -l "app.kubernetes.io/managed-by=awx-operator" | |
// Get URL | |
minikube service awx-demo-service --url -n $NAMESPACE | |
// Access URL | |
// Maybe it is necessary wait more 5 minutes | |
// Get Admin Pass | |
kubectl get secret awx-demo-admin-password -o jsonpath="{.data.password}" -n awx | base64 --decode | |
// Login with user: admin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment