first commit
This commit is contained in:
4
kustomize/environments/production/configs/config.json
Normal file
4
kustomize/environments/production/configs/config.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"environment" : "prod",
|
||||
"hello": "world"
|
||||
}
|
||||
13
kustomize/environments/production/env.yaml
Normal file
13
kustomize/environments/production/env.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: example-deploy
|
||||
namespace: example
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: example-app
|
||||
env:
|
||||
- name: ENVIRONMENT
|
||||
value: Production
|
||||
16
kustomize/environments/production/kustomization.yaml
Normal file
16
kustomize/environments/production/kustomization.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
bases:
|
||||
- ../../application
|
||||
patches:
|
||||
- replica_count.yaml
|
||||
- resource_limits.yaml
|
||||
configMapGenerator:
|
||||
- name: example-config
|
||||
namespace: example
|
||||
#behavior: replace
|
||||
files:
|
||||
- configs/config.json
|
||||
patchesStrategicMerge:
|
||||
- env.yaml
|
||||
images:
|
||||
- name: aimvector/python
|
||||
newTag: 1.0.1
|
||||
7
kustomize/environments/production/replica_count.yaml
Normal file
7
kustomize/environments/production/replica_count.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: example-deploy
|
||||
namespace: example
|
||||
spec:
|
||||
replicas: 6
|
||||
17
kustomize/environments/production/resource_limits.yaml
Normal file
17
kustomize/environments/production/resource_limits.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: example-deploy
|
||||
namespace: example
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: example-app
|
||||
resources:
|
||||
requests:
|
||||
memory: "64Mi"
|
||||
cpu: "50m"
|
||||
limits:
|
||||
memory: "256Mi"
|
||||
cpu: "500m"
|
||||
Reference in New Issue
Block a user