awx_deployment
Differences
This shows you the differences between two versions of the page.
| awx_deployment [2025/07/26 17:09] – - Imported by DokuWiki Advanced Plugin wikiadm | awx_deployment [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== AWX ====== | ||
| - | ===== Database ===== | ||
| - | |||
| - | <file bash> | ||
| - | # CREATE ROLE awx LOGIN; | ||
| - | postgres=# \password awx | ||
| - | postgres=# CREATE DATABASE awx OWNER awx; | ||
| - | postgres=# \q | ||
| - | </ | ||
| - | |||
| - | <file bash> | ||
| - | $ vim ${PGDATA}/ | ||
| - | [...] | ||
| - | # Acesso AWX Kubernetes | ||
| - | host awx | ||
| - | </ | ||
| - | |||
| - | <file bash> | ||
| - | $ pg_ctl reload | ||
| - | </ | ||
| - | |||
| - | ===== Configure ===== | ||
| - | <file bash> | ||
| - | $ curl -s " | ||
| - | $ sudo mv kustomize / | ||
| - | </ | ||
| - | |||
| - | <file yaml kustomization.yaml> | ||
| - | apiVersion: kustomize.config.k8s.io/ | ||
| - | kind: Kustomization | ||
| - | resources: | ||
| - | # Find the latest tag here: https:// | ||
| - | - github.com/ | ||
| - | |||
| - | # Set the image tags to match the git version from above | ||
| - | images: | ||
| - | - name: quay.io/ | ||
| - | newTag: 1.1.4 | ||
| - | |||
| - | # Specify a custom namespace in which to install AWX | ||
| - | namespace: awx | ||
| - | </ | ||
| - | |||
| - | <file bash> | ||
| - | $ kustomize build . | kubectl apply -f - | ||
| - | # Warning: ' | ||
| - | namespace/ | ||
| - | customresourcedefinition.apiextensions.k8s.io/ | ||
| - | customresourcedefinition.apiextensions.k8s.io/ | ||
| - | customresourcedefinition.apiextensions.k8s.io/ | ||
| - | serviceaccount/ | ||
| - | role.rbac.authorization.k8s.io/ | ||
| - | role.rbac.authorization.k8s.io/ | ||
| - | clusterrole.rbac.authorization.k8s.io/ | ||
| - | clusterrole.rbac.authorization.k8s.io/ | ||
| - | rolebinding.rbac.authorization.k8s.io/ | ||
| - | rolebinding.rbac.authorization.k8s.io/ | ||
| - | clusterrolebinding.rbac.authorization.k8s.io/ | ||
| - | configmap/ | ||
| - | service/ | ||
| - | deployment.apps/ | ||
| - | </ | ||
| - | |||
| - | <file bash> | ||
| - | $ kubectl get all -n awx | ||
| - | NAME READY | ||
| - | pod/ | ||
| - | |||
| - | NAME TYPE CLUSTER-IP | ||
| - | service/ | ||
| - | |||
| - | NAME READY | ||
| - | deployment.apps/ | ||
| - | |||
| - | NAME DESIRED | ||
| - | replicaset.apps/ | ||
| - | </ | ||
| - | |||
| - | <file bash> | ||
| - | $ cat postgres-secret | ||
| - | host=pgsql.juntotelecom.com.br | ||
| - | database=awx | ||
| - | username=awx | ||
| - | password=senha | ||
| - | </ | ||
| - | |||
| - | <file bash> | ||
| - | $ kubectl create secret generic postgres-secret -n awx \ | ||
| - | --from-env-file=postgres-secret -o yaml \ | ||
| - | --dry-run=client > postgres-secret.yaml | ||
| - | </ | ||
| - | |||
| - | <file bash> | ||
| - | $ kubectl apply -f postgres-secret.yaml | ||
| - | </ | ||
| - | |||
awx_deployment.1753560543.txt.gz · Last modified: by wikiadm
