Skip to content

Commit

Permalink
Finished all environments
Browse files Browse the repository at this point in the history
  • Loading branch information
kostis-codefresh committed Mar 11, 2022
1 parent 5541297 commit b5fd818
Show file tree
Hide file tree
Showing 43 changed files with 503 additions and 3 deletions.
3 changes: 2 additions & 1 deletion envs/integration-gpu/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ spec:
- name: webserver-simple
env:
- name: ENV
value: "integration"
value: "integration-gpu"
- name: GPU_ENABLED
value: "1"

16 changes: 16 additions & 0 deletions envs/integration-non-gpu/deployment.yml
Original file line number Diff line number Diff line change
@@ -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"

16 changes: 16 additions & 0 deletions envs/integration-non-gpu/kustomization.yml
Original file line number Diff line number Diff line change
@@ -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

7 changes: 7 additions & 0 deletions envs/integration-non-gpu/replicas.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: simple-deployment
spec:
replicas: 4
11 changes: 11 additions & 0 deletions envs/integration-non-gpu/version.yml
Original file line number Diff line number Diff line change
@@ -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
16 changes: 16 additions & 0 deletions envs/load-gpu/deployment.yml
Original file line number Diff line number Diff line change
@@ -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"

16 changes: 16 additions & 0 deletions envs/load-gpu/kustomization.yml
Original file line number Diff line number Diff line change
@@ -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

7 changes: 7 additions & 0 deletions envs/load-gpu/replicas.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: simple-deployment
spec:
replicas: 4
11 changes: 11 additions & 0 deletions envs/load-gpu/version.yml
Original file line number Diff line number Diff line change
@@ -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
16 changes: 16 additions & 0 deletions envs/load-non-gpu/deployment.yml
Original file line number Diff line number Diff line change
@@ -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"

16 changes: 16 additions & 0 deletions envs/load-non-gpu/kustomization.yml
Original file line number Diff line number Diff line change
@@ -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

7 changes: 7 additions & 0 deletions envs/load-non-gpu/replicas.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: simple-deployment
spec:
replicas: 4
11 changes: 11 additions & 0 deletions envs/load-non-gpu/version.yml
Original file line number Diff line number Diff line change
@@ -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
16 changes: 16 additions & 0 deletions envs/prod-asia/deployment.yml
Original file line number Diff line number Diff line change
@@ -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"

17 changes: 17 additions & 0 deletions envs/prod-asia/kustomization.yml
Original file line number Diff line number Diff line change
@@ -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

7 changes: 7 additions & 0 deletions envs/prod-asia/replicas.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: simple-deployment
spec:
replicas: 6
11 changes: 11 additions & 0 deletions envs/prod-asia/version.yml
Original file line number Diff line number Diff line change
@@ -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
16 changes: 16 additions & 0 deletions envs/prod-eu/deployment.yml
Original file line number Diff line number Diff line change
@@ -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"

17 changes: 17 additions & 0 deletions envs/prod-eu/kustomization.yml
Original file line number Diff line number Diff line change
@@ -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

7 changes: 7 additions & 0 deletions envs/prod-eu/replicas.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: simple-deployment
spec:
replicas: 8
11 changes: 11 additions & 0 deletions envs/prod-eu/version.yml
Original file line number Diff line number Diff line change
@@ -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
16 changes: 16 additions & 0 deletions envs/prod-us/deployment.yml
Original file line number Diff line number Diff line change
@@ -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"

17 changes: 17 additions & 0 deletions envs/prod-us/kustomization.yml
Original file line number Diff line number Diff line change
@@ -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

7 changes: 7 additions & 0 deletions envs/prod-us/replicas.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: simple-deployment
spec:
replicas: 10
11 changes: 11 additions & 0 deletions envs/prod-us/version.yml
Original file line number Diff line number Diff line change
@@ -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
16 changes: 16 additions & 0 deletions envs/qa/deployment.yml
Original file line number Diff line number Diff line change
@@ -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"

16 changes: 16 additions & 0 deletions envs/qa/kustomization.yml
Original file line number Diff line number Diff line change
@@ -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

7 changes: 7 additions & 0 deletions envs/qa/replicas.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: simple-deployment
spec:
replicas: 2
Loading

0 comments on commit b5fd818

Please sign in to comment.