
Install AWX on K3s with the AWX Operator
A development or evaluation deployment, not a highly available production design. Review compatibility and release notes for all selected versions.
K3s can provide a compact Kubernetes environment for learning AWX. The AWX Operator manages the application and its related resources, but a successful initial install does not supply production backups, redundant storage or an upgrade strategy.
Choose versions, capacity and storage first
Use a currently supported Linux host and review the operator’s supported Kubernetes/AWX combinations. Pin the K3s release and the operator tag together with the installed AWX version. The earlier operator 0.30.0 example is historical and should not be treated as a current recommendation.
Plan CPU, memory, free disk, persistent-volume capacity, database recovery and network access before installation. K3s’s own minimum requirements are not a sizing guide for the combined AWX application and PostgreSQL workload. A single-node local-path volume is tied to that node.
Install a reviewed K3s release
# Set K3S_VERSION to the exact reviewed release before running this block.
: "${K3S_VERSION:?Set an approved K3s version first}"
curl -fsSL https://get.k3s.io -o install-k3s.sh
# Review the downloaded installer before executing it.
sudo env INSTALL_K3S_VERSION="$K3S_VERSION" sh install-k3s.sh
sudo k3s kubectl get nodes
sudo k3s kubectl get storageclass
Do not distribute the administrative kubeconfig or change it to world-readable. Keep Kubernetes API access restricted. Record the chosen release and confirm that the node is Ready and an appropriate StorageClass is available.
Deploy the matching AWX Operator
Create kustomization.yaml with the same reviewed tag in both places below. Replace the placeholder before applying it:
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: awx
resources:
- github.com/ansible/awx-operator/config/default?ref=REPLACE_WITH_REVIEWED_OPERATOR_TAG
images:
- name: quay.io/ansible/awx-operator
newTag: REPLACE_WITH_REVIEWED_OPERATOR_TAG
sudo k3s kubectl apply -k .
sudo k3s kubectl get pods -n awx
Check the operator deployment and its logs if reconciliation does not complete. Follow the matching operator release’s guide for any image-name or manifest changes; do not combine a manifest from one release with an arbitrary latest image.
Create the AWX instance
apiVersion: awx.ansible.com/v1beta1
kind: AWX
metadata:
name: awx-demo
namespace: awx
spec:
service_type: clusterip
Save that resource as awx-demo.yaml, then apply and inspect it:
sudo k3s kubectl apply -f awx-demo.yaml
sudo k3s kubectl get awx,pods,svc,pvc -n awx
This minimal example lets the operator manage the database and generated secrets. Preserve the encryption/secret material and database together when designing recovery. It does not import the old PostgreSQL secret template, whose fields and database version may no longer match the selected operator.
Access locally and complete acceptance
sudo k3s kubectl -n awx port-forward --address 127.0.0.1 service/awx-demo-service 8080:80
Use the operator’s admin-account guide to retrieve the generated password privately; never copy it into a public command transcript or repository. For remote use, use an approved tunnel or properly configured HTTPS ingress rather than exposing an unauthenticated management path or a broad NodePort.
- Confirm the pods are healthy and persistent claims are Bound.
- Sign in, create a small test inventory/project and run a harmless job through the intended execution environment.
- Record the operator/AWX/database versions and establish a tested backup before loading valuable credentials or automation.
- Review the operator upgrade and restore procedures before updating; deleting the namespace can delete associated recovery resources.
References
- K3s quick start and requirements
- AWX Operator basic installation
- AWX Operator admin account
- AWX Operator upgrade guidance