From c57d3303edd6cbc87fe6fbebbefddf292ab6af27 Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Sun, 28 Jul 2024 20:53:43 -0500 Subject: [PATCH] Make Kustomize manifests more modular --- kustomize/{ => app}/deployment.yaml | 0 kustomize/{ => app}/ingress.yaml | 0 kustomize/app/kustomization.yaml | 8 ++++++++ kustomize/{ => app}/services.yaml | 0 kustomize/kustomization.yaml | 5 ++--- kustomize/namespace.yaml | 6 ++++++ 6 files changed, 16 insertions(+), 3 deletions(-) rename kustomize/{ => app}/deployment.yaml (100%) rename kustomize/{ => app}/ingress.yaml (100%) create mode 100644 kustomize/app/kustomization.yaml rename kustomize/{ => app}/services.yaml (100%) create mode 100644 kustomize/namespace.yaml 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 +