-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add network-controller server k8s daemonset
- Loading branch information
Showing
2 changed files
with
85 additions
and
0 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
deploy/kubernetes/apps/network-controller/server/tcp-daemonset.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
48 changes: 48 additions & 0 deletions
48
deploy/kubernetes/apps/network-controller/server/unix-daemonset.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |