Skip to content

Commit

Permalink
Add labels & annotations to service
Browse files Browse the repository at this point in the history
  • Loading branch information
tnowak-plex committed Jan 18, 2023
1 parent 51da170 commit 9a09d89
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions chart/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ kind: Service
metadata:
name: {{ .Release.Name }}
namespace: {{ .Release.Namespace }}
{{- with .Values.networking.serviceLabels }}
labels:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.networking.serviceAnnotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
ports:
- name: gameport
Expand Down
4 changes: 4 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ serverStorage:
size: 5Gi

networking:
# Optional additional annotations to add to the service
# serviceAnnotations: {}
# Optional additional labels to add to the service
# serviceLabels: {}
serviceType: LoadBalancer
gamePort: 2456
publishQueryPort: "true"
Expand Down

0 comments on commit 9a09d89

Please sign in to comment.