forked from ihcsim/routeguide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
k8s-client.yaml
39 lines (39 loc) · 930 Bytes
/
k8s-client.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
kind: Pod
apiVersion: v1
metadata:
name: rg-client
labels:
app: rg-client
annotations:
linkerd.io/inject: enabled
spec:
restartPolicy: OnFailure
containers:
- name: rg-client
image: routeguide
imagePullPolicy: Never
envFrom:
- configMapRef:
name: rg-client-config
command:
- /bin/bash
- "-c"
- |
/rg-client -server=${SERVER_HOST}:${SERVER_PORT} -timeout=${GRPC_TIMEOUT} -mode=${MODE} -n=${MAX_REPEAT} -api=${REMOTE_API} -n=${MAX_REPEAT} -enable-load-balancing=${ENABLE_LOAD_BALANCING} -resolver=${RESOLVER_TYPE} -wait=${WAIT_TIME}
---
kind: ConfigMap
apiVersion: v1
metadata:
name: rg-client-config
labels:
app: rg-client
data:
SERVER_HOST: rg-server.default.svc.cluster.local
SERVER_PORT: "80"
GRPC_TIMEOUT: 60s
MODE: repeatn
MAX_REPEAT: "5000000"
REMOTE_API: RouteChat
ENABLE_LOAD_BALANCING: "false"
RESOLVER_TYPE: dns
WAIT_TIME: "250"