From 5508d73127e05db594a8762da17d10f3d3a84a4e Mon Sep 17 00:00:00 2001 From: momothereal Date: Sat, 26 Oct 2019 16:17:53 -0400 Subject: [PATCH] Deploy ts using nodeport because DO doesnt support UDP LB --- teamspeak/chart/teamspeak/templates/service.yaml | 5 +++-- teamspeak/chart/teamspeak/values.yaml | 8 +++++--- 2 files changed, 8 insertions(+), 5 deletions(-) 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: {}