Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
DolphinScheduler
提交
223fe993
DolphinScheduler
项目概览
apache
/
DolphinScheduler
上一次同步 1 年多
通知
704
Star
9572
Fork
3514
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
DolphinScheduler
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
223fe993
编写于
2月 05, 2021
作者:
S
Shiwen Cheng
提交者:
GitHub
2月 05, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[1.3.5-prepare][Improvement][K8s] Improve k8s for helm and update readme (#4697)
上级
03c8bedd
变更
18
展开全部
隐藏空白更改
内联
并排
Showing
18 changed file
with
193 addition
and
486 deletion
+193
-486
docker/kubernetes/dolphinscheduler/Chart.yaml
docker/kubernetes/dolphinscheduler/Chart.yaml
+6
-6
docker/kubernetes/dolphinscheduler/README.md
docker/kubernetes/dolphinscheduler/README.md
+24
-34
docker/kubernetes/dolphinscheduler/requirements.yaml
docker/kubernetes/dolphinscheduler/requirements.yaml
+0
-25
docker/kubernetes/dolphinscheduler/templates/NOTES.txt
docker/kubernetes/dolphinscheduler/templates/NOTES.txt
+3
-16
docker/kubernetes/dolphinscheduler/templates/configmap-dolphinscheduler-master.yaml
...cheduler/templates/configmap-dolphinscheduler-master.yaml
+0
-1
docker/kubernetes/dolphinscheduler/templates/configmap-dolphinscheduler-resource.yaml
...eduler/templates/configmap-dolphinscheduler-resource.yaml
+10
-13
docker/kubernetes/dolphinscheduler/templates/configmap-dolphinscheduler-worker.yaml
...cheduler/templates/configmap-dolphinscheduler-worker.yaml
+0
-1
docker/kubernetes/dolphinscheduler/templates/deployment-dolphinscheduler-alert.yaml
...cheduler/templates/deployment-dolphinscheduler-alert.yaml
+5
-34
docker/kubernetes/dolphinscheduler/templates/deployment-dolphinscheduler-api.yaml
...nscheduler/templates/deployment-dolphinscheduler-api.yaml
+43
-34
docker/kubernetes/dolphinscheduler/templates/deployment-dolphinscheduler-frontend.yaml
...duler/templates/deployment-dolphinscheduler-frontend.yaml
+0
-102
docker/kubernetes/dolphinscheduler/templates/ingress.yaml
docker/kubernetes/dolphinscheduler/templates/ingress.yaml
+1
-1
docker/kubernetes/dolphinscheduler/templates/pvc-dolphinscheduler-alert.yaml
...olphinscheduler/templates/pvc-dolphinscheduler-alert.yaml
+1
-1
docker/kubernetes/dolphinscheduler/templates/pvc-dolphinscheduler-api.yaml
.../dolphinscheduler/templates/pvc-dolphinscheduler-api.yaml
+1
-1
docker/kubernetes/dolphinscheduler/templates/secret-resource-s3.yaml
...rnetes/dolphinscheduler/templates/secret-resource-s3.yaml
+8
-14
docker/kubernetes/dolphinscheduler/templates/statefulset-dolphinscheduler-master.yaml
...eduler/templates/statefulset-dolphinscheduler-master.yaml
+11
-63
docker/kubernetes/dolphinscheduler/templates/statefulset-dolphinscheduler-worker.yaml
...eduler/templates/statefulset-dolphinscheduler-worker.yaml
+45
-65
docker/kubernetes/dolphinscheduler/templates/svc-dolphinscheduler-worker-headless.yaml
...duler/templates/svc-dolphinscheduler-worker-headless.yaml
+2
-2
docker/kubernetes/dolphinscheduler/values.yaml
docker/kubernetes/dolphinscheduler/values.yaml
+33
-73
未找到文件。
docker/kubernetes/dolphinscheduler/Chart.yaml
浏览文件 @
223fe993
...
...
@@ -22,7 +22,7 @@ home: https://dolphinscheduler.apache.org
icon
:
https://dolphinscheduler.apache.org/img/hlogo_colorful.svg
keywords
:
-
dolphinscheduler
-
S
cheduler
-
s
cheduler
# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
...
...
@@ -35,18 +35,18 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version
:
1.
0
.0
version
:
1.
1
.0
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
appVersion
:
1.3.
0
appVersion
:
1.3.
5
dependencies
:
-
name
:
postgresql
version
:
8
.x.x
version
:
10
.x.x
repository
:
https://charts.bitnami.com/bitnami
condition
:
postgresql.enabled
-
name
:
zookeeper
version
:
5
.x.x
version
:
6
.x.x
repository
:
https://charts.bitnami.com/bitnami
condition
:
redis
.enabled
condition
:
zookeeper
.enabled
docker/kubernetes/dolphinscheduler/README.md
浏览文件 @
223fe993
此差异已折叠。
点击以展开。
docker/kubernetes/dolphinscheduler/requirements.yaml
已删除
100644 → 0
浏览文件 @
03c8bedd
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
dependencies
:
-
name
:
postgresql
version
:
8.x.x
repository
:
https://charts.bitnami.com/bitnami
condition
:
postgresql.enabled
-
name
:
zookeeper
version
:
5.x.x
repository
:
https://charts.bitnami.com/bitnami
condition
:
redis.enabled
\ No newline at end of file
docker/kubernetes/dolphinscheduler/templates/NOTES.txt
浏览文件 @
223fe993
...
...
@@ -15,9 +15,9 @@
# limitations under the License.
#
** Please be patient while the chart is being deployed **
** Please be patient while the chart
Dolphinscheduler {{ .Chart.AppVersion }}
is being deployed **
1.
Get the Dolphinscheduler URL by running:
Get the Dolphinscheduler URL by running:
{{- if .Values.ingress.enabled }}
...
...
@@ -26,19 +26,6 @@
{{- else }}
kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "dolphinscheduler.fullname" . }}-frontend 8888:8888
{{- end }}
2. Get the Dolphinscheduler URL by running:
{{- if .Values.ingress.enabled }}
export HOSTNAME=$(kubectl get ingress --namespace {{ .Release.Namespace }} {{ template "dolphinscheduler.fullname" . }} -o jsonpath='{.spec.rules[0].host}')
echo "Dolphinscheduler URL: http://$HOSTNAME/"
{{- else }}
kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "dolphinscheduler.fullname" . }}-frontend 8888:8888
kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "dolphinscheduler.fullname" . }}-api 12345:12345
{{- end }}
\ No newline at end of file
docker/kubernetes/dolphinscheduler/templates/configmap-dolphinscheduler-master.yaml
浏览文件 @
223fe993
...
...
@@ -32,5 +32,4 @@ data:
MASTER_MAX_CPULOAD_AVG
:
{{
.Values.master.configmap.MASTER_MAX_CPULOAD_AVG | quote
}}
MASTER_RESERVED_MEMORY
:
{{
.Values.master.configmap.MASTER_RESERVED_MEMORY | quote
}}
MASTER_LISTEN_PORT
:
{{
.Values.master.configmap.MASTER_LISTEN_PORT | quote
}}
DOLPHINSCHEDULER_DATA_BASEDIR_PATH
:
{{
include "dolphinscheduler.worker.base.dir" . | quote
}}
{{
- end
}}
\ No newline at end of file
docker/kubernetes/dolphinscheduler/templates/
pvc-dolphinscheduler-frontend
.yaml
→
docker/kubernetes/dolphinscheduler/templates/
configmap-dolphinscheduler-resource
.yaml
浏览文件 @
223fe993
...
...
@@ -14,22 +14,19 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
{{
- if .Values.
frontend.persistentVolumeClaim.enabled
}}
{{
- if .Values.
resource
}}
apiVersion
:
v1
kind
:
PersistentVolumeClaim
kind
:
ConfigMap
metadata
:
name
:
{{
include "dolphinscheduler.fullname" .
}}
-
frontend
name
:
{{
include "dolphinscheduler.fullname" .
}}
-
resource
labels
:
app.kubernetes.io/name
:
{{
include "dolphinscheduler.fullname" .
}}
-
frontend
app.kubernetes.io/name
:
{{
include "dolphinscheduler.fullname" .
}}
-
resource
app.kubernetes.io/instance
:
{{
.Release.Name
}}
app.kubernetes.io/managed-by
:
{{
.Release.Service
}}
spec
:
accessModes
:
{{
- range .Values.frontend.persistentVolumeClaim.accessModes
}}
-
{{
. | quote
}}
{{
- end
}}
storageClassName
:
{{
.Values.frontend.persistentVolumeClaim.storageClassName | quote
}}
resources
:
requests
:
storage
:
{{
.Values.frontend.persistentVolumeClaim.storage | quote
}}
data
:
RESOURCE_STORAGE_TYPE
:
{{
.Values.resource.resourceStorageType | quote
}}
RESOURCE_UPLOAD_PATH
:
{{
.Values.resource.resourceUploadPath | quote
}}
FS_DEFAULT_FS
:
{{
.Values.resource.fsDefaultFS | quote
}}
FS_S3A_ENDPOINT
:
{{
.Values.resource.fsS3aEndpoint | quote
}}
FS_S3A_ACCESS_KEY
:
{{
.Values.resource.fsS3aAccessKey | quote
}}
{{
- end
}}
\ No newline at end of file
docker/kubernetes/dolphinscheduler/templates/configmap-dolphinscheduler-worker.yaml
浏览文件 @
223fe993
...
...
@@ -26,7 +26,6 @@ metadata:
data
:
WORKER_EXEC_THREADS
:
{{
.Values.worker.configmap.WORKER_EXEC_THREADS | quote
}}
WORKER_HEARTBEAT_INTERVAL
:
{{
.Values.worker.configmap.WORKER_HEARTBEAT_INTERVAL | quote
}}
WORKER_FETCH_TASK_NUM
:
{{
.Values.worker.configmap.WORKER_FETCH_TASK_NUM | quote
}}
WORKER_MAX_CPULOAD_AVG
:
{{
.Values.worker.configmap.WORKER_MAX_CPULOAD_AVG | quote
}}
WORKER_RESERVED_MEMORY
:
{{
.Values.worker.configmap.WORKER_RESERVED_MEMORY | quote
}}
WORKER_LISTEN_PORT
:
{{
.Values.worker.configmap.WORKER_LISTEN_PORT | quote
}}
...
...
docker/kubernetes/dolphinscheduler/templates/deployment-dolphinscheduler-alert.yaml
浏览文件 @
223fe993
...
...
@@ -53,35 +53,6 @@ spec:
{{
- if .Values.alert.tolerations
}}
tolerations
:
{{
- toYaml . | nindent 8
}}
{{
- end
}}
initContainers
:
-
name
:
init-postgresql
image
:
busybox:1.31.0
command
:
-
/bin/sh
-
-ec
-
|
while ! nc -z ${POSTGRESQL_HOST} ${POSTGRESQL_PORT}; do
counter=$((counter+1))
if [ $counter == 5 ]; then
echo "Error: Couldn't connect to postgresql."
exit 1
fi
echo "Trying to connect to postgresql at ${POSTGRESQL_HOST}:${POSTGRESQL_PORT}. Attempt $counter."
sleep 60
done
env
:
-
name
:
POSTGRESQL_HOST
{{
- if .Values.postgresql.enabled
}}
value
:
{{
template "dolphinscheduler.postgresql.fullname" .
}}
{{
- else
}}
value
:
{{
.Values.externalDatabase.host | quote
}}
{{
- end
}}
-
name
:
POSTGRESQL_PORT
{{
- if .Values.postgresql.enabled
}}
value
:
"
5432"
{{
- else
}}
value
:
{{
.Values.externalDatabase.port
}}
{{
- end
}}
containers
:
-
name
:
{{
include "dolphinscheduler.fullname" .
}}
-alert
image
:
{{
include "dolphinscheduler.image.repository" . | quote
}}
...
...
@@ -161,25 +132,25 @@ spec:
configMapKeyRef
:
key
:
ENTERPRISE_WECHAT_USERS
name
:
{{
include "dolphinscheduler.fullname" .
}}
-alert
-
name
:
POSTGRESQL
_HOST
-
name
:
DATABASE
_HOST
{{
- if .Values.postgresql.enabled
}}
value
:
{{
template "dolphinscheduler.postgresql.fullname" .
}}
{{
- else
}}
value
:
{{
.Values.externalDatabase.host | quote
}}
{{
- end
}}
-
name
:
POSTGRESQL
_PORT
-
name
:
DATABASE
_PORT
{{
- if .Values.postgresql.enabled
}}
value
:
"
5432"
{{
- else
}}
value
:
{{
.Values.externalDatabase.port
}}
{{
- end
}}
-
name
:
POSTGRESQL
_USERNAME
-
name
:
DATABASE
_USERNAME
{{
- if .Values.postgresql.enabled
}}
value
:
{{
.Values.postgresql.postgresqlUsername
}}
{{
- else
}}
value
:
{{
.Values.externalDatabase.username | quote
}}
{{
- end
}}
-
name
:
POSTGRESQL
_PASSWORD
-
name
:
DATABASE
_PASSWORD
valueFrom
:
secretKeyRef
:
{{
- if .Values.postgresql.enabled
}}
...
...
@@ -189,7 +160,7 @@ spec:
name
:
{{
printf "%s-%s" .Release.Name "externaldb"
}}
key
:
db-password
{{
- end
}}
-
name
:
POSTGRESQL
_DATABASE
-
name
:
DATABASE
_DATABASE
{{
- if .Values.postgresql.enabled
}}
value
:
{{
.Values.postgresql.postgresqlDatabase
}}
{{
- else
}}
...
...
docker/kubernetes/dolphinscheduler/templates/deployment-dolphinscheduler-api.yaml
浏览文件 @
223fe993
...
...
@@ -53,35 +53,6 @@ spec:
{{
- if .Values.api.tolerations
}}
tolerations
:
{{
- toYaml . | nindent 8
}}
{{
- end
}}
initContainers
:
-
name
:
init-postgresql
image
:
busybox:1.31.0
command
:
-
/bin/sh
-
-ec
-
|
while ! nc -z ${POSTGRESQL_HOST} ${POSTGRESQL_PORT}; do
counter=$((counter+1))
if [ $counter == 5 ]; then
echo "Error: Couldn't connect to postgresql."
exit 1
fi
echo "Trying to connect to postgresql at ${POSTGRESQL_HOST}:${POSTGRESQL_PORT}. Attempt $counter."
sleep 60
done
env
:
-
name
:
POSTGRESQL_HOST
{{
- if .Values.postgresql.enabled
}}
value
:
{{
template "dolphinscheduler.postgresql.fullname" .
}}
{{
- else
}}
value
:
{{
.Values.externalDatabase.host | quote
}}
{{
- end
}}
-
name
:
POSTGRESQL_PORT
{{
- if .Values.postgresql.enabled
}}
value
:
"
5432"
{{
- else
}}
value
:
{{
.Values.externalDatabase.port
}}
{{
- end
}}
containers
:
-
name
:
{{
include "dolphinscheduler.fullname" .
}}
-api
image
:
{{
include "dolphinscheduler.image.repository" . | quote
}}
...
...
@@ -94,25 +65,25 @@ spec:
env
:
-
name
:
TZ
value
:
{{
.Values.timezone
}}
-
name
:
POSTGRESQL
_HOST
-
name
:
DATABASE
_HOST
{{
- if .Values.postgresql.enabled
}}
value
:
{{
template "dolphinscheduler.postgresql.fullname" .
}}
{{
- else
}}
value
:
{{
.Values.externalDatabase.host | quote
}}
{{
- end
}}
-
name
:
POSTGRESQL
_PORT
-
name
:
DATABASE
_PORT
{{
- if .Values.postgresql.enabled
}}
value
:
"
5432"
{{
- else
}}
value
:
{{
.Values.externalDatabase.port
}}
{{
- end
}}
-
name
:
POSTGRESQL
_USERNAME
-
name
:
DATABASE
_USERNAME
{{
- if .Values.postgresql.enabled
}}
value
:
{{
.Values.postgresql.postgresqlUsername
}}
{{
- else
}}
value
:
{{
.Values.externalDatabase.username | quote
}}
{{
- end
}}
-
name
:
POSTGRESQL
_PASSWORD
-
name
:
DATABASE
_PASSWORD
valueFrom
:
secretKeyRef
:
{{
- if .Values.postgresql.enabled
}}
...
...
@@ -122,7 +93,7 @@ spec:
name
:
{{
printf "%s-%s" .Release.Name "externaldb"
}}
key
:
db-password
{{
- end
}}
-
name
:
POSTGRESQL
_DATABASE
-
name
:
DATABASE
_DATABASE
{{
- if .Values.postgresql.enabled
}}
value
:
{{
.Values.postgresql.postgresqlDatabase
}}
{{
- else
}}
...
...
@@ -134,6 +105,44 @@ spec:
{{
- else
}}
value
:
{{
.Values.externalZookeeper.zookeeperQuorum
}}
{{
- end
}}
-
name
:
ZOOKEEPER_ROOT
{{
- if .Values.zookeeper.enabled
}}
value
:
{{
.Values.zookeeper.zookeeperRoot
}}
{{
- else
}}
value
:
{{
.Values.externalZookeeper.zookeeperRoot
}}
{{
- end
}}
-
name
:
RESOURCE_STORAGE_TYPE
valueFrom
:
configMapKeyRef
:
key
:
RESOURCE_STORAGE_TYPE
name
:
{{
include "dolphinscheduler.fullname" .
}}
-resource
-
name
:
RESOURCE_UPLOAD_PATH
valueFrom
:
configMapKeyRef
:
key
:
RESOURCE_UPLOAD_PATH
name
:
{{
include "dolphinscheduler.fullname" .
}}
-resource
-
name
:
FS_DEFAULT_FS
valueFrom
:
configMapKeyRef
:
key
:
FS_DEFAULT_FS
name
:
{{
include "dolphinscheduler.fullname" .
}}
-resource
{{
- if eq .Values.resource.resourceStorageType "S3"
}}
-
name
:
FS_S3A_ENDPOINT
valueFrom
:
configMapKeyRef
:
key
:
FS_S3A_ENDPOINT
name
:
{{
include "dolphinscheduler.fullname" .
}}
-resource
-
name
:
FS_S3A_ACCESS_KEY
valueFrom
:
configMapKeyRef
:
key
:
FS_S3A_ACCESS_KEY
name
:
{{
include "dolphinscheduler.fullname" .
}}
-resource
-
name
:
FS_S3A_SECRET_KEY
valueFrom
:
secretKeyRef
:
key
:
fs-s3a-secret-key
name
:
{{
printf "%s-%s" .Release.Name "resource-s3"
}}
{{
- end
}}
{{
- if .Values.api.livenessProbe.enabled
}}
livenessProbe
:
tcpSocket
:
...
...
docker/kubernetes/dolphinscheduler/templates/deployment-dolphinscheduler-frontend.yaml
已删除
100644 → 0
浏览文件 @
03c8bedd
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
{{
include "dolphinscheduler.fullname" .
}}
-frontend
labels
:
app.kubernetes.io/name
:
{{
include "dolphinscheduler.fullname" .
}}
-frontend
app.kubernetes.io/instance
:
{{
.Release.Name
}}
app.kubernetes.io/managed-by
:
{{
.Release.Service
}}
app.kubernetes.io/component
:
frontend
spec
:
replicas
:
{{
.Values.frontend.replicas
}}
selector
:
matchLabels
:
app.kubernetes.io/name
:
{{
include "dolphinscheduler.fullname" .
}}
-frontend
app.kubernetes.io/instance
:
{{
.Release.Name
}}
app.kubernetes.io/managed-by
:
{{
.Release.Service
}}
app.kubernetes.io/component
:
frontend
strategy
:
type
:
{{
.Values.frontend.strategy.type | quote
}}
rollingUpdate
:
maxSurge
:
{{
.Values.frontend.strategy.rollingUpdate.maxSurge | quote
}}
maxUnavailable
:
{{
.Values.frontend.strategy.rollingUpdate.maxUnavailable | quote
}}
template
:
metadata
:
labels
:
app.kubernetes.io/name
:
{{
include "dolphinscheduler.fullname" .
}}
-frontend
app.kubernetes.io/instance
:
{{
.Release.Name
}}
app.kubernetes.io/managed-by
:
{{
.Release.Service
}}
app.kubernetes.io/component
:
frontend
spec
:
{{
- if .Values.frontend.affinity
}}
affinity
:
{{
- toYaml .Values.frontend.affinity | nindent 8
}}
{{
- end
}}
{{
- if .Values.frontend.nodeSelector
}}
nodeSelector
:
{{
- toYaml .Values.frontend.nodeSelector | nindent 8
}}
{{
- end
}}
{{
- if .Values.frontend.tolerations
}}
tolerations
:
{{
- toYaml . | nindent 8
}}
{{
- end
}}
containers
:
-
name
:
{{
include "dolphinscheduler.fullname" .
}}
-frontend
image
:
{{
include "dolphinscheduler.image.repository" . | quote
}}
args
:
-
"
frontend"
ports
:
-
containerPort
:
8888
name
:
tcp-port
imagePullPolicy
:
{{
.Values.image.pullPolicy
}}
env
:
-
name
:
TZ
value
:
{{
.Values.timezone
}}
-
name
:
FRONTEND_API_SERVER_HOST
value
:
'
{{
include
"dolphinscheduler.fullname"
.
}}-api'
-
name
:
FRONTEND_API_SERVER_PORT
value
:
"
12345"
{{
- if .Values.frontend.livenessProbe.enabled
}}
livenessProbe
:
tcpSocket
:
port
:
8888
initialDelaySeconds
:
{{
.Values.frontend.livenessProbe.initialDelaySeconds
}}
periodSeconds
:
{{
.Values.frontend.livenessProbe.periodSeconds
}}
timeoutSeconds
:
{{
.Values.frontend.livenessProbe.timeoutSeconds
}}
successThreshold
:
{{
.Values.frontend.livenessProbe.successThreshold
}}
failureThreshold
:
{{
.Values.frontend.livenessProbe.failureThreshold
}}
{{
- end
}}
{{
- if .Values.frontend.readinessProbe.enabled
}}
readinessProbe
:
tcpSocket
:
port
:
8888
initialDelaySeconds
:
{{
.Values.frontend.readinessProbe.initialDelaySeconds
}}
periodSeconds
:
{{
.Values.frontend.readinessProbe.periodSeconds
}}
timeoutSeconds
:
{{
.Values.frontend.readinessProbe.timeoutSeconds
}}
successThreshold
:
{{
.Values.frontend.readinessProbe.successThreshold
}}
failureThreshold
:
{{
.Values.frontend.readinessProbe.failureThreshold
}}
{{
- end
}}
volumeMounts
:
-
mountPath
:
"
/var/log/nginx"
name
:
{{
include "dolphinscheduler.fullname" .
}}
-frontend
volumes
:
-
name
:
{{
include "dolphinscheduler.fullname" .
}}
-frontend
{{
- if .Values.frontend.persistentVolumeClaim.enabled
}}
persistentVolumeClaim
:
claimName
:
{{
include "dolphinscheduler.fullname" .
}}
-frontend
{{
- else
}}
emptyDir
:
{}
{{
- end
}}
\ No newline at end of file
docker/kubernetes/dolphinscheduler/templates/ingress.yaml
浏览文件 @
223fe993
...
...
@@ -30,7 +30,7 @@ spec:
paths
:
-
path
:
{{
.Values.ingress.path
}}
backend
:
serviceName
:
{{
include "dolphinscheduler.fullname" .
}}
-
frontend
serviceName
:
{{
include "dolphinscheduler.fullname" .
}}
-
api
servicePort
:
tcp-port
{{
- if .Values.ingress.tls.enabled
}}
tls
:
...
...
docker/kubernetes/dolphinscheduler/templates/pvc-dolphinscheduler-alert.yaml
浏览文件 @
223fe993
...
...
@@ -25,7 +25,7 @@ metadata:
app.kubernetes.io/managed-by
:
{{
.Release.Service
}}
spec
:
accessModes
:
{{
- range .Values.alert.persistentVolumeClaim.accessModes
}}
{{
- range .Values.alert.persistentVolumeClaim.accessModes
}}
-
{{
. | quote
}}
{{
- end
}}
storageClassName
:
{{
.Values.alert.persistentVolumeClaim.storageClassName | quote
}}
...
...
docker/kubernetes/dolphinscheduler/templates/pvc-dolphinscheduler-api.yaml
浏览文件 @
223fe993
...
...
@@ -25,7 +25,7 @@ metadata:
app.kubernetes.io/managed-by
:
{{
.Release.Service
}}
spec
:
accessModes
:
{{
- range .Values.api.persistentVolumeClaim.accessModes
}}
{{
- range .Values.api.persistentVolumeClaim.accessModes
}}
-
{{
. | quote
}}
{{
- end
}}
storageClassName
:
{{
.Values.api.persistentVolumeClaim.storageClassName | quote
}}
...
...
docker/kubernetes/dolphinscheduler/templates/s
vc-dolphinscheduler-frontend
.yaml
→
docker/kubernetes/dolphinscheduler/templates/s
ecret-resource-s3
.yaml
浏览文件 @
223fe993
...
...
@@ -14,22 +14,16 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
{{
- if eq .Values.resource.resourceStorageType "S3"
}}
apiVersion
:
v1
kind
:
Se
rvice
kind
:
Se
cret
metadata
:
name
:
{{
include "dolphinscheduler.fullname" .
}}
-frontend
name
:
{{
printf "%s-%s" .Release.Name "resource-s3"
}}
labels
:
app.kubernetes.io/name
:
{{
include "dolphinscheduler.fullname" .
}}
-
frontend
app.kubernetes.io/name
:
{{
include "dolphinscheduler.fullname" .
}}
-
resource-s3
app.kubernetes.io/instance
:
{{
.Release.Name
}}
app.kubernetes.io/managed-by
:
{{
.Release.Service
}}
spec
:
ports
:
-
port
:
8888
targetPort
:
tcp-port
protocol
:
TCP
name
:
tcp-port
selector
:
app.kubernetes.io/name
:
{{
include "dolphinscheduler.fullname" .
}}
-frontend
app.kubernetes.io/instance
:
{{
.Release.Name
}}
app.kubernetes.io/managed-by
:
{{
.Release.Service
}}
app.kubernetes.io/component
:
frontend
\ No newline at end of file
type
:
Opaque
data
:
fs-s3a-secret-key
:
{{
.Values.resource.fsS3aSecretKey | b64enc | quote
}}
{{
- end
}}
\ No newline at end of file
docker/kubernetes/dolphinscheduler/templates/statefulset-dolphinscheduler-master.yaml
浏览文件 @
223fe993
...
...
@@ -50,59 +50,6 @@ spec:
{{
- if .Values.master.tolerations
}}
tolerations
:
{{
- toYaml . | nindent 8
}}
{{
- end
}}
initContainers
:
-
name
:
init-zookeeper
image
:
busybox:1.31.0
command
:
-
/bin/sh
-
-ec
-
|
echo "${ZOOKEEPER_QUORUM}" | awk -F ',' 'BEGIN{ i=1 }{ while( i <= NF ){ print $i; i++ } }' | while read line; do
while ! nc -z ${line%:*} ${line#*:}; do
counter=$((counter+1))
if [ $counter == 5 ]; then
echo "Error: Couldn't connect to zookeeper."
exit 1
fi
echo "Trying to connect to zookeeper at ${line}. Attempt $counter."
sleep 60
done
done
env
:
-
name
:
ZOOKEEPER_QUORUM
{{
- if .Values.zookeeper.enabled
}}
value
:
"
{{
template
"dolphinscheduler.zookeeper.quorum" . }}"
{{
- else
}}
value
:
{{
.Values.externalZookeeper.zookeeperQuorum
}}
{{
- end
}}
-
name
:
init-postgresql
image
:
busybox:1.31.0
command
:
-
/bin/sh
-
-ec
-
|
while ! nc -z ${POSTGRESQL_HOST} ${POSTGRESQL_PORT}; do
counter=$((counter+1))
if [ $counter == 5 ]; then
echo "Error: Couldn't connect to postgresql."
exit 1
fi
echo "Trying to connect to postgresql at ${POSTGRESQL_HOST}:${POSTGRESQL_PORT}. Attempt $counter."
sleep 60
done
env
:
-
name
:
POSTGRESQL_HOST
{{
- if .Values.postgresql.enabled
}}
value
:
{{
template "dolphinscheduler.postgresql.fullname" .
}}
{{
- else
}}
value
:
{{
.Values.externalDatabase.host | quote
}}
{{
- end
}}
-
name
:
POSTGRESQL_PORT
{{
- if .Values.postgresql.enabled
}}
value
:
"
5432"
{{
- else
}}
value
:
{{
.Values.externalDatabase.port
}}
{{
- end
}}
containers
:
-
name
:
{{
include "dolphinscheduler.fullname" .
}}
-master
image
:
{{
include "dolphinscheduler.image.repository" . | quote
}}
...
...
@@ -155,30 +102,25 @@ spec:
configMapKeyRef
:
name
:
{{
include "dolphinscheduler.fullname" .
}}
-master
key
:
MASTER_LISTEN_PORT
-
name
:
DOLPHINSCHEDULER_DATA_BASEDIR_PATH
valueFrom
:
configMapKeyRef
:
name
:
{{
include "dolphinscheduler.fullname" .
}}
-master
key
:
DOLPHINSCHEDULER_DATA_BASEDIR_PATH
-
name
:
POSTGRESQL_HOST
-
name
:
DATABASE_HOST
{{
- if .Values.postgresql.enabled
}}
value
:
{{
template "dolphinscheduler.postgresql.fullname" .
}}
{{
- else
}}
value
:
{{
.Values.externalDatabase.host | quote
}}
{{
- end
}}
-
name
:
POSTGRESQL
_PORT
-
name
:
DATABASE
_PORT
{{
- if .Values.postgresql.enabled
}}
value
:
"
5432"
{{
- else
}}
value
:
{{
.Values.externalDatabase.port
}}
{{
- end
}}
-
name
:
POSTGRESQL
_USERNAME
-
name
:
DATABASE
_USERNAME
{{
- if .Values.postgresql.enabled
}}
value
:
{{
.Values.postgresql.postgresqlUsername
}}
{{
- else
}}
value
:
{{
.Values.externalDatabase.username | quote
}}
{{
- end
}}
-
name
:
POSTGRESQL
_PASSWORD
-
name
:
DATABASE
_PASSWORD
valueFrom
:
secretKeyRef
:
{{
- if .Values.postgresql.enabled
}}
...
...
@@ -188,7 +130,7 @@ spec:
name
:
{{
printf "%s-%s" .Release.Name "externaldb"
}}
key
:
db-password
{{
- end
}}
-
name
:
POSTGRESQL
_DATABASE
-
name
:
DATABASE
_DATABASE
{{
- if .Values.postgresql.enabled
}}
value
:
{{
.Values.postgresql.postgresqlDatabase
}}
{{
- else
}}
...
...
@@ -200,6 +142,12 @@ spec:
{{
- else
}}
value
:
{{
.Values.externalZookeeper.zookeeperQuorum
}}
{{
- end
}}
-
name
:
ZOOKEEPER_ROOT
{{
- if .Values.zookeeper.enabled
}}
value
:
{{
.Values.zookeeper.zookeeperRoot
}}
{{
- else
}}
value
:
{{
.Values.externalZookeeper.zookeeperRoot
}}
{{
- end
}}
{{
- if .Values.master.livenessProbe.enabled
}}
livenessProbe
:
exec
:
...
...
docker/kubernetes/dolphinscheduler/templates/statefulset-dolphinscheduler-worker.yaml
浏览文件 @
223fe993
...
...
@@ -50,59 +50,6 @@ spec:
{{
- if .Values.worker.tolerations
}}
tolerations
:
{{
- toYaml . | nindent 8
}}
{{
- end
}}
initContainers
:
-
name
:
init-zookeeper
image
:
busybox:1.31.0
command
:
-
/bin/sh
-
-ec
-
|
echo "${ZOOKEEPER_QUORUM}" | awk -F ',' 'BEGIN{ i=1 }{ while( i <= NF ){ print $i; i++ } }' | while read line; do
while ! nc -z ${line%:*} ${line#*:}; do
counter=$((counter+1))
if [ $counter == 5 ]; then
echo "Error: Couldn't connect to zookeeper."
exit 1
fi
echo "Trying to connect to zookeeper at ${line}. Attempt $counter."
sleep 60
done
done
env
:
-
name
:
ZOOKEEPER_QUORUM
{{
- if .Values.zookeeper.enabled
}}
value
:
"
{{
template
"dolphinscheduler.zookeeper.quorum" . }}"
{{
- else
}}
value
:
{{
.Values.externalZookeeper.zookeeperQuorum
}}
{{
- end
}}
-
name
:
init-postgresql
image
:
busybox:1.31.0
command
:
-
/bin/sh
-
-ec
-
|
while ! nc -z ${POSTGRESQL_HOST} ${POSTGRESQL_PORT}; do
counter=$((counter+1))
if [ $counter == 5 ]; then
echo "Error: Couldn't connect to postgresql."
exit 1
fi
echo "Trying to connect to postgresql at ${POSTGRESQL_HOST}:${POSTGRESQL_PORT}. Attempt $counter."
sleep 60
done
env
:
-
name
:
POSTGRESQL_HOST
{{
- if .Values.postgresql.enabled
}}
value
:
{{
template "dolphinscheduler.postgresql.fullname" .
}}
{{
- else
}}
value
:
{{
.Values.externalDatabase.host | quote
}}
{{
- end
}}
-
name
:
POSTGRESQL_PORT
{{
- if .Values.postgresql.enabled
}}
value
:
"
5432"
{{
- else
}}
value
:
{{
.Values.externalDatabase.port
}}
{{
- end
}}
containers
:
-
name
:
{{
include "dolphinscheduler.fullname" .
}}
-worker
image
:
{{
include "dolphinscheduler.image.repository" . | quote
}}
...
...
@@ -112,7 +59,7 @@ spec:
-
containerPort
:
{{
.Values.worker.configmap.WORKER_LISTEN_PORT
}}
name
:
"
worker-port"
-
containerPort
:
50051
name
:
"
log
s
-port"
name
:
"
log
ger
-port"
imagePullPolicy
:
{{
.Values.image.pullPolicy
}}
env
:
-
name
:
TZ
...
...
@@ -122,11 +69,6 @@ spec:
configMapKeyRef
:
name
:
{{
include "dolphinscheduler.fullname" .
}}
-worker
key
:
WORKER_EXEC_THREADS
-
name
:
WORKER_FETCH_TASK_NUM
valueFrom
:
configMapKeyRef
:
name
:
{{
include "dolphinscheduler.fullname" .
}}
-worker
key
:
WORKER_FETCH_TASK_NUM
-
name
:
WORKER_HEARTBEAT_INTERVAL
valueFrom
:
configMapKeyRef
:
...
...
@@ -155,27 +97,27 @@ spec:
-
name
:
DOLPHINSCHEDULER_DATA_BASEDIR_PATH
valueFrom
:
configMapKeyRef
:
name
:
{{
include "dolphinscheduler.fullname" .
}}
-
mast
er
name
:
{{
include "dolphinscheduler.fullname" .
}}
-
work
er
key
:
DOLPHINSCHEDULER_DATA_BASEDIR_PATH
-
name
:
POSTGRESQL
_HOST
-
name
:
DATABASE
_HOST
{{
- if .Values.postgresql.enabled
}}
value
:
{{
template "dolphinscheduler.postgresql.fullname" .
}}
{{
- else
}}
value
:
{{
.Values.externalDatabase.host | quote
}}
{{
- end
}}
-
name
:
POSTGRESQL
_PORT
-
name
:
DATABASE
_PORT
{{
- if .Values.postgresql.enabled
}}
value
:
"
5432"
{{
- else
}}
value
:
{{
.Values.externalDatabase.port
}}
{{
- end
}}
-
name
:
POSTGRESQL
_USERNAME
-
name
:
DATABASE
_USERNAME
{{
- if .Values.postgresql.enabled
}}
value
:
{{
.Values.postgresql.postgresqlUsername
}}
{{
- else
}}
value
:
{{
.Values.externalDatabase.username | quote
}}
{{
- end
}}
-
name
:
POSTGRESQL
_PASSWORD
-
name
:
DATABASE
_PASSWORD
valueFrom
:
secretKeyRef
:
{{
- if .Values.postgresql.enabled
}}
...
...
@@ -185,7 +127,7 @@ spec:
name
:
{{
printf "%s-%s" .Release.Name "externaldb"
}}
key
:
db-password
{{
- end
}}
-
name
:
POSTGRESQL
_DATABASE
-
name
:
DATABASE
_DATABASE
{{
- if .Values.postgresql.enabled
}}
value
:
{{
.Values.postgresql.postgresqlDatabase
}}
{{
- else
}}
...
...
@@ -197,6 +139,44 @@ spec:
{{
- else
}}
value
:
{{
.Values.externalZookeeper.zookeeperQuorum
}}
{{
- end
}}
-
name
:
ZOOKEEPER_ROOT
{{
- if .Values.zookeeper.enabled
}}
value
:
{{
.Values.zookeeper.zookeeperRoot
}}
{{
- else
}}
value
:
{{
.Values.externalZookeeper.zookeeperRoot
}}
{{
- end
}}
-
name
:
RESOURCE_STORAGE_TYPE
valueFrom
:
configMapKeyRef
:
key
:
RESOURCE_STORAGE_TYPE
name
:
{{
include "dolphinscheduler.fullname" .
}}
-resource
-
name
:
RESOURCE_UPLOAD_PATH
valueFrom
:
configMapKeyRef
:
key
:
RESOURCE_UPLOAD_PATH
name
:
{{
include "dolphinscheduler.fullname" .
}}
-resource
-
name
:
FS_DEFAULT_FS
valueFrom
:
configMapKeyRef
:
key
:
FS_DEFAULT_FS
name
:
{{
include "dolphinscheduler.fullname" .
}}
-resource
{{
- if eq .Values.resource.resourceStorageType "S3"
}}
-
name
:
FS_S3A_ENDPOINT
valueFrom
:
configMapKeyRef
:
key
:
FS_S3A_ENDPOINT
name
:
{{
include "dolphinscheduler.fullname" .
}}
-resource
-
name
:
FS_S3A_ACCESS_KEY
valueFrom
:
configMapKeyRef
:
key
:
FS_S3A_ACCESS_KEY
name
:
{{
include "dolphinscheduler.fullname" .
}}
-resource
-
name
:
FS_S3A_SECRET_KEY
valueFrom
:
secretKeyRef
:
key
:
fs-s3a-secret-key
name
:
{{
printf "%s-%s" .Release.Name "resource-s3"
}}
{{
- end
}}
{{
- if .Values.worker.livenessProbe.enabled
}}
livenessProbe
:
exec
:
...
...
docker/kubernetes/dolphinscheduler/templates/svc-dolphinscheduler-worker-headless.yaml
浏览文件 @
223fe993
...
...
@@ -30,9 +30,9 @@ spec:
protocol
:
TCP
name
:
worker-port
-
port
:
50051
targetPort
:
log
s
-port
targetPort
:
log
ger
-port
protocol
:
TCP
name
:
log
s
-port
name
:
log
ger
-port
selector
:
app.kubernetes.io/name
:
{{
include "dolphinscheduler.fullname" .
}}
-worker
app.kubernetes.io/instance
:
{{
.Release.Name
}}
...
...
docker/kubernetes/dolphinscheduler/values.yaml
浏览文件 @
223fe993
...
...
@@ -55,21 +55,28 @@ externalDatabase:
# If not exists external zookeeper, by default, Dolphinscheduler's zookeeper will use it.
zookeeper
:
enabled
:
true
taskQueue
:
"
zookeeper"
config
:
ZOO_4LW_COMMANDS_WHITELIST
:
srvr,ruok,wchs,cons
fourlwCommandsWhitelist
:
srvr,ruok,wchs,cons
service
:
port
:
"
2181"
persistence
:
enabled
:
false
size
:
"
20Gi"
storageClass
:
"
-"
zookeeperRoot
:
/dolphinscheduler
# If exists external zookeeper, and set zookeeper.enable value to false.
# If zookeeper.enable is false, Dolphinscheduler's zookeeper will use it.
externalZookeeper
:
taskQueue
:
"
zookeeper"
zookeeperQuorum
:
"
127.0.0.1:2181"
zookeeperRoot
:
/dolphinscheduler
resource
:
resourceStorageType
:
"
HDFS"
resourceUploadPath
:
"
/dolphinscheduler"
fsDefaultFS
:
"
file:///"
fsS3aEndpoint
:
"
s3.xxx.amazonaws.com"
fsS3aAccessKey
:
"
xxxxxxx"
fsS3aSecretKey
:
"
xxxxxxx"
master
:
podManagementPolicy
:
"
Parallel"
...
...
@@ -85,8 +92,6 @@ master:
# If specified, the pod's scheduling constraints.
# More info: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.17/#affinity-v1-core
affinity
:
{}
## Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated.
## More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
configmap
:
MASTER_EXEC_THREADS
:
"
100"
MASTER_EXEC_TASK_NUM
:
"
20"
...
...
@@ -96,6 +101,8 @@ master:
MASTER_MAX_CPULOAD_AVG
:
"
100"
MASTER_RESERVED_MEMORY
:
"
0.1"
MASTER_LISTEN_PORT
:
"
5678"
## Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated.
## More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
livenessProbe
:
enabled
:
true
initialDelaySeconds
:
"
30"
...
...
@@ -137,6 +144,25 @@ worker:
# If specified, the pod's scheduling constraints.
# More info: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.17/#affinity-v1-core
affinity
:
{}
configmap
:
WORKER_EXEC_THREADS
:
"
100"
WORKER_HEARTBEAT_INTERVAL
:
"
10"
WORKER_MAX_CPULOAD_AVG
:
"
100"
WORKER_RESERVED_MEMORY
:
"
0.1"
WORKER_LISTEN_PORT
:
"
1234"
WORKER_GROUP
:
"
default"
DOLPHINSCHEDULER_DATA_BASEDIR_PATH
:
"
/tmp/dolphinscheduler"
DOLPHINSCHEDULER_ENV
:
-
"
export
HADOOP_HOME=/opt/soft/hadoop"
-
"
export
HADOOP_CONF_DIR=/opt/soft/hadoop/etc/hadoop"
-
"
export
SPARK_HOME1=/opt/soft/spark1"
-
"
export
SPARK_HOME2=/opt/soft/spark2"
-
"
export
PYTHON_HOME=/usr/bin/python"
-
"
export
JAVA_HOME=/usr/lib/jvm/java-1.8-openjdk"
-
"
export
HIVE_HOME=/opt/soft/hive"
-
"
export
FLINK_HOME=/opt/soft/flink"
-
"
export
DATAX_HOME=/opt/soft/datax/bin/datax.py"
-
"
export
PATH=$HADOOP_HOME/bin:$SPARK_HOME1/bin:$SPARK_HOME2/bin:$PYTHON_HOME:$JAVA_HOME/bin:$HIVE_HOME/bin:$FLINK_HOME/bin:$PATH"
## Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated.
## More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
livenessProbe
:
...
...
@@ -155,25 +181,6 @@ worker:
timeoutSeconds
:
"
5"
failureThreshold
:
"
3"
successThreshold
:
"
1"
configmap
:
WORKER_EXEC_THREADS
:
"
100"
WORKER_HEARTBEAT_INTERVAL
:
"
10"
WORKER_FETCH_TASK_NUM
:
"
3"
WORKER_MAX_CPULOAD_AVG
:
"
100"
WORKER_RESERVED_MEMORY
:
"
0.1"
WORKER_LISTEN_PORT
:
"
1234"
WORKER_GROUP
:
"
default"
DOLPHINSCHEDULER_DATA_BASEDIR_PATH
:
"
/tmp/dolphinscheduler"
DOLPHINSCHEDULER_ENV
:
-
"
export
HADOOP_HOME=/opt/soft/hadoop"
-
"
export
HADOOP_CONF_DIR=/opt/soft/hadoop/etc/hadoop"
-
"
export
SPARK_HOME1=/opt/soft/spark1"
-
"
export
SPARK_HOME2=/opt/soft/spark2"
-
"
export
PYTHON_HOME=/opt/soft/python"
-
"
export
JAVA_HOME=/opt/soft/java"
-
"
export
HIVE_HOME=/opt/soft/hive"
-
"
export
FLINK_HOME=/opt/soft/flink"
-
"
export
PATH=$HADOOP_HOME/bin:$SPARK_HOME1/bin:$SPARK_HOME2/bin:$PYTHON_HOME:$JAVA_HOME/bin:$HIVE_HOME/bin:$FLINK_HOME/bin:$PATH"
## volumeClaimTemplates is a list of claims that pods are allowed to reference.
## The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod.
## Every claim in this list must have at least one matching (by name) volumeMount in one container in the template.
...
...
@@ -213,8 +220,6 @@ alert:
# If specified, the pod's scheduling constraints.
# More info: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.17/#affinity-v1-core
affinity
:
{}
## Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated.
## More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
configmap
:
XLS_FILE_PATH
:
"
/tmp/xls"
MAIL_SERVER_HOST
:
"
"
...
...
@@ -230,51 +235,6 @@ alert:
ENTERPRISE_WECHAT_SECRET
:
"
"
ENTERPRISE_WECHAT_AGENT_ID
:
"
"
ENTERPRISE_WECHAT_USERS
:
"
"
livenessProbe
:
enabled
:
true
initialDelaySeconds
:
"
30"
periodSeconds
:
"
30"
timeoutSeconds
:
"
5"
failureThreshold
:
"
3"
successThreshold
:
"
1"
## Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated.
## More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
readinessProbe
:
enabled
:
true
initialDelaySeconds
:
"
30"
periodSeconds
:
"
30"
timeoutSeconds
:
"
5"
failureThreshold
:
"
3"
successThreshold
:
"
1"
## volumeClaimTemplates is a list of claims that pods are allowed to reference.
## The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod.
## Every claim in this list must have at least one matching (by name) volumeMount in one container in the template.
## A claim in this list takes precedence over any volumes in the template, with the same name.
persistentVolumeClaim
:
enabled
:
false
accessModes
:
-
"
ReadWriteOnce"
storageClassName
:
"
-"
storage
:
"
20Gi"
api
:
strategy
:
type
:
"
RollingUpdate"
rollingUpdate
:
maxSurge
:
"
25%"
maxUnavailable
:
"
25%"
replicas
:
"
1"
# NodeSelector is a selector which must be true for the pod to fit on a node.
# Selector which must match a node's labels for the pod to be scheduled on that node.
# More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
nodeSelector
:
{}
# Tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission,
# effectively unioning the set of nodes tolerated by the pod and the RuntimeClass.
tolerations
:
[]
# Affinity is a group of affinity scheduling rules.
# If specified, the pod's scheduling constraints.
# More info: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.17/#affinity-v1-core
affinity
:
{}
## Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated.
## More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
livenessProbe
:
...
...
@@ -304,7 +264,7 @@ api:
storageClassName
:
"
-"
storage
:
"
20Gi"
frontend
:
api
:
strategy
:
type
:
"
RollingUpdate"
rollingUpdate
:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录