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,44 +26,53 @@ 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"
- github.com/ansible/awx-operator/config/default?ref=2.4.0 apiVersion: kustomize.config.k8s.io/v1beta1
- awx.yml kind: Kustomization
- awx-ingress.yml resources:
images: - github.com/ansible/awx-operator/config/default?ref=2.4.0
- name: quay.io/ansible/awx-operator - awx.yml
newTag: 2.4.0 - awx-ingress.yml
namespace: awx images:
``` - name: quay.io/ansible/awx-operator
```jsx title="/awx/awx.yml" newTag: 2.4.0
apiVersion: awx.ansible.com/v1beta1 namespace: awx
kind: AWX ```
metadata:
name: awx === "/awx/awx.yml"
spec:
service_type: ClusterIP ```jsx title="/awx/awx.yml"
``` apiVersion: awx.ansible.com/v1beta1
```jsx title="/awx/awx-ingress.yml" kind: AWX
apiVersion: networking.k8s.io/v1 metadata:
kind: Ingress name: awx
metadata: spec:
name: awx-ingress service_type: ClusterIP
spec: ```
rules:
- host: awx.bunny-lab.io === "/awx/awx-ingress.yml"
http:
paths: ```jsx title="/awx/awx-ingress.yml"
- pathType: Prefix apiVersion: networking.k8s.io/v1
path: "/" kind: Ingress
backend: metadata:
service: name: awx-ingress
name: awx-service spec:
port: rules:
number: 80 - host: awx.bunny-lab.io
``` http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: awx-service
port:
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)