diff --git a/Containers/Kubernetes/Rancher RKE2/AWX Operator/Ansible Operator.md b/Containers/Kubernetes/Rancher RKE2/AWX Operator/Ansible Operator.md index 14e7424..1df87e2 100644 --- a/Containers/Kubernetes/Rancher RKE2/AWX Operator/Ansible Operator.md +++ b/Containers/Kubernetes/Rancher RKE2/AWX Operator/Ansible Operator.md @@ -26,44 +26,53 @@ ulimit -n 4096 ### 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. -```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 - - awx.yml - - awx-ingress.yml -images: - - name: quay.io/ansible/awx-operator - newTag: 2.4.0 -namespace: awx -``` -```jsx title="/awx/awx.yml" -apiVersion: awx.ansible.com/v1beta1 -kind: AWX -metadata: - name: awx -spec: - service_type: ClusterIP -``` -```jsx title="/awx/awx-ingress.yml" -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: awx-ingress -spec: - rules: - - host: awx.bunny-lab.io - http: - paths: - - pathType: Prefix - path: "/" - backend: - service: - name: awx-service - port: - number: 80 -``` + +=== "/awx/kustomization.yml" + + ```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 + - awx.yml + - awx-ingress.yml + images: + - name: quay.io/ansible/awx-operator + newTag: 2.4.0 + namespace: awx + ``` + +=== "/awx/awx.yml" + + ```jsx title="/awx/awx.yml" + apiVersion: awx.ansible.com/v1beta1 + kind: AWX + metadata: + name: awx + spec: + service_type: ClusterIP + ``` + +=== "/awx/awx-ingress.yml" + + ```jsx title="/awx/awx-ingress.yml" + apiVersion: networking.k8s.io/v1 + kind: Ingress + metadata: + name: awx-ingress + spec: + rules: + - host: awx.bunny-lab.io + http: + paths: + - pathType: Prefix + path: "/" + backend: + service: + name: awx-service + port: + number: 80 + ``` ## 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)