Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
[stable/heapster] Added support for custom labels
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Aguirre committed Jun 13, 2017
1 parent e7082c4 commit aa81594
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions stable/heapster/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ metadata:
name: {{ template "fullname" . }}
labels:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
{{- range $key, $value := .Values.labels }}
{{ $key }}: {{ $value }}
{{- end }}
spec:
replicas: {{ .Values.replicaCount }}
template:
Expand Down
3 changes: 3 additions & 0 deletions stable/heapster/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ metadata:
app: {{ template "fullname" . }}
heritage: "{{ .Release.Service }}"
release: "{{ .Release.Name }}"
{{- range $key, $value := .Values.service.labels }}
{{ $key }}: {{ $value }}
{{- end }}
spec:
type: {{ .Values.service.type }}
ports:
Expand Down
13 changes: 13 additions & 0 deletions stable/heapster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,26 @@ image:
repository: gcr.io/google_containers/heapster
tag: v1.3.0
pullPolicy: IfNotPresent
## Here labels can be added to the hepaster deployment
# labels:
# kubernetes.io/cluster-service: "true"
# kubernetes.io/name: "Heapster"
labels:

service:
type: ClusterIP
externalPort: 8082
internalPort: 8082
## This allows an overide of the heapster service name
## Default: {{ .Chart.Name }}
# nameOverride:

## Here labels can be added to the hepaster service
# labels:
# kubernetes.io/cluster-service: "true"
# kubernetes.io/name: "Heapster"
labels:

resources:
limits:
cpu: 100m
Expand Down

0 comments on commit aa81594

Please sign in to comment.