-
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.
Merge pull request #9 from linkernetworks/sufuf3/add-k8syaml
Add network-controller & vortex server k8s yaml files Former-commit-id: e768502e46424bb6303590f288eef6f58b51ef65 [formerly e768502e46424bb6303590f288eef6f58b51ef65 [formerly 3f81acc]] Former-commit-id: c538c226d476403042bfde1258281883cb18fd73 Former-commit-id: fc2f434
- Loading branch information
Showing
4 changed files
with
121 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 |
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,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 |
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,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 |