Skip to content

Commit ffd496a

Browse files
honza801honza801@ADMIN.META
authored andcommitted
Fix the documentaion/basic-install so the namespace wont be deleted on kubectl delete -k
1 parent 5d0f91e commit ffd496a

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

docs/installation/basic-install.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ If you have a custom operator image you have built, you can specify it with:
4141
IMG=quay.io/$YOURNAMESPACE/awx-operator:$YOURTAG make deploy
4242
```
4343

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

4646
```yaml
4747
apiVersion: kustomize.config.k8s.io/v1beta1
@@ -65,6 +65,7 @@ namespace: awx
6565
Install the manifests by running this:
6666
6767
```sh
68+
$ cd awx-operator
6869
$ kubectl apply -k .
6970
namespace/awx created
7071
customresourcedefinition.apiextensions.k8s.io/awxbackups.awx.ansible.com created
@@ -97,7 +98,7 @@ So we don't have to keep repeating `-n awx`, let's set the current namespace for
9798
kubectl config set-context --current --namespace=awx
9899
```
99100

100-
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.
101+
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.
101102

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

133134
```yaml
134-
...
135+
apiVersion: kustomize.config.k8s.io/v1beta1
136+
kind: Kustomization
135137
resources:
136-
- github.com/ansible/awx-operator/config/default?ref=<tag>
137-
# Add this extra line:
138138
- awx-demo.yml
139-
...
139+
140+
# Specify a custom namespace in which to install AWX
141+
namespace: awx
140142
```
141143

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

144146
```sh
147+
cd awx-demo
145148
kubectl apply -k .
146149
```
147150

0 commit comments

Comments
 (0)