Skip to content

Commit

Permalink
Merge pull request #9 from linkernetworks/sufuf3/add-k8syaml
Browse files Browse the repository at this point in the history
Add network-controller & vortex server k8s yaml files

Former-commit-id: e768502e46424bb6303590f288eef6f58b51ef65 [formerly 3f81acc]
Former-commit-id: c538c226d476403042bfde1258281883cb18fd73
  • Loading branch information
John-Lin authored Jun 20, 2018
2 parents ebe0819 + b3eff58 commit fc2f434
Show file tree
Hide file tree
Showing 4 changed files with 121 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
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

0 comments on commit fc2f434

Please sign in to comment.