更新部分YAML文件(新增探针相关)

This commit is contained in:
huty 2024-12-18 17:29:00 +00:00 committed by cloud-init created default user
parent 7c44c227c7
commit 5158128582
19 changed files with 535 additions and 0 deletions

View File

@ -31,3 +31,58 @@ spec:
containerPort: 端口号
###### 端口类型
protocol: 该端口号的类型
#### 环境变量
env:
##### 环境变量1
###### 环境变量名称
- name: 环境变量名称
###### 环境变量值
value: 环境变量值
#### 存活探针
livenessProbe:
##### TCP 探针
tcpSocket:
###### TCP 探测端口
port: TCP端口号
##### HTTP 探针
httpGet:
###### HTTP端口号
port: HTTP端口号
###### HTTP路径
path: HTTP路径
##### 命令探针
exec:
###### 需要执行的命令
command:
- 命令1
- 命令2
##### 探测延迟(容器启动后探测开始的延迟时间)(秒)
initialDelaySeconds: 探测延迟
##### 探测间隔(每次探测之间的间隔时间)(秒)
periodSeconds: 探测间隔
##### 探测超时时间(秒)
timeoutSeconds: 探测超时时间
##### 探测失败阈值(探测失败多少次时表示失败)(次数)
failureThreshold: 探测失败阈值
##### 探测成功阈值(探测成功多少次时表示成功)(次数)
successThreshold: 探测成功阈值
#### 就绪探针
readinessProbe:
##### TCP 探针
tcpSocket:
###### TCP 探测端口
port: TCP端口
##### 探测延迟(容器启动后探测开始的延迟时间)(秒)
initialDelaySeconds: 探测延迟
##### 探测间隔(每次探测之间的间隔时间)(秒)
periodSeconds: 探测间隔
#### 启动探针
startupProbe:
##### TCP 探针
tcpSocket:
###### TCP 探测端口
port: TCP端口
##### 探测延迟(容器启动后探测开始的延迟时间)(秒)
initialDelaySeconds: 探测延迟
##### 探测间隔(每次探测之间的间隔时间)(秒)
periodSeconds: 探测间隔

View File

@ -91,6 +91,26 @@ spec:
value: "123456"
- name: CODE
value: "123456"
livenessProbe:
tcpSocket:
port: 3000
initialDelaySeconds: 300
periodSeconds: 10
timeoutSeconds: 30
failureThreshold: 3
successThreshold: 3
readinessProbe:
tcpSocket:
port: 3000
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
startupProbe:
tcpSocket:
port: 3000
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
nodeSelector:
node.k8s.hty1024.com/type: app

View File

@ -169,6 +169,26 @@ spec:
env:
- name: DRAWIO_SERVER_URL
value: "http://localhost:8080"
livenessProbe:
tcpSocket:
port: 8000
initialDelaySeconds: 300
periodSeconds: 10
timeoutSeconds: 30
failureThreshold: 3
successThreshold: 3
readinessProbe:
tcpSocket:
port: 8000
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
startupProbe:
tcpSocket:
port: 8000
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
- name: drawio
image: jgraph/drawio:24.7.17
volumeMounts:
@ -187,6 +207,26 @@ spec:
# value: "http://plantuml-server:8080"
- name: EXPORT_URL
value: "http://localhost:8000"
livenessProbe:
tcpSocket:
port: 8080
initialDelaySeconds: 300
periodSeconds: 10
timeoutSeconds: 30
failureThreshold: 3
successThreshold: 3
readinessProbe:
tcpSocket:
port: 8080
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
startupProbe:
tcpSocket:
port: 8080
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
nodeSelector:
node.k8s.hty1024.com/type: app

View File

@ -158,6 +158,26 @@ spec:
readOnly: true
- name: hty1024-app-gitea-data
mountPath: /data
livenessProbe:
tcpSocket:
port: 3000
initialDelaySeconds: 300
periodSeconds: 10
timeoutSeconds: 30
failureThreshold: 3
successThreshold: 3
readinessProbe:
tcpSocket:
port: 3000
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
startupProbe:
tcpSocket:
port: 3000
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
nodeSelector:
node.k8s.hty1024.com/type: app

View File

@ -173,6 +173,26 @@ spec:
value: "admin"
- name: HALO_CACHE
value: "memory"
livenessProbe:
tcpSocket:
port: 8090
initialDelaySeconds: 300
periodSeconds: 10
timeoutSeconds: 30
failureThreshold: 3
successThreshold: 3
readinessProbe:
tcpSocket:
port: 8090
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
startupProbe:
tcpSocket:
port: 8090
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
nodeSelector:
node.k8s.hty1024.com/type: app

View File

@ -158,6 +158,26 @@ spec:
readOnly: true
- name: hty1024-app-kiwix-serve-data
mountPath: /data
livenessProbe:
tcpSocket:
port: 10080
initialDelaySeconds: 300
periodSeconds: 10
timeoutSeconds: 30
failureThreshold: 3
successThreshold: 3
readinessProbe:
tcpSocket:
port: 10080
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
startupProbe:
tcpSocket:
port: 10080
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
nodeSelector:
node.k8s.hty1024.com/type: app

View File

@ -418,6 +418,26 @@ spec:
value: "replication"
- name: MYSQL_REPLICATION_PASSWORD_FILE
value: "/tmp/secret-volume/replication.key"
livenessProbe:
tcpSocket:
port: 3306
initialDelaySeconds: 300
periodSeconds: 10
timeoutSeconds: 30
failureThreshold: 3
successThreshold: 3
readinessProbe:
tcpSocket:
port: 3306
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
startupProbe:
tcpSocket:
port: 3306
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
nodeSelector:
node.k8s.hty1024.com/type: app
@ -504,5 +524,25 @@ spec:
value: "/tmp/secret-volume/root.key"
- name: MYSQL_REPLICATION_MODE
value: "slave"
livenessProbe:
tcpSocket:
port: 3306
initialDelaySeconds: 300
periodSeconds: 10
timeoutSeconds: 30
failureThreshold: 3
successThreshold: 3
readinessProbe:
tcpSocket:
port: 3306
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
startupProbe:
tcpSocket:
port: 3306
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
nodeSelector:
node.k8s.hty1024.com/type: app

View File

@ -215,6 +215,26 @@ spec:
env:
- name: MYSQL_ROOT_PASSWORD_FILE
value: "/tmp/secret-volume/root.key"
livenessProbe:
tcpSocket:
port: 3306
initialDelaySeconds: 300
periodSeconds: 10
timeoutSeconds: 30
failureThreshold: 3
successThreshold: 3
readinessProbe:
tcpSocket:
port: 3306
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
startupProbe:
tcpSocket:
port: 3306
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
nodeSelector:
node.k8s.hty1024.com/type: app

View File

@ -418,6 +418,26 @@ spec:
value: "replication"
- name: MYSQL_REPLICATION_PASSWORD_FILE
value: "/tmp/secret-volume/replication.key"
livenessProbe:
tcpSocket:
port: 3306
initialDelaySeconds: 300
periodSeconds: 10
timeoutSeconds: 30
failureThreshold: 3
successThreshold: 3
readinessProbe:
tcpSocket:
port: 3306
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
startupProbe:
tcpSocket:
port: 3306
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
nodeSelector:
node.k8s.hty1024.com/type: app
@ -504,5 +524,25 @@ spec:
value: "/tmp/secret-volume/root.key"
- name: MYSQL_REPLICATION_MODE
value: "slave"
livenessProbe:
tcpSocket:
port: 3306
initialDelaySeconds: 300
periodSeconds: 10
timeoutSeconds: 30
failureThreshold: 3
successThreshold: 3
readinessProbe:
tcpSocket:
port: 3306
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
startupProbe:
tcpSocket:
port: 3306
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
nodeSelector:
node.k8s.hty1024.com/type: app

View File

@ -215,6 +215,26 @@ spec:
env:
- name: MYSQL_ROOT_PASSWORD_FILE
value: "/tmp/secret-volume/root.key"
livenessProbe:
tcpSocket:
port: 3306
initialDelaySeconds: 300
periodSeconds: 10
timeoutSeconds: 30
failureThreshold: 3
successThreshold: 3
readinessProbe:
tcpSocket:
port: 3306
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
startupProbe:
tcpSocket:
port: 3306
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
nodeSelector:
node.k8s.hty1024.com/type: app

View File

@ -87,5 +87,25 @@ spec:
value: "test@hty1024.com"
- name: PGADMIN_DEFAULT_PASSWORD
value: "123456"
livenessProbe:
tcpSocket:
port: 80
initialDelaySeconds: 300
periodSeconds: 10
timeoutSeconds: 30
failureThreshold: 3
successThreshold: 3
readinessProbe:
tcpSocket:
port: 80
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
startupProbe:
tcpSocket:
port: 80
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
nodeSelector:
node.k8s.hty1024.com/type: app

View File

@ -85,5 +85,25 @@ spec:
env:
- name: PMA_ARBITRARY
value: "1"
livenessProbe:
tcpSocket:
port: 80
initialDelaySeconds: 300
periodSeconds: 10
timeoutSeconds: 30
failureThreshold: 3
successThreshold: 3
readinessProbe:
tcpSocket:
port: 80
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
startupProbe:
tcpSocket:
port: 80
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
nodeSelector:
node.k8s.hty1024.com/type: app

View File

@ -186,6 +186,26 @@ spec:
env:
- name: POSTGRES_PASSWORD_FILE
value: "/tmp/secret-volume/postgres.key"
livenessProbe:
tcpSocket:
port: 5432
initialDelaySeconds: 300
periodSeconds: 10
timeoutSeconds: 30
failureThreshold: 3
successThreshold: 3
readinessProbe:
tcpSocket:
port: 5432
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
startupProbe:
tcpSocket:
port: 5432
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
nodeSelector:
node.k8s.hty1024.com/type: app

View File

@ -276,6 +276,26 @@ spec:
env:
- name: MYSQL_ROOT_PASSWORD_FILE
value: "/tmp/secret-volume/root.key"
livenessProbe:
tcpSocket:
port: 3306
initialDelaySeconds: 300
periodSeconds: 10
timeoutSeconds: 30
failureThreshold: 3
successThreshold: 3
readinessProbe:
tcpSocket:
port: 3306
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
startupProbe:
tcpSocket:
port: 3306
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
- name: memcached
image: memcached:1.6.32-alpine3.20
ports:
@ -285,6 +305,26 @@ spec:
- name: localtime
mountPath: /etc/localtime
readOnly: true
livenessProbe:
tcpSocket:
port: 11211
initialDelaySeconds: 300
periodSeconds: 10
timeoutSeconds: 30
failureThreshold: 3
successThreshold: 3
readinessProbe:
tcpSocket:
port: 11211
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
startupProbe:
tcpSocket:
port: 11211
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
- name: seafile
image: seafileltd/seafile-mc:11.0.9
ports:
@ -311,6 +351,26 @@ spec:
value: "false"
- name: SEAFILE_SERVER_HOSTNAME
value: "test.hty1024.com"
livenessProbe:
tcpSocket:
port: 80
initialDelaySeconds: 300
periodSeconds: 10
timeoutSeconds: 30
failureThreshold: 3
successThreshold: 3
readinessProbe:
tcpSocket:
port: 80
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
startupProbe:
tcpSocket:
port: 80
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
nodeSelector:
node.k8s.hty1024.com/type: app

View File

@ -161,6 +161,26 @@ spec:
readOnly: true
- name: hty1024-app-trilium-data
mountPath: /home/node/trilium-data
livenessProbe:
tcpSocket:
port: 8080
initialDelaySeconds: 300
periodSeconds: 10
timeoutSeconds: 30
failureThreshold: 3
successThreshold: 3
readinessProbe:
tcpSocket:
port: 8080
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
startupProbe:
tcpSocket:
port: 8080
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
nodeSelector:
node.k8s.hty1024.com/type: app

View File

@ -161,6 +161,26 @@ spec:
env:
- name: SIGNUPS_ALLOWED
value: "false"
livenessProbe:
tcpSocket:
port: 80
initialDelaySeconds: 300
periodSeconds: 10
timeoutSeconds: 30
failureThreshold: 3
successThreshold: 3
readinessProbe:
tcpSocket:
port: 80
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
startupProbe:
tcpSocket:
port: 80
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
nodeSelector:
node.k8s.hty1024.com/type: app

View File

@ -171,6 +171,26 @@ spec:
value: "123456"
- name: DB_NAME
value: "wikijs"
livenessProbe:
tcpSocket:
port: 3000
initialDelaySeconds: 300
periodSeconds: 10
timeoutSeconds: 30
failureThreshold: 3
successThreshold: 3
readinessProbe:
tcpSocket:
port: 3000
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
startupProbe:
tcpSocket:
port: 3000
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
nodeSelector:
node.k8s.hty1024.com/type: app

View File

@ -158,6 +158,26 @@ spec:
readOnly: true
- name: hty1024-app-wiznote-data
mountPath: /wiz/storage
livenessProbe:
tcpSocket:
port: 80
initialDelaySeconds: 300
periodSeconds: 10
timeoutSeconds: 30
failureThreshold: 3
successThreshold: 3
readinessProbe:
tcpSocket:
port: 80
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
startupProbe:
tcpSocket:
port: 80
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
nodeSelector:
node.k8s.hty1024.com/type: app

View File

@ -309,6 +309,26 @@ spec:
value: "xbrowsersync"
- name: XBS_DB_PASSWORD
value: "123456"
livenessProbe:
tcpSocket:
port: 27017
initialDelaySeconds: 300
periodSeconds: 10
timeoutSeconds: 30
failureThreshold: 3
successThreshold: 3
readinessProbe:
tcpSocket:
port: 27017
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
startupProbe:
tcpSocket:
port: 27017
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
- name: xbrowsersync
image: xbrowsersync/api:1.1.13
ports:
@ -327,6 +347,26 @@ spec:
value: "xbrowsersync"
- name: XBROWSERSYNC_DB_PWD
value: "123456"
livenessProbe:
tcpSocket:
port: 8080
initialDelaySeconds: 300
periodSeconds: 10
timeoutSeconds: 30
failureThreshold: 3
successThreshold: 3
readinessProbe:
tcpSocket:
port: 8080
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
startupProbe:
tcpSocket:
port: 8080
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 3
nodeSelector:
node.k8s.hty1024.com/type: app