diff --git a/base/deploy.yaml b/base/deploy.yaml
index 1648d3f..6945202 100644
--- a/base/deploy.yaml
+++ b/base/deploy.yaml
@@ -15,3 +15,11 @@ spec:
containers:
- name: nginx
image: nginx:placeholder
+ volumeMounts:
+ - name: content
+ mountPath: /usr/share/nginx/html
+ readOnly: true
+ volumes:
+ - name: content
+ configMap:
+ name: kargo-demo-content
diff --git a/base/service.yaml b/base/service.yaml
index ab6440a..09fac86 100644
--- a/base/service.yaml
+++ b/base/service.yaml
@@ -9,3 +9,4 @@ spec:
- protocol: TCP
port: 3000
targetPort: 80
+ nodePort: placeholder
diff --git a/env/prod/configmap.yaml b/env/prod/configmap.yaml
new file mode 100644
index 0000000..a772409
--- /dev/null
+++ b/env/prod/configmap.yaml
@@ -0,0 +1,17 @@
+apiVersion: v1
+kind: ConfigMap
+metadata:
+ name: kargo-demo-content
+data:
+ index.html: |-
+
+
+
+ prod
+
+
+
+ prod
+
+
+
diff --git a/env/prod/kustomization.yaml b/env/prod/kustomization.yaml
index 2b87e6b..e8ec547 100644
--- a/env/prod/kustomization.yaml
+++ b/env/prod/kustomization.yaml
@@ -3,3 +3,13 @@ kind: Kustomization
resources:
- ../../base
+- configmap.yaml
+
+patches:
+- target:
+ kind: Service
+ name: kargo-demo
+ patch: |-
+ - op: replace
+ path: /spec/ports/0/nodePort
+ value: 30083
diff --git a/env/stage/configmap.yaml b/env/stage/configmap.yaml
new file mode 100644
index 0000000..333e1d6
--- /dev/null
+++ b/env/stage/configmap.yaml
@@ -0,0 +1,17 @@
+apiVersion: v1
+kind: ConfigMap
+metadata:
+ name: kargo-demo-content
+data:
+ index.html: |-
+
+
+
+ stage
+
+
+
+ stage
+
+
+
diff --git a/env/stage/kustomization.yaml b/env/stage/kustomization.yaml
index 2b87e6b..90bdd00 100644
--- a/env/stage/kustomization.yaml
+++ b/env/stage/kustomization.yaml
@@ -3,3 +3,13 @@ kind: Kustomization
resources:
- ../../base
+- configmap.yaml
+
+patches:
+- target:
+ kind: Service
+ name: kargo-demo
+ patch: |-
+ - op: replace
+ path: /spec/ports/0/nodePort
+ value: 30082
diff --git a/env/test/configmap.yaml b/env/test/configmap.yaml
new file mode 100644
index 0000000..cccab9a
--- /dev/null
+++ b/env/test/configmap.yaml
@@ -0,0 +1,17 @@
+apiVersion: v1
+kind: ConfigMap
+metadata:
+ name: kargo-demo-content
+data:
+ index.html: |-
+
+
+
+ test
+
+
+
+ test
+
+
+
diff --git a/env/test/kustomization.yaml b/env/test/kustomization.yaml
index 2b87e6b..3ec6aa6 100644
--- a/env/test/kustomization.yaml
+++ b/env/test/kustomization.yaml
@@ -3,3 +3,13 @@ kind: Kustomization
resources:
- ../../base
+- configmap.yaml
+
+patches:
+- target:
+ kind: Service
+ name: kargo-demo
+ patch: |-
+ - op: replace
+ path: /spec/ports/0/nodePort
+ value: 30081