Skip to content

Commit

Permalink
mc-router: Add extraServiceSpec for customizing services (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
Edouard127 authored Aug 5, 2024
1 parent 546783c commit cb5acb4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/mc-router/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: mc-router
version: 1.2.0
version: 1.2.1
appVersion: 1.20.0
home: https://github.com/itzg/mc-router
description: Routes Minecraft client connections to backend servers based upon the requested server address.
Expand Down
3 changes: 3 additions & 0 deletions charts/mc-router/templates/router-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ spec:
{{- end }}
selector:
{{- include "mc-router.selectorLabels" . | nindent 4 }}
{{- if .Values.services.extraServiceSpec }}
{{ toYaml .Values.services.extraServiceSpec | indent 4 }}
{{- end }}
5 changes: 5 additions & 0 deletions charts/mc-router/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ services:
# Service annotations
# annotations: {}

# Additional service specs to be defined
# Fields set here will be added to the end of the Service spec
# Can include any fields from https://kubernetes.io/docs/reference/kubernetes-api/service-resources/service-v1/#ServiceSpec
extraServiceSpec: {}

resources: {}
# limits:
# cpu: 250m
Expand Down

0 comments on commit cb5acb4

Please sign in to comment.