forked from nicolaka/netshoot
-
Notifications
You must be signed in to change notification settings - Fork 2
/
netshoot-calico.yaml
61 lines (60 loc) · 1.5 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
59
60
---
# NOTE: use apps/v1beta1 before 1.9.x and apps/v1beta2 before v1.16.x
apiVersion: apps/v1
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: ""