nginx-chart-files/
├── index.yaml
├── nginx-0.1.0.tgz
└── nginx-0.2.0.tgz
Generate manifest:
helm template ./direcotry -f values.yaml --output-dir output_dir
helm template ./direcotry -f values.yml
#render in stdout
helm template ./direcotry -f values.yaml --dry-run
- Create helm package (.gz file)
helm package ./direcotry_path
apiVersion: {{ template "controller.apiVersion" . }}
kind: {{ .Values.controller.kind }}
metadata:
labels:
{{ $labels | indent 4 }}
name: {{ $name }}
namespace: {{ $.Release.Namespace }}
---
spec:
{{- with .Values.controller.hostAliases }}
hostAliases:
{{ toYaml . | indent 8 }}
{{- end }}
---
values.yml
controller:
create: true
kind: Deployment
---
terminationGracePeriodSeconds: 30
hostAliases:
- hostnames:
- example.com
ip: 127.0.0.1
index.html
apiVersion: v1
entries:
nginx:
- apiVersion: v2
appVersion: 1.16.0
created: "2021-07-03T21:59:00.34571153-04:00"
digest: b22a325b03c8e88b6a6a8d1a8e79f5d0498813855174a983426466b6de5a5f71
maintainers:
- email: [email protected]
name: John Smith
name: nginx
type: application
urls:
- https://example.com/charts/nginx-0.1.0.tgz
version: 0.1.0
- apiVersion: v2
appVersion: 1.17.0
created: "2021-07-03T21:59:00.34571153-04:00"
digest: b22a325b03c8e88b6a6a8d1a8e79f5d0498813855174a983426466b6de5a5f71
maintainers:
- email: [email protected]
name: John Smith
name: nginx
type: application
urls:
- https://example.com/charts/nginx-0.2.0.tgz
version: 0.2.0