Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the documentaion/basic-install so the namespace wont be deleted on kubectl delete -k #1996

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading