You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Step-03: Review mychart4, mychart2 subchart replicaCount value
# Change Directory
cd 31-Helm-Dependency-Override-Subchart-Values
# Review mychart4 Values from Helm package
helm show values parentchart/charts/mychart4-0.1.0.tgz
# Review mychart2 Values from Helm package
helm show values parentchart/charts/mychart2-0.4.0.tgz
Step-04: Update values.yaml
Override replicaCount value in subcharts from parent chart values.yaml
# Values for Child Charts with Chart Namemychart4:
enabled: truereplicaCount: 3mychart2:
enabled: truereplicaCount: 3
Step-05: Deploy and Test
# Helm Dependency Update
helm dependency update parentchart/
or
helm dep update parentchart/
# Helm Install
helm install myapp1 parentchart/ --atomic
# Helm List
helm list
# Helm Status
helm status myapp1 --show-resources
# List Deployments
kubectl get deploy
# List Pods
kubectl get pods
Observation:
1. We should see 3 pods foreach child chart
2. 1 pod for parentchart
3. We have successfully overrided the child chart values from parentchart values.yaml
# List Services
kubectl get svc
# Access Application
parentchart: http://localhost:<port-from-get-svc-output>
mychart4: http://localhost:<port-from-get-svc-output>
mychart2: http://localhost:31232