Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
java-spring-oidc-example
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
demo
java-spring-oidc-example
Commits
2c3ca6de
Commit
2c3ca6de
authored
Sep 18, 2019
by
陈健
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加探针
parent
ae68cadc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
77 additions
and
0 deletions
+77
-0
deployment.yaml
charts/templates/deployment.yaml
+22
-0
values-dev.yaml
charts/values-dev.yaml
+17
-0
values-prod.yaml
charts/values-prod.yaml
+19
-0
values-test.yaml
charts/values-test.yaml
+19
-0
No files found.
charts/templates/deployment.yaml
View file @
2c3ca6de
...
...
@@ -28,6 +28,28 @@ spec:
-
name
:
http
containerPort
:
8080
protocol
:
TCP
{{
- if .Values.livenessProbe.enabled
}}
livenessProbe
:
initialDelaySeconds
:
{{
.Values.livenessProbe.initialDelaySeconds
}}
periodSeconds
:
{{
.Values.livenessProbe.periodSeconds
}}
timeoutSeconds
:
{{
.Values.livenessProbe.timeoutSeconds
}}
successThreshold
:
{{
.Values.livenessProbe.successThreshold
}}
failureThreshold
:
{{
.Values.livenessProbe.failureThreshold
}}
httpGet
:
path
:
{{
.Values.livenessProbe.path
}}
port
:
http
{{
- end
}}
{{
- if .Values.readinessProbe.enabled
}}
readinessProbe
:
initialDelaySeconds
:
{{
.Values.readinessProbe.initialDelaySeconds
}}
periodSeconds
:
{{
.Values.readinessProbe.periodSeconds
}}
timeoutSeconds
:
{{
.Values.readinessProbe.timeoutSeconds
}}
successThreshold
:
{{
.Values.readinessProbe.successThreshold
}}
failureThreshold
:
{{
.Values.readinessProbe.failureThreshold
}}
httpGet
:
path
:
{{
.Values.readinessProbe.path
}}
port
:
http
{{
- end
}}
volumeMounts
:
-
name
:
docker-sock-file
mountPath
:
/var/run/docker.sock
# docker sock文件
...
...
charts/values-dev.yaml
View file @
2c3ca6de
...
...
@@ -65,3 +65,20 @@ nodeSelector: {}
volumes
:
hostPath
:
path
:
/var/vcap/sys/run/docker/docker.sock
livenessProbe
:
# 存活探针
enabled
:
true
path
:
/health
# 心跳检测的接口,默认都是httpGet请求
initialDelaySeconds
:
5
# 容器启动后第一次执行探测是需要等待多少秒。
periodSeconds
:
30
# 执行探测的频率。默认是10秒,最小1秒。
timeoutSeconds
:
5
# 探测超时时间。默认1秒,最小1秒。
successThreshold
:
1
# 探测失败后,最少连续探测成功多少次才被认定为成功。默认是1
failureThreshold
:
5
# 探测成功后,最少连续探测失败多少次才被认定为失败。默认是3
readinessProbe
:
# 就绪探针
enabled
:
true
path
:
/health
# 心跳检测的接口,默认都是httpGet请求
initialDelaySeconds
:
10
periodSeconds
:
10
timeoutSeconds
:
5
successThreshold
:
1
failureThreshold
:
5
charts/values-prod.yaml
View file @
2c3ca6de
...
...
@@ -60,3 +60,21 @@ nodeSelector: {}
volumes
:
hostPath
:
path
:
/var/vcap/sys/run/docker/docker.sock
livenessProbe
:
# 存活探针
enabled
:
true
path
:
/health
# 心跳检测的接口,默认都是httpGet请求
initialDelaySeconds
:
5
# 容器启动后第一次执行探测是需要等待多少秒。
periodSeconds
:
30
# 执行探测的频率。默认是10秒,最小1秒。
timeoutSeconds
:
5
# 探测超时时间。默认1秒,最小1秒。
successThreshold
:
1
# 探测失败后,最少连续探测成功多少次才被认定为成功。默认是1
failureThreshold
:
5
# 探测成功后,最少连续探测失败多少次才被认定为失败。默认是3
readinessProbe
:
# 就绪探针
enabled
:
true
path
:
/health
# 心跳检测的接口,默认都是httpGet请求
initialDelaySeconds
:
10
periodSeconds
:
10
timeoutSeconds
:
5
successThreshold
:
1
failureThreshold
:
5
\ No newline at end of file
charts/values-test.yaml
View file @
2c3ca6de
...
...
@@ -58,3 +58,21 @@ nodeSelector: {}
volumes
:
hostPath
:
path
:
/var/vcap/sys/run/docker/docker.sock
livenessProbe
:
# 存活探针
enabled
:
true
path
:
/health
# 心跳检测的接口,默认都是httpGet请求
initialDelaySeconds
:
5
# 容器启动后第一次执行探测是需要等待多少秒。
periodSeconds
:
30
# 执行探测的频率。默认是10秒,最小1秒。
timeoutSeconds
:
5
# 探测超时时间。默认1秒,最小1秒。
successThreshold
:
1
# 探测失败后,最少连续探测成功多少次才被认定为成功。默认是1
failureThreshold
:
5
# 探测成功后,最少连续探测失败多少次才被认定为失败。默认是3
readinessProbe
:
# 就绪探针
enabled
:
true
path
:
/health
# 心跳检测的接口,默认都是httpGet请求
initialDelaySeconds
:
10
periodSeconds
:
10
timeoutSeconds
:
5
successThreshold
:
1
failureThreshold
:
5
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment