diff --git a/envs/integration-gpu/deployment.yml b/envs/integration-gpu/deployment.yml index 9d0750c..528cbfc 100644 --- a/envs/integration-gpu/deployment.yml +++ b/envs/integration-gpu/deployment.yml @@ -10,6 +10,7 @@ spec: - name: webserver-simple env: - name: ENV - value: "integration" + value: "integration-gpu" - name: GPU_ENABLED value: "1" + \ No newline at end of file diff --git a/envs/integration-non-gpu/deployment.yml b/envs/integration-non-gpu/deployment.yml new file mode 100644 index 0000000..14543a9 --- /dev/null +++ b/envs/integration-non-gpu/deployment.yml @@ -0,0 +1,16 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: simple-deployment +spec: + template: + spec: + containers: + - name: webserver-simple + env: + - name: ENV + value: "integration-non-gpu" + - name: GPU_ENABLED + value: "0" + \ No newline at end of file diff --git a/envs/integration-non-gpu/kustomization.yml b/envs/integration-non-gpu/kustomization.yml new file mode 100644 index 0000000..1500e5d --- /dev/null +++ b/envs/integration-non-gpu/kustomization.yml @@ -0,0 +1,16 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +namespace: integration + +resources: +- ../../base + +components: + - ../../variants/non-prod + +patchesStrategicMerge: +- deployment.yml +- version.yml +- replicas.yml + diff --git a/envs/integration-non-gpu/replicas.yml b/envs/integration-non-gpu/replicas.yml new file mode 100644 index 0000000..13c6a77 --- /dev/null +++ b/envs/integration-non-gpu/replicas.yml @@ -0,0 +1,7 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: simple-deployment +spec: + replicas: 4 \ No newline at end of file diff --git a/envs/integration-non-gpu/version.yml b/envs/integration-non-gpu/version.yml new file mode 100644 index 0000000..0423d0f --- /dev/null +++ b/envs/integration-non-gpu/version.yml @@ -0,0 +1,11 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: simple-deployment +spec: + template: + spec: + containers: + - name: webserver-simple + image: docker.io/kostiscodefresh/simple-env-app:2.0 diff --git a/envs/load-gpu/deployment.yml b/envs/load-gpu/deployment.yml new file mode 100644 index 0000000..e81fab9 --- /dev/null +++ b/envs/load-gpu/deployment.yml @@ -0,0 +1,16 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: simple-deployment +spec: + template: + spec: + containers: + - name: webserver-simple + env: + - name: ENV + value: "load-gpu" + - name: GPU_ENABLED + value: "1" + \ No newline at end of file diff --git a/envs/load-gpu/kustomization.yml b/envs/load-gpu/kustomization.yml new file mode 100644 index 0000000..727a80f --- /dev/null +++ b/envs/load-gpu/kustomization.yml @@ -0,0 +1,16 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +namespace: load + +resources: +- ../../base + +components: + - ../../variants/non-prod + +patchesStrategicMerge: +- deployment.yml +- version.yml +- replicas.yml + diff --git a/envs/load-gpu/replicas.yml b/envs/load-gpu/replicas.yml new file mode 100644 index 0000000..13c6a77 --- /dev/null +++ b/envs/load-gpu/replicas.yml @@ -0,0 +1,7 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: simple-deployment +spec: + replicas: 4 \ No newline at end of file diff --git a/envs/load-gpu/version.yml b/envs/load-gpu/version.yml new file mode 100644 index 0000000..0423d0f --- /dev/null +++ b/envs/load-gpu/version.yml @@ -0,0 +1,11 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: simple-deployment +spec: + template: + spec: + containers: + - name: webserver-simple + image: docker.io/kostiscodefresh/simple-env-app:2.0 diff --git a/envs/load-non-gpu/deployment.yml b/envs/load-non-gpu/deployment.yml new file mode 100644 index 0000000..6329fb0 --- /dev/null +++ b/envs/load-non-gpu/deployment.yml @@ -0,0 +1,16 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: simple-deployment +spec: + template: + spec: + containers: + - name: webserver-simple + env: + - name: ENV + value: "load-non-gpu" + - name: GPU_ENABLED + value: "0" + \ No newline at end of file diff --git a/envs/load-non-gpu/kustomization.yml b/envs/load-non-gpu/kustomization.yml new file mode 100644 index 0000000..727a80f --- /dev/null +++ b/envs/load-non-gpu/kustomization.yml @@ -0,0 +1,16 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +namespace: load + +resources: +- ../../base + +components: + - ../../variants/non-prod + +patchesStrategicMerge: +- deployment.yml +- version.yml +- replicas.yml + diff --git a/envs/load-non-gpu/replicas.yml b/envs/load-non-gpu/replicas.yml new file mode 100644 index 0000000..13c6a77 --- /dev/null +++ b/envs/load-non-gpu/replicas.yml @@ -0,0 +1,7 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: simple-deployment +spec: + replicas: 4 \ No newline at end of file diff --git a/envs/load-non-gpu/version.yml b/envs/load-non-gpu/version.yml new file mode 100644 index 0000000..0423d0f --- /dev/null +++ b/envs/load-non-gpu/version.yml @@ -0,0 +1,11 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: simple-deployment +spec: + template: + spec: + containers: + - name: webserver-simple + image: docker.io/kostiscodefresh/simple-env-app:2.0 diff --git a/envs/prod-asia/deployment.yml b/envs/prod-asia/deployment.yml new file mode 100644 index 0000000..1eece5d --- /dev/null +++ b/envs/prod-asia/deployment.yml @@ -0,0 +1,16 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: simple-deployment +spec: + template: + spec: + containers: + - name: webserver-simple + env: + - name: ENV + value: "prod-asia" + - name: GPU_ENABLED + value: "1" + \ No newline at end of file diff --git a/envs/prod-asia/kustomization.yml b/envs/prod-asia/kustomization.yml new file mode 100644 index 0000000..cd9e455 --- /dev/null +++ b/envs/prod-asia/kustomization.yml @@ -0,0 +1,17 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +namespace: prod + +resources: +- ../../base + +components: + - ../../variants/prod + - ../../variants/asia + +patchesStrategicMerge: +- deployment.yml +- version.yml +- replicas.yml + diff --git a/envs/prod-asia/replicas.yml b/envs/prod-asia/replicas.yml new file mode 100644 index 0000000..d6ced72 --- /dev/null +++ b/envs/prod-asia/replicas.yml @@ -0,0 +1,7 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: simple-deployment +spec: + replicas: 6 \ No newline at end of file diff --git a/envs/prod-asia/version.yml b/envs/prod-asia/version.yml new file mode 100644 index 0000000..0423d0f --- /dev/null +++ b/envs/prod-asia/version.yml @@ -0,0 +1,11 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: simple-deployment +spec: + template: + spec: + containers: + - name: webserver-simple + image: docker.io/kostiscodefresh/simple-env-app:2.0 diff --git a/envs/prod-eu/deployment.yml b/envs/prod-eu/deployment.yml new file mode 100644 index 0000000..a1480d1 --- /dev/null +++ b/envs/prod-eu/deployment.yml @@ -0,0 +1,16 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: simple-deployment +spec: + template: + spec: + containers: + - name: webserver-simple + env: + - name: ENV + value: "prod-eu" + - name: GPU_ENABLED + value: "1" + \ No newline at end of file diff --git a/envs/prod-eu/kustomization.yml b/envs/prod-eu/kustomization.yml new file mode 100644 index 0000000..dc99a10 --- /dev/null +++ b/envs/prod-eu/kustomization.yml @@ -0,0 +1,17 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +namespace: prod + +resources: +- ../../base + +components: + - ../../variants/prod + - ../../variants/eu + +patchesStrategicMerge: +- deployment.yml +- version.yml +- replicas.yml + diff --git a/envs/prod-eu/replicas.yml b/envs/prod-eu/replicas.yml new file mode 100644 index 0000000..e07faf0 --- /dev/null +++ b/envs/prod-eu/replicas.yml @@ -0,0 +1,7 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: simple-deployment +spec: + replicas: 8 \ No newline at end of file diff --git a/envs/prod-eu/version.yml b/envs/prod-eu/version.yml new file mode 100644 index 0000000..0423d0f --- /dev/null +++ b/envs/prod-eu/version.yml @@ -0,0 +1,11 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: simple-deployment +spec: + template: + spec: + containers: + - name: webserver-simple + image: docker.io/kostiscodefresh/simple-env-app:2.0 diff --git a/envs/prod-us/deployment.yml b/envs/prod-us/deployment.yml new file mode 100644 index 0000000..676bc41 --- /dev/null +++ b/envs/prod-us/deployment.yml @@ -0,0 +1,16 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: simple-deployment +spec: + template: + spec: + containers: + - name: webserver-simple + env: + - name: ENV + value: "prod-us" + - name: GPU_ENABLED + value: "1" + \ No newline at end of file diff --git a/envs/prod-us/kustomization.yml b/envs/prod-us/kustomization.yml new file mode 100644 index 0000000..1c0bbd3 --- /dev/null +++ b/envs/prod-us/kustomization.yml @@ -0,0 +1,17 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +namespace: prod + +resources: +- ../../base + +components: + - ../../variants/prod + - ../../variants/us + +patchesStrategicMerge: +- deployment.yml +- version.yml +- replicas.yml + diff --git a/envs/prod-us/replicas.yml b/envs/prod-us/replicas.yml new file mode 100644 index 0000000..92e30ec --- /dev/null +++ b/envs/prod-us/replicas.yml @@ -0,0 +1,7 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: simple-deployment +spec: + replicas: 10 \ No newline at end of file diff --git a/envs/prod-us/version.yml b/envs/prod-us/version.yml new file mode 100644 index 0000000..0423d0f --- /dev/null +++ b/envs/prod-us/version.yml @@ -0,0 +1,11 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: simple-deployment +spec: + template: + spec: + containers: + - name: webserver-simple + image: docker.io/kostiscodefresh/simple-env-app:2.0 diff --git a/envs/qa/deployment.yml b/envs/qa/deployment.yml new file mode 100644 index 0000000..b4d29eb --- /dev/null +++ b/envs/qa/deployment.yml @@ -0,0 +1,16 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: simple-deployment +spec: + template: + spec: + containers: + - name: webserver-simple + env: + - name: ENV + value: "qa" + - name: GPU_ENABLED + value: "1" + \ No newline at end of file diff --git a/envs/qa/kustomization.yml b/envs/qa/kustomization.yml new file mode 100644 index 0000000..352838a --- /dev/null +++ b/envs/qa/kustomization.yml @@ -0,0 +1,16 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +namespace: qa + +resources: +- ../../base + +components: + - ../../variants/non-prod + +patchesStrategicMerge: +- deployment.yml +- version.yml +- replicas.yml + diff --git a/envs/qa/replicas.yml b/envs/qa/replicas.yml new file mode 100644 index 0000000..d782645 --- /dev/null +++ b/envs/qa/replicas.yml @@ -0,0 +1,7 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: simple-deployment +spec: + replicas: 2 \ No newline at end of file diff --git a/envs/qa/version.yml b/envs/qa/version.yml new file mode 100644 index 0000000..0423d0f --- /dev/null +++ b/envs/qa/version.yml @@ -0,0 +1,11 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: simple-deployment +spec: + template: + spec: + containers: + - name: webserver-simple + image: docker.io/kostiscodefresh/simple-env-app:2.0 diff --git a/envs/staging-asia/deployment.yml b/envs/staging-asia/deployment.yml new file mode 100644 index 0000000..3bb8fb4 --- /dev/null +++ b/envs/staging-asia/deployment.yml @@ -0,0 +1,16 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: simple-deployment +spec: + template: + spec: + containers: + - name: webserver-simple + env: + - name: ENV + value: "staging-asia" + - name: GPU_ENABLED + value: "1" + \ No newline at end of file diff --git a/envs/staging-asia/kustomization.yml b/envs/staging-asia/kustomization.yml new file mode 100644 index 0000000..22ded46 --- /dev/null +++ b/envs/staging-asia/kustomization.yml @@ -0,0 +1,17 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +namespace: staging + +resources: +- ../../base + +components: + - ../../variants/non-prod + - ../../variants/asia + +patchesStrategicMerge: +- deployment.yml +- version.yml +- replicas.yml + diff --git a/envs/staging-asia/replicas.yml b/envs/staging-asia/replicas.yml new file mode 100644 index 0000000..13c6a77 --- /dev/null +++ b/envs/staging-asia/replicas.yml @@ -0,0 +1,7 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: simple-deployment +spec: + replicas: 4 \ No newline at end of file diff --git a/envs/staging-asia/version.yml b/envs/staging-asia/version.yml new file mode 100644 index 0000000..0423d0f --- /dev/null +++ b/envs/staging-asia/version.yml @@ -0,0 +1,11 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: simple-deployment +spec: + template: + spec: + containers: + - name: webserver-simple + image: docker.io/kostiscodefresh/simple-env-app:2.0 diff --git a/envs/staging-eu/deployment.yml b/envs/staging-eu/deployment.yml new file mode 100644 index 0000000..ad45032 --- /dev/null +++ b/envs/staging-eu/deployment.yml @@ -0,0 +1,16 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: simple-deployment +spec: + template: + spec: + containers: + - name: webserver-simple + env: + - name: ENV + value: "staging-eu" + - name: GPU_ENABLED + value: "1" + \ No newline at end of file diff --git a/envs/staging-eu/kustomization.yml b/envs/staging-eu/kustomization.yml new file mode 100644 index 0000000..4f9a27a --- /dev/null +++ b/envs/staging-eu/kustomization.yml @@ -0,0 +1,17 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +namespace: staging + +resources: +- ../../base + +components: + - ../../variants/non-prod + - ../../variants/eu + +patchesStrategicMerge: +- deployment.yml +- version.yml +- replicas.yml + diff --git a/envs/staging-eu/replicas.yml b/envs/staging-eu/replicas.yml new file mode 100644 index 0000000..13c6a77 --- /dev/null +++ b/envs/staging-eu/replicas.yml @@ -0,0 +1,7 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: simple-deployment +spec: + replicas: 4 \ No newline at end of file diff --git a/envs/staging-eu/version.yml b/envs/staging-eu/version.yml new file mode 100644 index 0000000..0423d0f --- /dev/null +++ b/envs/staging-eu/version.yml @@ -0,0 +1,11 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: simple-deployment +spec: + template: + spec: + containers: + - name: webserver-simple + image: docker.io/kostiscodefresh/simple-env-app:2.0 diff --git a/envs/staging-us/deployment.yml b/envs/staging-us/deployment.yml new file mode 100644 index 0000000..0549920 --- /dev/null +++ b/envs/staging-us/deployment.yml @@ -0,0 +1,16 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: simple-deployment +spec: + template: + spec: + containers: + - name: webserver-simple + env: + - name: ENV + value: "staging-us" + - name: GPU_ENABLED + value: "1" + \ No newline at end of file diff --git a/envs/staging-us/kustomization.yml b/envs/staging-us/kustomization.yml new file mode 100644 index 0000000..947261d --- /dev/null +++ b/envs/staging-us/kustomization.yml @@ -0,0 +1,17 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +namespace: staging + +resources: +- ../../base + +components: + - ../../variants/non-prod + - ../../variants/us + +patchesStrategicMerge: +- deployment.yml +- version.yml +- replicas.yml + diff --git a/variants/prod/replicas.yml b/envs/staging-us/replicas.yml similarity index 100% rename from variants/prod/replicas.yml rename to envs/staging-us/replicas.yml diff --git a/envs/staging-us/version.yml b/envs/staging-us/version.yml new file mode 100644 index 0000000..0423d0f --- /dev/null +++ b/envs/staging-us/version.yml @@ -0,0 +1,11 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: simple-deployment +spec: + template: + spec: + containers: + - name: webserver-simple + image: docker.io/kostiscodefresh/simple-env-app:2.0 diff --git a/variants/eu/region.yml b/variants/eu/region.yml index 94ff1d2..9504cd5 100644 --- a/variants/eu/region.yml +++ b/variants/eu/region.yml @@ -10,5 +10,5 @@ spec: - name: webserver-simple env: - name: REGION - value: "us" + value: "eu" diff --git a/variants/prod/kustomization.yml b/variants/prod/kustomization.yml index 1342875..5822fb3 100644 --- a/variants/prod/kustomization.yml +++ b/variants/prod/kustomization.yml @@ -3,4 +3,4 @@ kind: Component patchesStrategicMerge: - prod.yml -- replicas.yml +