Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2732 from 2opremio/2709-update-kustomize-docs
Browse files Browse the repository at this point in the history
docs: update the get-started guide to recent versions of Kustomize
  • Loading branch information
2opremio authored Jan 9, 2020
2 parents b79eaf2 + a3bf499 commit d443cfe
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions docs/tutorials/get-started-kustomize.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: flux
namespace: flux
spec:
template:
spec:
Expand All @@ -77,8 +78,8 @@ If you want to get started with Helm, please refer to the
### Overwriting the default namespace

Overwriting the default (`flux`) namespace is possible by defining
your own namespace resource and a patch to remove the default from
the base.
your own namespace and accordingly setting the `namespace:` key in
the `kustomization.yaml` file.

Create your own namespace definition:

Expand All @@ -91,20 +92,8 @@ metadata:
EOF
```

Create a patch to remove the default namespace from the base:

```sh
cat > fluxcd/patch-default-ns.yaml <<EOF
apiVersion: v1
kind: Namespace
metadata:
name: flux
$patch: delete
EOF
```

Adapt your `fluxcd/kustomization.yaml` to include your own namespace
resource, patch, and change the namespace:
resource and change the namespace:

```yaml
namespace: <namespace>
Expand All @@ -113,7 +102,6 @@ resources:
bases:
- github.com/fluxcd/flux//deploy
patchesStrategicMerge:
- patch-default-ns.yaml
- patch.yaml
```
Expand Down

0 comments on commit d443cfe

Please sign in to comment.