Updating to the k8s label convention

Closes #4335

Signed-off-by: Matt Farina <matt@mattfarina.com>
pull/4448/head
Matt Farina 6 years ago
parent 99bfe7c5ec
commit e328d00a2f
No known key found for this signature in database
GPG Key ID: 9436E80BFBA46909

@ -6,12 +6,12 @@ metadata:
# The "heritage" label is used to track which tool deployed a given chart. # The "heritage" label is used to track which tool deployed a given chart.
# It is useful for admins who want to see what releases a particular tool # It is useful for admins who want to see what releases a particular tool
# is responsible for. # is responsible for.
heritage: {{.Release.Service | quote }} app.kubernetes.io/managed-by: {{.Release.Service | quote }}
# The "release" convention makes it easy to tie a release to all of the # The "release" convention makes it easy to tie a release to all of the
# Kubernetes resources that were created as part of that release. # Kubernetes resources that were created as part of that release.
release: {{.Release.Name | quote }} app.kubernetes.io/instance: {{.Release.Name | quote }}
# This makes it easy to audit chart usage. # This makes it easy to audit chart usage.
chart: "{{.Chart.Name}}-{{.Chart.Version}}" helm.sh/chart: "{{.Chart.Name}}-{{.Chart.Version}}"
values: {{.Values.test.Name}} values: {{.Values.test.Name}}
annotations: annotations:
"helm.sh/created": {{.Release.Time.Seconds | quote }} "helm.sh/created": {{.Release.Time.Seconds | quote }}

@ -6,12 +6,12 @@ metadata:
# The "heritage" label is used to track which tool deployed a given chart. # The "heritage" label is used to track which tool deployed a given chart.
# It is useful for admins who want to see what releases a particular tool # It is useful for admins who want to see what releases a particular tool
# is responsible for. # is responsible for.
heritage: {{.Release.Service | quote }} app.kubernetes.io/managed-by: {{.Release.Service | quote }}
# The "release" convention makes it easy to tie a release to all of the # The "release" convention makes it easy to tie a release to all of the
# Kubernetes resources that were created as part of that release. # Kubernetes resources that were created as part of that release.
release: {{.Release.Name | quote }} app.kubernetes.io/instance: {{.Release.Name | quote }}
# This makes it easy to audit chart usage. # This makes it easy to audit chart usage.
chart: "{{.Chart.Name}}-{{.Chart.Version}}" helm.sh/chart: "{{.Chart.Name}}-{{.Chart.Version}}"
annotations: annotations:
"helm.sh/created": {{.Release.Time.Seconds | quote }} "helm.sh/created": {{.Release.Time.Seconds | quote }}
spec: spec:

@ -3,7 +3,7 @@ kind: Pod
metadata: metadata:
name: {{.Release.Name}}-{{.Chart.Name}} name: {{.Release.Name}}-{{.Chart.Name}}
labels: labels:
heritage: {{.Release.Service}} app.kubernetes.io/managed-by: {{.Release.Service}}
chartName: {{.Chart.Name}} chartName: {{.Chart.Name}}
chartVersion: {{.Chart.Version | quote}} chartVersion: {{.Chart.Version | quote}}
annotations: annotations:

@ -10,7 +10,7 @@ An item of metadata should be a label under the following conditions:
- It is used by Kubernetes to identify this resource - It is used by Kubernetes to identify this resource
- It is useful to expose to operators for the purpose of querying the system. - It is useful to expose to operators for the purpose of querying the system.
For example, we suggest using `chart: NAME-VERSION` as a label so that operators For example, we suggest using `helm.sh/chart: NAME-VERSION` as a label so that operators
can conveniently find all of the instances of a particular chart to use. can conveniently find all of the instances of a particular chart to use.
If an item of metadata is not used for querying, it should be set as an annotation If an item of metadata is not used for querying, it should be set as an annotation
@ -25,8 +25,12 @@ are recommended, and _should_ be placed onto a chart for global consistency. Tho
Name|Status|Description Name|Status|Description
-----|------|---------- -----|------|----------
heritage | REC | This should always be set to `{{ .Release.Service }}`. It is for finding all things managed by Tiller. `app.kubernetes.io/name` | REC | This should be the app name, reflecting the entire app. Usually `{{ template "name" . }}` is used for this. This is used by many Kubernetes manifests, and is not Helm-specific.
release | REC | This should be the `{{ .Release.Name }}`. `helm.sh/chart` | REC | This should be the chart name and version: `{{ .Chart.Name }}-{{ .Chart.Version \| replace "+" "_" }}`.
chart | REC | This should be the chart name and version: `{{ .Chart.Name }}-{{ .Chart.Version \| replace "+" "_" }}`. `app.kubernetes.io/managed-by` | REC | This should always be set to `{{ .Release.Service }}`. It is for finding all things managed by Tiller.
app | REC | This should be the app name, reflecting the entire app. Usually `{{ template "name" . }}` is used for this. This is used by many Kubernetes manifests, and is not Helm-specific. `app.kubernetes.io/instance` | REC | This should be the `{{ .Release.Name }}`. It aid in differentiating between different instances of the same application.
component | OPT | This is a common label for marking the different roles that pieces may play in an application. For example, `component: frontend`. `app.kubernetes.io/version` | OPT | The version of the app and can be set to `{{ .Chart.AppVersion }}`.
`app.kubernetes.io/component` | OPT | This is a common label for marking the different roles that pieces may play in an application. For example, `app.kubernetes.io/component: frontend`.
`app.kubernetes.io/part-of` | OPT | When multiple charts or pieces of software are used together to make one application. For example, application software and a database to produce a website. This can be set to the top level application being supported.
You can find more information on the Kubernetes labels, prefixed with `app.kubernetes.io`, in the [Kubernetes documentation](https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/).

@ -52,11 +52,11 @@ All PodTemplate sections should specify a selector. For example:
```yaml ```yaml
selector: selector:
matchLabels: matchLabels:
app: MyName app.kubernetes.io/name: MyName
template: template:
metadata: metadata:
labels: labels:
app: MyName app.kubernetes.io/name: MyName
``` ```
This is a good practice because it makes the relationship between the set and This is a good practice because it makes the relationship between the set and

@ -113,11 +113,11 @@ metadata:
labels: labels:
# Many helm templates would use `.` below, but that will not work, # Many helm templates would use `.` below, but that will not work,
# however `$` will work here # however `$` will work here
app: {{ template "fullname" $ }} app.kubernetes.io/name: {{ template "fullname" $ }}
# I cannot reference .Chart.Name, but I can do $.Chart.Name # I cannot reference .Chart.Name, but I can do $.Chart.Name
chart: "{{ $.Chart.Name }}-{{ $.Chart.Version }}" helm.sh/chart: "{{ $.Chart.Name }}-{{ $.Chart.Version }}"
release: "{{ $.Release.Name }}" app.kubernetes.io/instance: "{{ $.Release.Name }}"
heritage: "{{ $.Release.Service }}" app.kubernetes.io/managed-by: "{{ $.Release.Service }}"
type: kubernetes.io/tls type: kubernetes.io/tls
data: data:
tls.crt: {{ .certificate }} tls.crt: {{ .certificate }}

@ -526,15 +526,15 @@ metadata:
name: deis-database name: deis-database
namespace: deis namespace: deis
labels: labels:
heritage: deis app.kubernetes.io/managed-by: deis
spec: spec:
replicas: 1 replicas: 1
selector: selector:
app: deis-database app.kubernetes.io/name: deis-database
template: template:
metadata: metadata:
labels: labels:
app: deis-database app.kubernetes.io/name: deis-database
spec: spec:
serviceAccount: deis-database serviceAccount: deis-database
containers: containers:
@ -663,15 +663,15 @@ metadata:
name: deis-database name: deis-database
namespace: deis namespace: deis
labels: labels:
heritage: deis app.kubernetes.io/managed-by: deis
spec: spec:
replicas: 1 replicas: 1
selector: selector:
app: deis-database app.kubernetes.io/name: deis-database
template: template:
metadata: metadata:
labels: labels:
app: deis-database app.kubernetes.io/name: deis-database
spec: spec:
serviceAccount: deis-database serviceAccount: deis-database
containers: containers:

@ -127,9 +127,9 @@ kind: Job
metadata: metadata:
name: "{{.Release.Name}}" name: "{{.Release.Name}}"
labels: labels:
heritage: {{.Release.Service | quote }} app.kubernetes.io/managed-by: {{.Release.Service | quote }}
release: {{.Release.Name | quote }} app.kubernetes.io/instance: {{.Release.Name | quote }}
chart: "{{.Chart.Name}}-{{.Chart.Version}}" helm.sh/chart: "{{.Chart.Name}}-{{.Chart.Version}}"
annotations: annotations:
# This is what defines this resource as a hook. Without this line, the # This is what defines this resource as a hook. Without this line, the
# job is considered part of the release. # job is considered part of the release.
@ -141,9 +141,9 @@ spec:
metadata: metadata:
name: "{{.Release.Name}}" name: "{{.Release.Name}}"
labels: labels:
heritage: {{.Release.Service | quote }} app.kubernetes.io/managed-by: {{.Release.Service | quote }}
release: {{.Release.Name | quote }} app.kubernetes.io/instance: {{.Release.Name | quote }}
chart: "{{.Chart.Name}}-{{.Chart.Version}}" helm.sh/chart: "{{.Chart.Name}}-{{.Chart.Version}}"
spec: spec:
restartPolicy: Never restartPolicy: Never
containers: containers:

@ -3,16 +3,16 @@ kind: Pod
metadata: metadata:
name: {{ template "alpine.fullname" . }} name: {{ template "alpine.fullname" . }}
labels: labels:
# The "heritage" label is used to track which tool deployed a given chart. # The "app.kubernetes.io/managed-by" label is used to track which tool deployed a given chart.
# It is useful for admins who want to see what releases a particular tool # It is useful for admins who want to see what releases a particular tool
# is responsible for. # is responsible for.
heritage: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
# The "release" convention makes it easy to tie a release to all of the # The "app.kubernetes.io/instance" convention makes it easy to tie a release to all of the
# Kubernetes resources that were created as part of that release. # Kubernetes resources that were created as part of that release.
release: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
# This makes it easy to audit chart usage. # This makes it easy to audit chart usage.
chart: {{ .Chart.Name }}-{{ .Chart.Version }} helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }}
app: {{ template "alpine.name" . }} app.kubernetes.io/name: {{ template "alpine.name" . }}
spec: spec:
# This shows how to use a simple value. This will look for a passed-in value called restartPolicy. # This shows how to use a simple value. This will look for a passed-in value called restartPolicy.
restartPolicy: {{ .Values.restartPolicy }} restartPolicy: {{ .Values.restartPolicy }}

@ -4,10 +4,10 @@ kind: ConfigMap
metadata: metadata:
name: {{ template "nginx.fullname" . }} name: {{ template "nginx.fullname" . }}
labels: labels:
heritage: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
release: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
chart: {{ .Chart.Name }}-{{ .Chart.Version }} helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }}
app: {{ template "nginx.name" . }} app.kubernetes.io/name: {{ template "nginx.name" . }}
data: data:
# When the config map is mounted as a volume, these will be created as files. # When the config map is mounted as a volume, these will be created as files.
index.html: {{ .Values.index | quote }} index.html: {{ .Values.index | quote }}

@ -6,16 +6,16 @@ metadata:
# multiple times into the same namespace. # multiple times into the same namespace.
name: {{ template "nginx.fullname" . }} name: {{ template "nginx.fullname" . }}
labels: labels:
# The "heritage" label is used to track which tool deployed a given chart. # The "app.kubernetes.io/managed-by" label is used to track which tool deployed a given chart.
# It is useful for admins who want to see what releases a particular tool # It is useful for admins who want to see what releases a particular tool
# is responsible for. # is responsible for.
heritage: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
# The "release" convention makes it easy to tie a release to all of the # The "app.kubernetes.io/instance" convention makes it easy to tie a release to all of the
# Kubernetes resources that were created as part of that release. # Kubernetes resources that were created as part of that release.
release: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
# This makes it easy to audit chart usage. # This makes it easy to audit chart usage.
chart: {{ .Chart.Name }}-{{ .Chart.Version }} helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }}
app: {{ template "nginx.name" . }} app.kubernetes.io/name: {{ template "nginx.name" . }}
spec: spec:
replicas: {{ .Values.replicaCount }} replicas: {{ .Values.replicaCount }}
template: template:
@ -26,8 +26,8 @@ spec:
{{ toYaml .Values.podAnnotations | indent 8 }} {{ toYaml .Values.podAnnotations | indent 8 }}
{{- end }} {{- end }}
labels: labels:
app: {{ template "nginx.name" . }} app.kubernetes.io/name: {{ template "nginx.name" . }}
release: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
spec: spec:
containers: containers:
- name: {{ template "nginx.name" . }} - name: {{ template "nginx.name" . }}

@ -3,16 +3,16 @@ kind: Job
metadata: metadata:
name: {{ template "nginx.fullname" . }} name: {{ template "nginx.fullname" . }}
labels: labels:
# The "heritage" label is used to track which tool deployed a given chart. # The "app.kubernetes.io/managed-by" label is used to track which tool deployed a given chart.
# It is useful for admins who want to see what releases a particular tool # It is useful for admins who want to see what releases a particular tool
# is responsible for. # is responsible for.
heritage: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
# The "release" convention makes it easy to tie a release to all of the # The "app.kubernetes.io/instance" convention makes it easy to tie a release to all of the
# Kubernetes resources that were created as part of that release. # Kubernetes resources that were created as part of that release.
release: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
# This makes it easy to audit chart usage. # This makes it easy to audit chart usage.
chart: {{ .Chart.Name }}-{{ .Chart.Version }} helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }}
app: {{ template "nginx.name" . }} app.kubernetes.io/name: {{ template "nginx.name" . }}
annotations: annotations:
# This is what defines this resource as a hook. Without this line, the # This is what defines this resource as a hook. Without this line, the
# job is considered part of the release. # job is considered part of the release.
@ -22,8 +22,8 @@ spec:
metadata: metadata:
name: {{ template "nginx.fullname" . }} name: {{ template "nginx.fullname" . }}
labels: labels:
release: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
app: {{ template "nginx.name" . }} app.kubernetes.io/name: {{ template "nginx.name" . }}
spec: spec:
# This shows how to use a simple value. This will look for a passed-in value # This shows how to use a simple value. This will look for a passed-in value
# called restartPolicy. If it is not found, it will use the default value. # called restartPolicy. If it is not found, it will use the default value.

@ -5,10 +5,10 @@ kind: Secret
metadata: metadata:
name: {{ template "nginx.fullname" . }} name: {{ template "nginx.fullname" . }}
labels: labels:
heritage: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
release: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
chart: {{ .Chart.Name }}-{{ .Chart.Version }} helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }}
app: {{ template "nginx.name" . }} app.kubernetes.io/name: {{ template "nginx.name" . }}
# This declares the resource to be a hook. By convention, we also name the # This declares the resource to be a hook. By convention, we also name the
# file "pre-install-XXX.yaml", but Helm itself doesn't care about file names. # file "pre-install-XXX.yaml", but Helm itself doesn't care about file names.
annotations: annotations:

@ -3,10 +3,10 @@ kind: Pod
metadata: metadata:
name: "{{ template "nginx.fullname" . }}-service-test" name: "{{ template "nginx.fullname" . }}-service-test"
labels: labels:
heritage: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
release: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
chart: {{ .Chart.Name }}-{{ .Chart.Version }} helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }}
app: {{ template "nginx.name" . }} app.kubernetes.io/name: {{ template "nginx.name" . }}
annotations: annotations:
"helm.sh/hook": test-success "helm.sh/hook": test-success
spec: spec:

@ -6,10 +6,10 @@ metadata:
{{ toYaml .Values.service.annotations | indent 4 }} {{ toYaml .Values.service.annotations | indent 4 }}
{{- end }} {{- end }}
labels: labels:
app: {{ template "nginx.name" . }} app.kubernetes.io/name: {{ template "nginx.name" . }}
chart: {{ .Chart.Name }}-{{ .Chart.Version }} helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }}
heritage: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
release: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
name: {{ template "nginx.fullname" . }} name: {{ template "nginx.fullname" . }}
spec: spec:
# Provides options for the service so chart users have the full choice # Provides options for the service so chart users have the full choice
@ -35,5 +35,5 @@ spec:
nodePort: {{ .Values.service.nodePort }} nodePort: {{ .Values.service.nodePort }}
{{- end }} {{- end }}
selector: selector:
app: {{ template "nginx.name" . }} app.kubernetes.io/name: {{ template "nginx.name" . }}
release: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}

@ -129,10 +129,10 @@ kind: Ingress
metadata: metadata:
name: {{ $fullName }} name: {{ $fullName }}
labels: labels:
app: {{ include "<CHARTNAME>.name" . }} app.kubernetes.io/name: {{ include "<CHARTNAME>.name" . }}
chart: {{ include "<CHARTNAME>.chart" . }} helm.sh/chart: {{ include "<CHARTNAME>.chart" . }}
release: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
heritage: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- with .Values.ingress.annotations }} {{- with .Values.ingress.annotations }}
annotations: annotations:
{{ toYaml . | indent 4 }} {{ toYaml . | indent 4 }}
@ -166,21 +166,21 @@ kind: Deployment
metadata: metadata:
name: {{ include "<CHARTNAME>.fullname" . }} name: {{ include "<CHARTNAME>.fullname" . }}
labels: labels:
app: {{ include "<CHARTNAME>.name" . }} app.kubernetes.io/name: {{ include "<CHARTNAME>.name" . }}
chart: {{ include "<CHARTNAME>.chart" . }} helm.sh/chart: {{ include "<CHARTNAME>.chart" . }}
release: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
heritage: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
spec: spec:
replicas: {{ .Values.replicaCount }} replicas: {{ .Values.replicaCount }}
selector: selector:
matchLabels: matchLabels:
app: {{ include "<CHARTNAME>.name" . }} app.kubernetes.io/name: {{ include "<CHARTNAME>.name" . }}
release: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
template: template:
metadata: metadata:
labels: labels:
app: {{ include "<CHARTNAME>.name" . }} app.kubernetes.io/name: {{ include "<CHARTNAME>.name" . }}
release: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
spec: spec:
containers: containers:
- name: {{ .Chart.Name }} - name: {{ .Chart.Name }}
@ -219,10 +219,10 @@ kind: Service
metadata: metadata:
name: {{ include "<CHARTNAME>.fullname" . }} name: {{ include "<CHARTNAME>.fullname" . }}
labels: labels:
app: {{ include "<CHARTNAME>.name" . }} app.kubernetes.io/name: {{ include "<CHARTNAME>.name" . }}
chart: {{ include "<CHARTNAME>.chart" . }} helm.sh/chart: {{ include "<CHARTNAME>.chart" . }}
release: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
heritage: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
spec: spec:
type: {{ .Values.service.type }} type: {{ .Values.service.type }}
ports: ports:
@ -231,8 +231,8 @@ spec:
protocol: TCP protocol: TCP
name: http name: http
selector: selector:
app: {{ include "<CHARTNAME>.name" . }} app.kubernetes.io/name: {{ include "<CHARTNAME>.name" . }}
release: {{ .Release.Name }} app.kubernetes.io/instancelease: {{ .Release.Name }}
` `
const defaultNotes = `1. Get the application URL by running these commands: const defaultNotes = `1. Get the application URL by running these commands:

@ -3,7 +3,7 @@ kind: Pod
metadata: metadata:
name: {{.Release.Name}}-{{.Chart.Name}} name: {{.Release.Name}}-{{.Chart.Name}}
labels: labels:
heritage: {{.Release.Service}} app.kubernetes.io/managed-by: {{.Release.Service}}
chartName: {{.Chart.Name}} chartName: {{.Chart.Name}}
chartVersion: {{.Chart.Version | quote}} chartVersion: {{.Chart.Version | quote}}
annotations: annotations:

@ -3,7 +3,7 @@ kind: Pod
metadata: metadata:
name: {{.Release.Name}}-{{.Chart.Name}} name: {{.Release.Name}}-{{.Chart.Name}}
labels: labels:
heritage: {{.Release.Service}} app.kubernetes.io/managed-by: {{.Release.Service}}
chartName: {{.Chart.Name}} chartName: {{.Chart.Name}}
chartVersion: {{.Chart.Version | quote}} chartVersion: {{.Chart.Version | quote}}
annotations: annotations:

@ -3,7 +3,7 @@ kind: Pod
metadata: metadata:
name: {{.Release.Name}}-{{.Chart.Name}} name: {{.Release.Name}}-{{.Chart.Name}}
labels: labels:
heritage: {{.Release.Service}} app.kubernetes.io/managed-by: {{.Release.Service}}
chartName: {{.Chart.Name}} chartName: {{.Chart.Name}}
chartVersion: {{.Chart.Version | quote}} chartVersion: {{.Chart.Version | quote}}
annotations: annotations:

@ -3,7 +3,7 @@ kind: Pod
metadata: metadata:
name: {{.Release.Name}}-{{.Chart.Name}} name: {{.Release.Name}}-{{.Chart.Name}}
labels: labels:
heritage: {{.Release.Service}} app.kubernetes.io/managed-by: {{.Release.Service}}
chartName: {{.Chart.Name}} chartName: {{.Chart.Name}}
chartVersion: {{.Chart.Version | quote}} chartVersion: {{.Chart.Version | quote}}
annotations: annotations:

@ -3,7 +3,7 @@ kind: Pod
metadata: metadata:
name: {{.Release.Name}}-{{.Chart.Name}} name: {{.Release.Name}}-{{.Chart.Name}}
labels: labels:
heritage: {{.Release.Service}} app.kubernetes.io/managed-by: {{.Release.Service}}
chartName: {{.Chart.Name}} chartName: {{.Chart.Name}}
chartVersion: {{.Chart.Version | quote}} chartVersion: {{.Chart.Version | quote}}
annotations: annotations:

@ -3,7 +3,7 @@ kind: Pod
metadata: metadata:
name: {{.Release.Name}}-{{.Chart.Name}} name: {{.Release.Name}}-{{.Chart.Name}}
labels: labels:
heritage: {{.Release.Service}} app.kubernetes.io/managed-by: {{.Release.Service}}
chartName: {{.Chart.Name}} chartName: {{.Chart.Name}}
chartVersion: {{.Chart.Version | quote}} chartVersion: {{.Chart.Version | quote}}
annotations: annotations:

@ -3,7 +3,7 @@ kind: Pod
metadata: metadata:
name: {{.Release.Name}}-{{.Chart.Name}} name: {{.Release.Name}}-{{.Chart.Name}}
labels: labels:
heritage: {{.Release.Service}} app.kubernetes.io/managed-by: {{.Release.Service}}
chartName: {{.Chart.Name}} chartName: {{.Chart.Name}}
chartVersion: {{.Chart.Version | quote}} chartVersion: {{.Chart.Version | quote}}
annotations: annotations:

@ -3,7 +3,7 @@ kind: Pod
metadata: metadata:
name: {{.Release.Name}}-{{.Chart.Name}} name: {{.Release.Name}}-{{.Chart.Name}}
labels: labels:
heritage: {{.Release.Service}} app.kubernetes.io/managed-by: {{.Release.Service}}
chartName: {{.Chart.Name}} chartName: {{.Chart.Name}}
chartVersion: {{.Chart.Version | quote}} chartVersion: {{.Chart.Version | quote}}
annotations: annotations:

@ -5,9 +5,9 @@ kind: Service
metadata: metadata:
name: "{{ .Values.name }}" name: "{{ .Values.name }}"
labels: labels:
heritage: {{ .Release.Service | quote }} app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
release: {{ .Release.Name | quote }} app.kubernetes.io/instance: {{ .Release.Name | quote }}
chart: "{{.Chart.Name}}-{{.Chart.Version}}" helm.sh/chart: "{{.Chart.Name}}-{{.Chart.Version}}"
kubeVersion: {{ .Capabilities.KubeVersion.Major }} kubeVersion: {{ .Capabilities.KubeVersion.Major }}
tillerVersion: {{ .Capabilities.TillerVersion }} tillerVersion: {{ .Capabilities.TillerVersion }}
spec: spec:

Loading…
Cancel
Save