Skip to content

Commit

Permalink
Merge pull request #51 from ionfury/service-label-annotations
Browse files Browse the repository at this point in the history
Add labels & annotations to service
  • Loading branch information
Addyvan authored Sep 30, 2024
2 parents 0325bc3 + 9a09d89 commit 0d1a74d
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 0d1a74d

Please sign in to comment.