Skip to content

Instantly share code, notes, and snippets.

@carreirorco
Last active May 7, 2021 18:50
Show Gist options
  • Save carreirorco/14fb79240ba996bdec20ef5841ceccf2 to your computer and use it in GitHub Desktop.
Save carreirorco/14fb79240ba996bdec20ef5841ceccf2 to your computer and use it in GitHub Desktop.

Utilizar a v18.1 do minikube

https://github.com/kubernetes/minikube/releases/tag/v1.18.1 https://github.com/kubernetes/minikube/releases/download/v1.18.1/minikube-linux-amd64

wget https://github.com/kubernetes/minikube/releases/download/v1.18.1/minikube-linux-amd64
sudo mv minikube-linux-amd64 /usr/local/bin/minikube
sudo chmod +x /usr/local/bin/minikube
minikube version
minikube start --cpus=4 --memory=4096
minikube addons enable ingress
minikube addons enable metrics-server
minikube addons enable dashboard
kubectl apply -f https://raw.githubusercontent.com/ansible/awx-operator/devel/deploy/awx-operator.yaml
cat << EOF >> awx-deploy.yml
---
apiVersion: v1
kind: Namespace
metadata:
  name: awx
  labels:
    name: awx
---
apiVersion: awx.ansible.com/v1beta1
kind: AWX
metadata:
  name: awx
  namespace: awx
  labels:
    name: awx
spec:
  tower_ingress_type: Ingress
  tower_hostname: awx-service.awx.svc.cluster.local
---
apiVersion: v1
kind: Secret
metadata:
  name: awx-admin-password
  namespace: awx
  labels:
    name: awx
stringData:
  password: changeme
EOF
kubectl apply -f awx-deploy.yml
minikube service awx-service --url -n awx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment