Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 1.25 KB

README.md

File metadata and controls

56 lines (38 loc) · 1.25 KB

Install-AWX

Install AWX Operator on a Kubernetes cluster

Run this playbook on a prepared host:

ansible-playbook install-awx.yaml

Obtain the admin password by getting the secret from the cluster: kubectl -n awx get secret awx-admin-password -o jsonpath='{.data.password}' | base64 --decode

k8s tested:

  • IBM Cloud IKS

Choose an appropriate block storageclass for postgres. (https://ibm.github.io/kubernetes-storage/Lab3/)

Example in awx cr:

postgres_storage_class: ibmc-block-bronze

  • k3s
  • k3d
  • kind

Requirements

  1. Ansible

  2. pip packages:

    • authlib>=3.2.0
    • kubernetes
  3. Galaxy Collections:

    • community.general
    • kubernetes.core

Prepare host automatically (Ansible must be pre-installed)

This will install the requirements but may not work on systems with non-standard python installations

./prepare.sh

or run the steps manually:

ansible-galaxy collection install -r requirements.yaml

ansible-playbook prepare.yaml

Uninstall AWX

This uninstalls awx and the operator deployment using the saved credentials

This deletes the namespace that AWX is in...

Be careful with this...

ansible-playbook uninstall-awx.yaml -e "awx_hostname=thehostnameinyourartifactsdiryouwanttouninstall"