[Fix-10652] fix docker-compose.yml (#10653)

* [Fix-10652] fix docker-compose.yml

* [Fix-10652] fix docker-stack.yml

* [Fix-10652] fix python api port in k8s config

* Update deploy/kubernetes/dolphinscheduler/templates/deployment-dolphinscheduler-api.yaml

Co-authored-by: Jiajie Zhong <zhongjiajie955@gmail.com>

* [Fix-10652] fix { { to {{

* [Fix-10652] del space between {{ and -

Co-authored-by: Jiajie Zhong <zhongjiajie955@gmail.com>
This commit is contained in:
Lyle Shaw 2022-06-30 15:43:19 +08:00 committed by caishunfeng
parent 4e282782f0
commit c3425715a0
4 changed files with 11 additions and 0 deletions

View File

@ -71,6 +71,7 @@ services:
image: ${HUB}/dolphinscheduler-api:${TAG}
ports:
- "12345:12345"
- "25333:25333"
profiles: ["all"]
env_file: .env
healthcheck:

View File

@ -50,6 +50,7 @@ services:
image: apache/dolphinscheduler-api
ports:
- 12345:12345
- 25333:25333
env_file: .env
healthcheck:
test: [ "CMD", "curl", "http://localhost:12345/actuator/health" ]

View File

@ -62,6 +62,8 @@ spec:
ports:
- containerPort: 12345
name: "api-port"
- containerPort: 25333
name: "python-api-port"
env:
- name: TZ
value: {{ .Values.timezone }}

View File

@ -40,6 +40,13 @@ spec:
{{- end }}
protocol: TCP
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 }}
{{- end }}
protocol: TCP
name: python-api-port
{{- if .Values.api.service.externalIPs }}
externalIPs:
{{- toYaml .Values.api.service.externalIPs | nindent 4 }}