Update Containers/Kubernetes/Rancher RKE2/AWX Operator/Ansible Operator.md

This commit is contained in:
Nicole Rappe
2024-01-19 23:37:24 -07:00
parent f76a014de2
commit ae2dc62f43

View File

@ -26,32 +26,41 @@ ulimit -n 4096
### Create the AWX deployment configuration files ### Create the AWX deployment configuration files
You will need to create these files all in the same directory using the content of the examples below. Be sure to replace values such as the `spec.host=awx.bunny-lab.io` in the `awx-ingress.yml` file to a hostname you can point a DNS server / record to. You will need to create these files all in the same directory using the content of the examples below. Be sure to replace values such as the `spec.host=awx.bunny-lab.io` in the `awx-ingress.yml` file to a hostname you can point a DNS server / record to.
```jsx title="/awx/kustomization.yml"
apiVersion: kustomize.config.k8s.io/v1beta1 === "/awx/kustomization.yml"
kind: Kustomization
resources: ```jsx title="/awx/kustomization.yml"
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- github.com/ansible/awx-operator/config/default?ref=2.4.0 - github.com/ansible/awx-operator/config/default?ref=2.4.0
- awx.yml - awx.yml
- awx-ingress.yml - awx-ingress.yml
images: images:
- name: quay.io/ansible/awx-operator - name: quay.io/ansible/awx-operator
newTag: 2.4.0 newTag: 2.4.0
namespace: awx namespace: awx
``` ```
```jsx title="/awx/awx.yml"
apiVersion: awx.ansible.com/v1beta1 === "/awx/awx.yml"
kind: AWX
metadata: ```jsx title="/awx/awx.yml"
apiVersion: awx.ansible.com/v1beta1
kind: AWX
metadata:
name: awx name: awx
spec: spec:
service_type: ClusterIP service_type: ClusterIP
``` ```
```jsx title="/awx/awx-ingress.yml"
apiVersion: networking.k8s.io/v1 === "/awx/awx-ingress.yml"
kind: Ingress
metadata: ```jsx title="/awx/awx-ingress.yml"
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: awx-ingress name: awx-ingress
spec: spec:
rules: rules:
- host: awx.bunny-lab.io - host: awx.bunny-lab.io
http: http:
@ -63,7 +72,7 @@ spec:
name: awx-service name: awx-service
port: port:
number: 80 number: 80
``` ```
## Deploy AWX using Kustomize ## Deploy AWX using Kustomize
Now it is time to tell Rancher / Kubernetes to read the configuration files using Kustomize (built-in to newer versions of Kubernetes) to deploy AWX into the cluster. Be sure that you are still in the `/awx` folder before running this command. **Be Patient: ** The AWX deployment process can take a while. Go grab a cup of coffee and use the commands in the [Troubleshooting](https://docs.cyberstrawberry.net/Container%20Documentation/Kubernetes/Rancher%20RKE2/RKE2%20Ansible%20AWX#troubleshooting) Now it is time to tell Rancher / Kubernetes to read the configuration files using Kustomize (built-in to newer versions of Kubernetes) to deploy AWX into the cluster. Be sure that you are still in the `/awx` folder before running this command. **Be Patient: ** The AWX deployment process can take a while. Go grab a cup of coffee and use the commands in the [Troubleshooting](https://docs.cyberstrawberry.net/Container%20Documentation/Kubernetes/Rancher%20RKE2/RKE2%20Ansible%20AWX#troubleshooting)