Skip to content

Commit

Permalink
Fix the documentaion/basic-install so the namespace wont be deleted o…
Browse files Browse the repository at this point in the history
…n kubectl delete -k
  • Loading branch information
honza801 authored and honza801@ADMIN.META committed Dec 5, 2024
1 parent 5d0f91e commit ffd496a
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions docs/installation/basic-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ If you have a custom operator image you have built, you can specify it with:
IMG=quay.io/$YOURNAMESPACE/awx-operator:$YOURTAG make deploy
```

Otherwise, you can manually create a file called `kustomization.yaml` with the following content:
Otherwise, you can manually create a file called `kustomization.yaml` in the `awx-operator` directory with the following content:

```yaml
apiVersion: kustomize.config.k8s.io/v1beta1
Expand All @@ -65,6 +65,7 @@ namespace: awx
Install the manifests by running this:
```sh
$ cd awx-operator
$ kubectl apply -k .
namespace/awx created
customresourcedefinition.apiextensions.k8s.io/awxbackups.awx.ansible.com created
Expand Down Expand Up @@ -97,7 +98,7 @@ So we don't have to keep repeating `-n awx`, let's set the current namespace for
kubectl config set-context --current --namespace=awx
```

Next, create a file named `awx-demo.yml` in the same folder with the suggested content below. The `metadata.name` you provide will be the name of the resulting AWX deployment.
Next, create a new folder, for example `awx-demo`. Create a file named `awx-demo.yml` with the content below. The `metadata.name` you provide will be the name of the resulting AWX deployment.

!!! note
If you deploy more than one AWX instance to the same namespace, be sure to use unique names.
Expand Down Expand Up @@ -128,20 +129,22 @@ spec:
ingress_type: Route
```
Make sure to add this new file to the list of `resources` in your `kustomization.yaml` file:
Create new a file `kustomization.yaml` within the `awx-demo` directory and add `awx-demo.yml` to the list of `resources`.

```yaml
...
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- github.com/ansible/awx-operator/config/default?ref=<tag>
# Add this extra line:
- awx-demo.yml
...
# Specify a custom namespace in which to install AWX
namespace: awx
```

Finally, apply the changes to create the AWX instance in your cluster:

```sh
cd awx-demo
kubectl apply -k .
```

Expand Down

0 comments on commit ffd496a

Please sign in to comment.