-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
baa5eb4
commit 63c0f47
Showing
10 changed files
with
124 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# place the below content inside the Chart.yaml | ||
apiVersion: v2 | ||
type: application | ||
name: app | ||
version: "0.1.0" # recomended to follow version as "MAJOR-Version.MINOR-Version.PATCH-Version" always | ||
description: "A Helm chart to deploy all required kubernetes resources" | ||
appVersion: "1.0.0" # your application version / release version | ||
# save the file with the above data |
29 changes: 29 additions & 0 deletions
29
05-create-helm-charts/07-flow-control/iechart2/templates/deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ .Release.Name }}-{{ .Chart.Name }} | ||
labels: | ||
app: nginx | ||
spec: | ||
{{- if and .Values.iecapp.enabled (eq .Values.iecapp.env "prod") }} | ||
replicas: 6 | ||
{{- else if eq .Values.iecapp.env "prod" }} | ||
replicas: 4 | ||
{{- else if eq .Values.iecapp.env "qa" }} | ||
replicas: 2 | ||
{{- else }} | ||
replicas: 1 | ||
{{- end }} | ||
selector: | ||
matchLabels: | ||
app: nginx | ||
template: | ||
metadata: | ||
labels: | ||
app: nginx | ||
spec: | ||
containers: | ||
- name: nginx | ||
image: {{ .Values.image.repo }}:{{.Values.image.tag }} | ||
ports: | ||
- containerPort: 80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
iecapp: | ||
env: prod | ||
enabled: "" | ||
image: | ||
repo: docker.io/lerndevops/samples | ||
tag: pyapp-v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# place the below content inside the Chart.yaml | ||
apiVersion: v2 | ||
type: application | ||
name: app | ||
version: "0.1.0" # recomended to follow version as "MAJOR-Version.MINOR-Version.PATCH-Version" always | ||
description: "A Helm chart to deploy all required kubernetes resources" | ||
appVersion: "1.0.0" # your application version / release version | ||
# save the file with the above data |
27 changes: 27 additions & 0 deletions
27
05-create-helm-charts/07-flow-control/iechart3/templates/deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ .Release.Name }}-{{ .Chart.Name }} | ||
labels: | ||
app: nginx | ||
spec: | ||
{{- if or (eq .Values.iecapp.env "prod") (eq .Values.iecapp.env "uat") }} | ||
replicas: 6 | ||
{{- else if eq .Values.iecapp.env "qa" }} | ||
replicas: 2 | ||
{{- else }} | ||
replicas: 1 | ||
{{- end }} | ||
selector: | ||
matchLabels: | ||
app: nginx | ||
template: | ||
metadata: | ||
labels: | ||
app: nginx | ||
spec: | ||
containers: | ||
- name: nginx | ||
image: {{ .Values.image.repo }}:{{ .Values.image.tag }} | ||
ports: | ||
- containerPort: 3000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
iecapp: | ||
env: prod | ||
enabled: "" | ||
image: | ||
repo: docker.io/lerndevops/samples | ||
tag: pyapp-v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# place the below content inside the Chart.yaml | ||
apiVersion: v2 | ||
type: application | ||
name: app | ||
version: "0.1.0" # recomended to follow version as "MAJOR-Version.MINOR-Version.PATCH-Version" always | ||
description: "A Helm chart to deploy all required kubernetes resources" | ||
appVersion: "1.0.0" # your application version / release version | ||
# save the file with the above data |
25 changes: 25 additions & 0 deletions
25
05-create-helm-charts/07-flow-control/iechart4/templates/deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ .Release.Name }}-{{ .Chart.Name }} | ||
labels: | ||
app: nginx | ||
spec: | ||
{{- if not (eq .Values.iecapp.env "prod") }} | ||
replicas: 1 | ||
{{- else }} | ||
replicas: 4 | ||
{{- end }} | ||
selector: | ||
matchLabels: | ||
app: nginx | ||
template: | ||
metadata: | ||
labels: | ||
app: nginx | ||
spec: | ||
containers: | ||
- name: nginx | ||
image: {{ .Values.image.repo }}:{{ .Values.image.tag }} | ||
ports: | ||
- containerPort: 3000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
iecapp: | ||
env: prod | ||
enabled: "" | ||
image: | ||
repo: docker.io/lerndevops/samples | ||
tag: pyapp-v2 |