Make Kustomize manifests more modular

This commit is contained in:
Ryan Cavicchioni 2024-07-28 20:53:43 -05:00
parent 7fc61df477
commit c57d3303ed
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D
6 changed files with 16 additions and 3 deletions

View File

@ -0,0 +1,8 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: toy
resources:
- deployment.yaml
- services.yaml
- ingress.yaml

View File

@ -3,6 +3,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: toy
resources:
- deployment.yaml
- services.yaml
- ingress.yaml
- namespace.yaml
- ./app

6
kustomize/namespace.yaml Normal file
View File

@ -0,0 +1,6 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: toy