April 2018
Intermediate to advanced
468 pages
14h 34m
English
Template files are just text files that follow the Go template language rules. They can generate Kubernetes configuration files. Here is the service template file from the artifactory chart:
kind: ServiceapiVersion: v1kind: Servicemetadata: name: {{ template "artifactory.fullname" . }} labels: app: {{ template "artifactory.name" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version }} component: "{{ .Values.artifactory.name }}" heritage: {{ .Release.Service }} release: {{ .Release.Name }}{{- if .Values.artifactory.service.annotations }} annotations:{{ toYaml .Values.artifactory.service.annotations | indent 4 }}{{- end }}spec: type: {{ .Values.artifactory.service.type }} ports: - port: {{ .Values.artifactory.externalPort }} ...Read now
Unlock full access