awx
by Helm
A Helm chart for Kubernetes
About this chart
Ansible AWX
Helm deployement of Ansible AWX on Kubernetes
(Original code from https://github.com/arthur-c/ansible-awx-helm-chart)
Introduction
This chart bootstraps an AWX deployment on a Kubernetes cluster using the Helm package manager.
Installing the Chart
The command deploys AWX on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.
This charts embeds chart dependencies specified in the requirements.yaml file:
- postgresql
- memcached
- rabbitmq
Note: Currently, this chart is not ready to be used with external postgresql, memcached or rabbitmq. PR welcomed.
Uninstalling the Chart
To uninstall/delete the my-release deployment:
helm delete my-release
The command removes all the Kubernetes components associated with the chart and deletes the release.
Configuration
The following table lists the configurable parameters of the awx chart and their default values. Postgresql, memcached, rabbitmq charts values can be overridden in awx/values.yaml
| Parameter | Description | Default |
|---|---|---|
replicaCount | Pod replica count | 1 |
awx_web.image.repository | ansible/awx_web | |
awx_web.image.tag | 2.1.2 | |
awx_web.image.pullPolicy | IfNotPresent | |
awx_task.image.repository | ansible/awx_task | |
awx_task.image.tag | 2.1.2 | |
awx_task.image.pullPolicy | IfNotPresent | |
awx_secret_key | awxsecret | |
default_admin_user | admin | |
default_admin_password | password | |
deployment.annotations | {} | |
service.internalPort | 8052 | |
service.externalPort | 8052 | |
ingress.enabled | false | |
memcached.install | Install memcached chart | true |
rabbitmq.install | Install rabbitmq chart | true |
rabbitmq.rabbitmq.username | Rabbitmq username | awx |
rabbitmq.rabbitmq.password | Rabbitmq password | awx |
rabbitmq.rabbitmq.configuration | Rabbitmq configuration file | cf values.yaml |
postgresql.install | Install postgresql chart | true |
postgresql.postgresqlUsername | postgresql username | postgres |
postgresql.postgresqlPassword | postgresql password | awx |
postgresql.postgresqlDatabase | postgresql database | awx |
postgresql.persistence.enabled | postgresql persistence | true |
Deploy awx with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has awx on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartawx is pinned at v10.0.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply