diff --git a/kustomize/deployment.yaml b/kustomize/app/deployment.yaml similarity index 100% rename from kustomize/deployment.yaml rename to kustomize/app/deployment.yaml diff --git a/kustomize/ingress.yaml b/kustomize/app/ingress.yaml similarity index 100% rename from kustomize/ingress.yaml rename to kustomize/app/ingress.yaml diff --git a/kustomize/app/kustomization.yaml b/kustomize/app/kustomization.yaml new file mode 100644 index 0000000..251340f --- /dev/null +++ b/kustomize/app/kustomization.yaml @@ -0,0 +1,8 @@ +--- +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: toy +resources: + - deployment.yaml + - services.yaml + - ingress.yaml diff --git a/kustomize/services.yaml b/kustomize/app/services.yaml similarity index 100% rename from kustomize/services.yaml rename to kustomize/app/services.yaml diff --git a/kustomize/kustomization.yaml b/kustomize/kustomization.yaml index 251340f..6535214 100644 --- a/kustomize/kustomization.yaml +++ b/kustomize/kustomization.yaml @@ -3,6 +3,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization namespace: toy resources: - - deployment.yaml - - services.yaml - - ingress.yaml + - namespace.yaml + - ./app diff --git a/kustomize/namespace.yaml b/kustomize/namespace.yaml new file mode 100644 index 0000000..8b1c47e --- /dev/null +++ b/kustomize/namespace.yaml @@ -0,0 +1,6 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: toy +