Exercise: Create a Helm Chart for k8s deployment
- Write a Helm chart from scrath to create nginx-deployment (don’t use helm create ) for k8s manifest
apiVersion: apps/v1
kind: Deployment
metadata:
# Unique key of the Deployment instance
name: deployment-example
spec:
# 3 Pods should exist at all times.
replicas: 3
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
# Apply this label to pods and default
# the Deployment label selector to this value
app: nginx
spec:
containers:
- name: nginx
# Run this image
image: nginx:1.14
- Get the values such as labels, container image, tag, ports replicas from values.yaml file. Refer Here for the solution.
