Helm continued.
- Helm Functions: Refer Here
- Helm custom functions can go into
_helpers.tpl file
You are an helm expert
I'm learning helm and i know how to write expressions
Give me examples of helm custom function one by one
wait me to try one then give next
---
apiVersion: v1
kind: Service
metadata:
name: {{ .Values.services.makeline.name }}
spec:
type: {{ .Values.services.makeline.type }}
ports: {{ .Values.services.makeline.ports | toYaml | nindent 4 }}
selector: {{ .Values.services.makeline.selector | toYaml | nindent 4 -}}

{{- with .Values.services.makeline }}
apiVersion: v1
kind: Service
metadata:
name: {{ .name }}
spec:
type: {{ .type }}
ports:
{{ .ports | toYaml | nindent 4 }}
selector:
{{ .selector | toYaml | nindent 4 }}
{{- end }}
- Refer Here for the changes done to use the similar approach for all services.
- Refer Here for helm changes.
Exercise: deploy a helm chart in killercode where helm chart is in github.
Next Topics
- Tommorow
- Ingress (Ingress Controller – is external)
- Gateway (Gateway Controller – is external)
- Access control in k8s
- Next Week
- Service Mesh
- Argo CD (Gitops)
- Monitoring (Observability)
- Week after
- EKS/AKS
- Full workshop on k8s deployment with CI/CD Pipeline
Like this:
Like Loading...