awx
basic install
follow the install guide but these are the stripped down steps
- clone repo (use https not ssh) and switch to latest tag
git clone https://github.com/ansible/awx-operator.git cd awx-operator && \ git checkout tags/<tag>
- make
make deploy
- wait for 2 running
- this skips the need to have your own
kustomization.yaml
but it seems we need it later any way--- apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: # Find the latest tag here: https://github.com/ansible/awx-operator/releases - github.com/ansible/awx-operator/config/default?ref=<tag> # Set the image tags to match the git version from above images: - name: quay.io/ansible/awx-operator newTag: <tag> # Specify a custom namespace in which to install AWX namespace: awx
- check operator is running
kubectl get pods -n awx
- set default namespace
kubectl config set-context --current --namespace=awx
- check or create
awx-demo.yml
--- apiVersion: awx.ansible.com/v1beta1 kind: AWX metadata: name: awx-demo spec: service_type: nodeport
- add
awx-demo
tokustomization.yaml
(see, told you we needed it)... resources: - github.com/ansible/awx-operator/config/default?ref=<tag> # Add this extra line: - awx-demo.yml ...
- apply changes
kubectl apply -k .
- check deployment
## don't need this, and minikube isn't configured #* install minikube, because we need it and it isn't installed already #kubectl logs -f deployments/awx-operator-controller-manager -c awx-manager -n awx kubectl get pods -l "app.kubernetes.io/managed-by=awx-operator" -n awx kubectl get svc -l "app.kubernetes.io/managed-by=awx-operator" -n awx
#curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube_latest_amd64.deb #dpkg -i minikube_latest_amd64.deb #
#* get service url ##minikube service -n awx awx-demo-service --url #
- create ingress.yaml
apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: awx-demo-service annotations: ingress.kubernetes.io/ssl-redirect: "false" spec: rules: - http: paths: - path: / pathType: Prefix backend: service: name: awx-demo-service port: number: 80
- create ingress
kubectl create -f ./ingress.yaml kubectl describe ingress
- get admin password
kubectl get secret awx-demo-admin-password -o jsonpath="{.data.password}" | base64 --decode ; echo