improve overlays to visually differentiate between environments
Signed-off-by: Kent <kent.rancourt@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -9,3 +9,4 @@ spec:
|
||||
- protocol: TCP
|
||||
port: 3000
|
||||
targetPort: 80
|
||||
nodePort: placeholder
|
||||
|
||||
17
env/prod/configmap.yaml
vendored
Normal file
17
env/prod/configmap.yaml
vendored
Normal 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>
|
||||
10
env/prod/kustomization.yaml
vendored
10
env/prod/kustomization.yaml
vendored
@@ -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
17
env/stage/configmap.yaml
vendored
Normal 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>
|
||||
10
env/stage/kustomization.yaml
vendored
10
env/stage/kustomization.yaml
vendored
@@ -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
17
env/test/configmap.yaml
vendored
Normal 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>
|
||||
10
env/test/kustomization.yaml
vendored
10
env/test/kustomization.yaml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user