improve overlays to visually differentiate between environments

Signed-off-by: Kent <kent.rancourt@gmail.com>
This commit is contained in:
Kent
2023-05-16 12:12:26 -04:00
parent aa21f540fb
commit a0e81ad5e5
8 changed files with 90 additions and 0 deletions

View File

@@ -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

View File

@@ -9,3 +9,4 @@ spec:
- protocol: TCP
port: 3000
targetPort: 80
nodePort: placeholder

17
env/prod/configmap.yaml vendored Normal file
View File

@@ -0,0 +1,17 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: kargo-demo-content
data:
index.html: |-
<!DOCTYPE html>
<html>
<head>
<title>prod</title>
</head>
<body>
<h1>prod</h1>
</body>
</html>

View File

@@ -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

17
env/stage/configmap.yaml vendored Normal file
View File

@@ -0,0 +1,17 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: kargo-demo-content
data:
index.html: |-
<!DOCTYPE html>
<html>
<head>
<title>stage</title>
</head>
<body>
<h1>stage</h1>
</body>
</html>

View File

@@ -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

17
env/test/configmap.yaml vendored Normal file
View File

@@ -0,0 +1,17 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: kargo-demo-content
data:
index.html: |-
<!DOCTYPE html>
<html>
<head>
<title>test</title>
</head>
<body>
<h1>test</h1>
</body>
</html>

View File

@@ -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