I am just doing one POC on basic helm chart installation on my Google Kubernetes engine. When I create a new helm chart it creates certain files and folder structure automatically. Now my requirement is to create only the deployment & Pod. not the kubernetes service. Is there any way to avoid kubernetes service creation? For Ingress I can see enabled: false
property but for service it does not work.
helm create chart
command by default creates you below file hierarchy:
chart/
|
|- .helmignore # Contains patterns to ignore when packaging Helm charts.
|
|- Chart.yaml # Information about your chart
|
|- values.yaml # The default values for your templates
|
|- charts/ # Charts that this chart depends on
|
|- templates/ # The template files
|
|- templates/tests/ # The test files
So yes, you can delete unnecessary for you objects from chart/templates
directory to avoid creation them during helm install
Github source code that is responsible to create a chart directory along with the common files and directories used in a chart https://github.com/helm/helm/blob/5859403fd92bfb319ae865fcc2466701607da334/cmd/helm/create.go
I figured it out. Just delete service YAML file from templates. That will work.