Skip to content

Commit

Permalink
chore: update xline pod of ci,add probe,volume and security config.
Browse files Browse the repository at this point in the history
Signed-off-by: Lan Liang <[email protected]>
  • Loading branch information
liangyuanpeng committed Mar 30, 2024
1 parent eadf2d9 commit 25ee523
Showing 1 changed file with 41 additions and 7 deletions.
48 changes: 41 additions & 7 deletions ci/artifacts/xline-pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,46 @@ metadata:
namespace: kube-system
spec:
containers:
- name: xline
image: ghcr.io/xline-kv/xline:master
imagePullPolicy: IfNotPresent
command:
- /bin/sh
- -c
- xline --name node1 --members node1=kind-control-plane:2379 --data-dir /tmp/xline --storage-engine rocksdb --client-listen-urls=http://kind-control-plane:2379 --peer-listen-urls=http://kind-control-plane:2380,http://kind-control-plane:2381 --client-advertise-urls=http://kind-control-plane:2379 --peer-advertise-urls=http://kind-control-plane:2380,http://kind-control-plane:2381
- name: xline
image: ghcr.io/xline-kv/xline:master
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 8
httpGet:
host: 127.0.0.1
path: /metrics
port: 9100
scheme: HTTP
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 15
startupProbe:
failureThreshold: 24
httpGet:
host: 127.0.0.1
path: /metrics
port: 9100
scheme: HTTP
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 15
volumeMounts:
- mountPath: /var/lib/xline
name: xline-data
command:
- xline
- --name node1
- --members node1=kind-control-plane:2379
- --data-dir /var/lib/xline
- --storage-engine rocksdb
- --client-listen-urls=http://kind-control-plane:2379
- --peer-listen-urls=http://kind-control-plane:2380,http://kind-control-plane:2381
- --client-advertise-urls=http://kind-control-plane:2379
- --peer-advertise-urls=http://kind-control-plane:2380,http://kind-control-plane:2381
hostNetwork: true
priority: 2000001000
priorityClassName: system-node-critical
securityContext:
seccompProfile:
type: RuntimeDefault
status: {}

0 comments on commit 25ee523

Please sign in to comment.