-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathadsc-deployment.yaml
More file actions
81 lines (81 loc) · 1.87 KB
/
Copy pathadsc-deployment.yaml
File metadata and controls
81 lines (81 loc) · 1.87 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
apiVersion: apps/v1
kind: Deployment
metadata:
name: adsc-load
labels:
app: adsc-load
spec:
replicas: 1
template:
metadata:
name: adsc-load
annotations:
sidecar.istio.io/inject: "false"
prometheus.io/scrape: "true"
prometheus.io/port: "8765"
labels:
app: adsc-load
spec:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
namespaces: [istio-system]
labelSelector:
matchExpressions:
- key: app
operator: In
values:
- istiod
topologyKey: kubernetes.io/hostname
# May take a while to shut down
terminationGracePeriodSeconds: 2000
containers:
- name: pilot-load
image: gcr.io/howardjohn-istio/pilot-load
imagePullPolicy: Always
args:
- "adsc"
- "--pilot-address=istiod.istio-system:15010"
- "--adsc.count=10000"
- "--qps=500"
env:
- name: KUBECONFIG
value: /etc/config/kubeconfig/kubeconfig.yaml
resources:
requests:
cpu: 4000m
memory: 4Gi
volumeMounts:
- name: kubeconfig
mountPath: /etc/config/kubeconfig
volumes:
- name: kubeconfig
configMap:
name: pilot-load-kubeconfig
selector:
matchLabels:
app: adsc-load
---
apiVersion: v1
kind: ConfigMap
metadata:
name: pilot-load-kubeconfig
data:
kubeconfig.yaml: |
apiVersion: v1
clusters:
- cluster:
server: http://apiserver.pilot-load:18090
name: load
contexts:
- context:
cluster: load
user: fake
name: load
current-context: load
kind: Config
preferences: {}
users:
- name: fake