commit aa21f540fb222e52b7d0aa8d7eb30446b7fae1ba Author: Kent Date: Wed Apr 12 11:26:11 2023 -0400 Initial commit Signed-off-by: Kent diff --git a/base/deploy.yaml b/base/deploy.yaml new file mode 100644 index 0000000..1648d3f --- /dev/null +++ b/base/deploy.yaml @@ -0,0 +1,17 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: kargo-demo +spec: + replicas: 1 + selector: + matchLabels: + app: kargo-demo + template: + metadata: + labels: + app: kargo-demo + spec: + containers: + - name: nginx + image: nginx:placeholder diff --git a/base/kustomization.yaml b/base/kustomization.yaml new file mode 100644 index 0000000..2c2b3ea --- /dev/null +++ b/base/kustomization.yaml @@ -0,0 +1,6 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: +- deploy.yaml +- service.yaml diff --git a/base/service.yaml b/base/service.yaml new file mode 100644 index 0000000..ab6440a --- /dev/null +++ b/base/service.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: Service +metadata: + name: foo +spec: + selector: + app: foo + ports: + - protocol: TCP + port: 3000 + targetPort: 80 diff --git a/env/prod/kustomization.yaml b/env/prod/kustomization.yaml new file mode 100644 index 0000000..2b87e6b --- /dev/null +++ b/env/prod/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: +- ../../base diff --git a/env/stage/kustomization.yaml b/env/stage/kustomization.yaml new file mode 100644 index 0000000..2b87e6b --- /dev/null +++ b/env/stage/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: +- ../../base diff --git a/env/test/kustomization.yaml b/env/test/kustomization.yaml new file mode 100644 index 0000000..2b87e6b --- /dev/null +++ b/env/test/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: +- ../../base