-
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
0bcd33a
commit cbaa334
Showing
4 changed files
with
67 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
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: iec1 | ||
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/iechart1/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 }}-app | ||
spec: | ||
{{- if eq .Values.iecapp.env "prod" }} | ||
replicas: 4 | ||
{{- else if eq .Values.iecapp.env "qa" }} | ||
replicas: 2 | ||
{{- else }} | ||
replicas: 1 | ||
{{- end }} | ||
selector: | ||
matchLabels: | ||
app: iec | ||
template: | ||
metadata: | ||
labels: | ||
app: iec | ||
spec: | ||
containers: | ||
- name: sampleapp | ||
image: {{ .Values.image.repo }}:{{ .Values.image.tag }} | ||
ports: | ||
- containerPort: 8080 |
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,5 @@ | ||
iecapp: | ||
env: qa | ||
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