-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.yaml
64 lines (62 loc) · 2.07 KB
/
config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
plugins:
- name: kubectl-proxy
binary:
path: /usr/local/bin/kubectl
version: "1.0.0"
args: ["proxy", "--port=8080"]
env: ["ENV_VAR=value"]
permissions: "700"
description: "This is kubectl proxy plugin"
- name: http_probe
config:
endpoints:
- url: "http://localhost:8080" # 目标 URL
method: "GET" # HTTP 方法
# headers: # 请求头
# Content-Type: "application/json"
# Authorization: "Bearer your_token"
timeout: 30 # 超时时间(秒)
expectedStatusCode: 200 # 预期的 HTTP 状态码
storageConfig: # 存储配置
type: InKube
inKube:
#annotationKey: http_probe
target:
group: game.kruise.io
version: v1alpha1
resource: gameservers
name: ${SELF:POD_NAME}
namespace: ${SELF:POD_NAMESPACE}
jsonPath: /spec/opsState
markerPolices:
- state: idle
labels:
gameserver-idle: 'true'
annotations:
controller.kubernetes.io/pod-deletion-cost: '-10'
- state: allocated
labels:
gameserver-idle: 'false'
annotations:
controller.kubernetes.io/pod-deletion-cost: '10'
# jsonPathConfig: # JSONPath 配置
# path: "$.store.book[*].author"
# expectedValue: "John Doe"
bootOrder: 1
# - name: hot_update
# config:
# loadPatchType: "signal"
# fileDir: "/app/downloads"
# signal:
# signalName: "SIGHUP"
# processName: "nginx: master process nginx"
# storageConfig: # 存储配置
# type: InKube
# inKube:
# annotationKey: "sidecar.vke.volcengine.com/hot-update-result"
# bootOrder: 1
restartPolicy: Always
resources:
CPU: 100m
Memory: 128Mi
sidecarStartOrder: Before