Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add network-controller & vortex server k8s yaml files #9

Merged
merged 2 commits into from
Jun 20, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
21 changes: 21 additions & 0 deletions deploy/kubernetes/apps/vortex/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: vortex-server
labels:
app: vortex-server
spec:
replicas: 1
selector:
matchLabels:
app: vortex-server
template:
metadata:
labels:
app: vortex-server
spec:
containers:
- name: vortex-server
image: sdnvortex/vortex:latest
ports:
- containerPort: 7890
15 changes: 15 additions & 0 deletions deploy/kubernetes/apps/vortex/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
kind: Service
apiVersion: v1
metadata:
name: vortex-server
labels:
app: vortex-server
spec:
selector:
app: vortex-server
ports:
- protocol: TCP
port: 7890
targetPort: 7890
name: vortex-server
clusterIP: None