You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by ke...@apache.org on 2022/11/03 09:47:19 UTC
[dolphinscheduler] branch dev updated: Add pythonNodePort in config file (#12685)
This is an automated email from the ASF dual-hosted git repository.
kezhenxu94 pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/dev by this push:
new 6766ec04df Add pythonNodePort in config file (#12685)
6766ec04df is described below
commit 6766ec04df8bed87425174609e21752844a9ca34
Author: 旺阳 <qi...@cisco.com>
AuthorDate: Thu Nov 3 17:47:06 2022 +0800
Add pythonNodePort in config file (#12685)
---
.../dolphinscheduler/templates/svc-dolphinscheduler-api.yaml | 6 +++---
deploy/kubernetes/dolphinscheduler/values.yaml | 4 +++-
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/deploy/kubernetes/dolphinscheduler/templates/svc-dolphinscheduler-api.yaml b/deploy/kubernetes/dolphinscheduler/templates/svc-dolphinscheduler-api.yaml
index 92445d14be..3ef36af9a0 100644
--- a/deploy/kubernetes/dolphinscheduler/templates/svc-dolphinscheduler-api.yaml
+++ b/deploy/kubernetes/dolphinscheduler/templates/svc-dolphinscheduler-api.yaml
@@ -42,8 +42,8 @@ spec:
name: api-port
- port: 25333
targetPort: python-api-port
- {{- if and (eq .Values.api.service.type "NodePort") .Values.api.service.nodePort }}
- nodePort: {{ .Values.api.service.nodePort }}
+ {{- if and (eq .Values.api.service.type "NodePort") .Values.api.service.pythonNodePort }}
+ nodePort: {{ .Values.api.service.pythonNodePort }}
{{- end }}
protocol: TCP
name: python-api-port
@@ -58,4 +58,4 @@ spec:
loadBalancerIP: {{ .Values.api.service.loadBalancerIP }}
{{- end }}
selector:
- {{- include "dolphinscheduler.api.labels" . | nindent 4 }}
\ No newline at end of file
+ {{- include "dolphinscheduler.api.labels" . | nindent 4 }}
diff --git a/deploy/kubernetes/dolphinscheduler/values.yaml b/deploy/kubernetes/dolphinscheduler/values.yaml
index 3b9c1d7b06..1feca32b64 100644
--- a/deploy/kubernetes/dolphinscheduler/values.yaml
+++ b/deploy/kubernetes/dolphinscheduler/values.yaml
@@ -499,8 +499,10 @@ api:
type: "ClusterIP"
## clusterIP is the IP address of the service and is usually assigned randomly by the master
clusterIP: ""
- ## nodePort is the port on each node on which this service is exposed when type=NodePort
+ ## nodePort is the port on each node on which this api service is exposed when type=NodePort
nodePort: ""
+ ## pythonNodePort is the port on each node on which this python api service is exposed when type=NodePort
+ pythonNodePort: ""
## externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service
externalIPs: []
## externalName is the external reference that kubedns or equivalent will return as a CNAME record for this service, requires Type to be ExternalName