diff --git a/README.md b/README.md index f266dd86..a3017546 100644 --- a/README.md +++ b/README.md @@ -180,7 +180,7 @@ flux create kustomization dev-team \ Create the base `kustomization.yaml` file: ```sh -cd ./tenants/base/dev-team/ && kustomize create --autodetect +cd ./tenants/base/dev-team/ && kustomize create --autodetect --namespace apps ``` Create the staging overlay and set the path to the staging dir inside the tenant repository: @@ -199,6 +199,7 @@ EOF cat << EOF | tee ./tenants/staging/kustomization.yaml apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization +namespace: apps resources: - ../base/dev-team patches: diff --git a/tenants/base/dev-team/kustomization.yaml b/tenants/base/dev-team/kustomization.yaml index a53e58a7..653cd849 100644 --- a/tenants/base/dev-team/kustomization.yaml +++ b/tenants/base/dev-team/kustomization.yaml @@ -1,5 +1,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization +namespace: apps resources: - rbac.yaml - sync.yaml diff --git a/tenants/production/kustomization.yaml b/tenants/production/kustomization.yaml index afabe4df..b81c459b 100644 --- a/tenants/production/kustomization.yaml +++ b/tenants/production/kustomization.yaml @@ -1,5 +1,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization +namespace: apps resources: - ../base/dev-team patches: diff --git a/tenants/staging/kustomization.yaml b/tenants/staging/kustomization.yaml index afabe4df..b81c459b 100644 --- a/tenants/staging/kustomization.yaml +++ b/tenants/staging/kustomization.yaml @@ -1,5 +1,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization +namespace: apps resources: - ../base/dev-team patches: