├── README.md ├── env ├── dev-values.yaml ├── prod-values.yaml └── stage-values.yaml ├── nginx-chart ├── .helmignore ├── Chart.yaml ├── templates │ ├── configmap.yaml │ ├── deployment.yaml │ └── service.yaml └── values.yaml └── nginx-manifests ├── configmap.yaml ├── deployment.yaml └── service.yaml /README.md: -------------------------------------------------------------------------------- 1 | # helm-tutorial 2 | helm Chart examples and tutorial resoruces 3 | -------------------------------------------------------------------------------- /env/dev-values.yaml: -------------------------------------------------------------------------------- 1 | replicaCount: 1 2 | 3 | image: 4 | repository: nginx 5 | tag: "1.16.0" 6 | pullPolicy: IfNotPresent 7 | 8 | service: 9 | name: nginx-service 10 | type: ClusterIP 11 | port: 80 12 | targetPort: 9000 13 | 14 | env: 15 | name: dev -------------------------------------------------------------------------------- /env/prod-values.yaml: -------------------------------------------------------------------------------- 1 | replicaCount: 1 2 | 3 | image: 4 | repository: nginx 5 | tag: "1.16.0" 6 | pullPolicy: IfNotPresent 7 | 8 | service: 9 | name: nginx-service 10 | type: ClusterIP 11 | port: 80 12 | targetPort: 9000 13 | 14 | env: 15 | name: stage -------------------------------------------------------------------------------- /env/stage-values.yaml: -------------------------------------------------------------------------------- 1 | replicaCount: 1 2 | 3 | image: 4 | repository: nginx 5 | tag: "1.16.0" 6 | pullPolicy: IfNotPresent 7 | 8 | service: 9 | name: nginx-service 10 | type: ClusterIP 11 | port: 80 12 | targetPort: 9000 13 | 14 | env: 15 | name: prod -------------------------------------------------------------------------------- /nginx-chart/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *.orig 18 | *~ 19 | # Various IDEs 20 | .project 21 | .idea/ 22 | *.tmproj 23 | .vscode/ 24 | -------------------------------------------------------------------------------- /nginx-chart/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v2 2 | name: nginx-chart 3 | description: My First Helm Chart 4 | type: application 5 | version: 0.1.0 6 | appVersion: "1.0.0" 7 | maintainers: 8 | - email: contact@devopscube.com 9 | name: devopscube -------------------------------------------------------------------------------- /nginx-chart/templates/configmap.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: {{ .Release.Name }}-index-html-configmap 5 | namespace: default 6 | data: 7 | index.html: | 8 | 9 |

Welcome

10 |
11 |

Hi! I got deployed in {{ .Values.env.name }} Environment using Helm Chart

12 | 9 |

Welcome

10 |
11 |

Hi! I got deployed in dev Environment using Helm Chart

12 |