forked from bluecmd/kube-service-tunnel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtunnel-router.yaml
35 lines (35 loc) · 892 Bytes
/
tunnel-router.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
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
labels:
k8s-app: tunnel-router
name: tunnel-router
namespace: kube-system
spec:
template:
metadata:
labels:
k8s-app: tunnel-router
spec:
hostNetwork: true
# Needed to inject network interfaces into pods
hostPID: true
# Needed to communicate with docker for network NS resolution
hostIPC: true
containers:
- image: bluecmd/tunnel-router
env:
- name: TUNNEL_ROUTER_MODE
value: 'gre'
imagePullPolicy: Always
name: router
securityContext:
privileged: true
volumeMounts:
- name: run
mountPath: /var/run/docker.sock
volumes:
- name: run
hostPath:
path: /var/run/docker.sock
terminationGracePeriodSeconds: 5