Skip to content

Commit

Permalink
add labels for services #40
Browse files Browse the repository at this point in the history
  • Loading branch information
kvaps committed Jun 25, 2021
1 parent 29b7b82 commit e716ef1
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions helm/kube-linstor/templates/controller-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ kind: Service
metadata:
name: {{ $fullName }}-controller
namespace: {{ .Release.Namespace }}
labels:
app: {{ $fullName }}-controller
{{- with .Values.controller.service.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.controller.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
Expand Down
9 changes: 9 additions & 0 deletions helm/kube-linstor/templates/stork-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ kind: Service
metadata:
name: {{ $fullName }}-stork
namespace: {{ .Release.Namespace }}
labels:
app: {{ $fullName }}-stork
{{- with .Values.stork.service.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.stork.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
ports:
- name: extender
Expand Down
5 changes: 5 additions & 0 deletions helm/kube-linstor/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ controller:
#hostNetwork: true

service:
labels: {}
annotations:
prometheus.io/path: "/metrics?error_reports=false"
prometheus.io/port: "3370"
Expand Down Expand Up @@ -262,6 +263,10 @@ stork:

replicaCount: 2

service:
labels: {}
annotations: {}

# nodeSelector:
# node-role.kubernetes.io/master: ""

Expand Down

0 comments on commit e716ef1

Please sign in to comment.