Skip to content

Commit

Permalink
Add network-controller server k8s daemonset
Browse files Browse the repository at this point in the history
  • Loading branch information
sufuf3 committed Jun 19, 2018
1 parent 345f29d commit 6e04800
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: network-controller-server-tcp
namespace: vortex
spec:
selector:
matchLabels:
name: network-controller-server-tcp
template:
metadata:
labels:
name: network-controller-server-tcp
spec:
tolerations:
- key: node-role.kubernetes.io/master
effect: NoSchedule
containers:
- name: network-controller-server-tcp
image: sdnvortex/network-controller:latest
securityContext:
privileged: true
command: ["/go/bin/server"]
args: ["-tcp=0.0.0.0:50051"]
volumeMounts:
- mountPath: /var/run/docker.sock
name: docker-sock
- mountPath: /var/run/openvswitch/db.sock
name: ovs-sock
volumes:
- name: docker-sock
hostPath:
path: /run/docker.sock
- name: ovs-sock
hostPath:
path: /run/openvswitch/db.sock
hostNetwork: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: network-controller-server-unix
namespace: default
spec:
selector:
matchLabels:
name: network-controller-server-unix
template:
metadata:
labels:
name: network-controller-server-unix
spec:
tolerations:
- key: node-role.kubernetes.io/master
effect: NoSchedule
containers:
- name: network-controller-server-unix
image: sdnvortex/network-controller:latest
securityContext:
privileged: true
command: ["/go/bin/server"]
args: ["-unix=/tmp/vortex.sock", "-netlink-gc"]
volumeMounts:
- mountPath: /var/run/docker/netns:shared
name: docker-ns
#mountPropagation: Bidirectional
- mountPath: /var/run/docker.sock
name: docker-sock
- mountPath: /var/run/openvswitch/db.sock
name: ovs-sock
- mountPath: /tmp/
name: grpc-sock
volumes:
- name: docker-ns
hostPath:
path: /run/docker/netns
- name: docker-sock
hostPath:
path: /run/docker.sock
- name: ovs-sock
hostPath:
path: /run/openvswitch/db.sock
- name: grpc-sock
hostPath:
path: /tmp/vortex
hostNetwork: true

0 comments on commit 6e04800

Please sign in to comment.