Skip to content

Instantly share code, notes, and snippets.

@andersondario
Last active November 1, 2021 12:29
Show Gist options
  • Save andersondario/ab9c49ea16840c85b9ca816468e33f66 to your computer and use it in GitHub Desktop.
Save andersondario/ab9c49ea16840c85b9ca816468e33f66 to your computer and use it in GitHub Desktop.
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