diff --git a/teamspeak/chart/teamspeak/templates/service.yaml b/teamspeak/chart/teamspeak/templates/service.yaml index 302f168..de60541 100644 --- a/teamspeak/chart/teamspeak/templates/service.yaml +++ b/teamspeak/chart/teamspeak/templates/service.yaml @@ -10,10 +10,11 @@ metadata: spec: type: {{ .Values.service.type }} ports: - - targetPort: 9987 + - nodePort: {{ .Values.service.nodePort }} + targetPort: 9987 protocol: UDP name: teamspeak-voice - port: {{ .Values.service.port }} + port: 9987 selector: app: teamspeak release: {{ .Release.Name }} diff --git a/teamspeak/chart/teamspeak/values.yaml b/teamspeak/chart/teamspeak/values.yaml index a87a68f..ccb47e4 100644 --- a/teamspeak/chart/teamspeak/values.yaml +++ b/teamspeak/chart/teamspeak/values.yaml @@ -6,8 +6,8 @@ image: podAnnotations: {} service: - type: LoadBalancer - port: 9987 + type: NodePort + port: 30987 resources: limits: @@ -17,7 +17,9 @@ resources: cpu: 100m memory: 256Mi -nodeSelector: {} +nodeSelector: + teamspeak: "1" + tolerations: [] affinity: {}