Skip to content

Instantly share code, notes, and snippets.

@initcron
Last active September 15, 2025 17:56
Show Gist options
  • Save initcron/c707ae1bd7556805cac104597272081b to your computer and use it in GitHub Desktop.
Save initcron/c707ae1bd7556805cac104597272081b to your computer and use it in GitHub Desktop.
mkdir awx-op
cd awx-op

File: kind.config

apiVersion: kind.x-k8s.io/v1alpha4
kind: Cluster
nodes:
- role: control-plane
  extraPortMappings:
  - containerPort: 32000
    hostPort: 32000
    listenAddress: "0.0.0.0" # Optional, defaults to "0.0.0.0"
    protocol: tcp # Optional, defaults to tcp
- role: worker
kind create cluster --config=kind.config
git clone https://github.com/ansible/awx-operator.git

git tag

git checkout 2.19.1

File : kustomization.yaml

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=2.19.1

# Set the image tags to match the git version from above
images:
  - name: quay.io/ansible/awx-operator
    newTag: 2.19.1

# Specify a custom namespace in which to install AWX
namespace: awx

kubectl apply -k .

File : awx-cr.yaml

---
apiVersion: awx.ansible.com/v1beta1
kind: AWX
metadata:
  name: awx-demo
spec:
  service_type: nodeport
  nodeport_port: 32000
kubectl create -f awx-cr.yaml

wait for a few minutes

kubectl get awx
kubectl describe  awx awx-demo

After that you can login using http://localhost:32000

Username : admin
Password: you can get the password using the following

kubectl get secret awx-demo-admin-password -o jsonpath="{.data.password}" | base64 --decode ; echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment