forked from nicolaka/netshoot
-
Notifications
You must be signed in to change notification settings - Fork 1
/
netshoot-calico.yaml
59 lines (58 loc) · 1.47 KB
/
netshoot-calico.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
apiVersion: apps/v1beta2 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
namespace: kube-system
name: netshoot-calico-deploy
labels:
app: netshoot-calico
spec:
selector:
matchLabels:
app: netshoot
strategy:
type: Recreate
template:
metadata:
labels:
app: netshoot
spec:
serviceAccount: cni-plugin
serviceAccountName: cni-plugin
hostNetwork: true
containers:
- image: nicolaka/netshoot
name: netshoot
command: ["ping","localhost"]
volumeMounts:
- mountPath: /calico-secrets
name: etcd-certs
- mountPath: /var/run/calico/bird.ctl
name: bird-ctl
env:
- name: ETCD_ENDPOINTS
value: "https://localhost:12378"
- name: ETCD_CA_CERT_FILE
valueFrom:
configMapKeyRef:
key: etcd_ca
name: calico-config
- name: ETCD_KEY_FILE
valueFrom:
configMapKeyRef:
key: etcd_key
name: calico-config
- name: ETCD_CERT_FILE
valueFrom:
configMapKeyRef:
key: etcd_cert
name: calico-config
volumes:
- name: etcd-certs
secret:
defaultMode: 420
secretName: calico-etcd-secrets
- name: bird-ctl
hostPath:
path: /var/run/calico/bird.ctl
nodeSelector:
node-role.kubernetes.io/master: ""