Skip to content

Commit

Permalink
Add server daemonset yaml template files
Browse files Browse the repository at this point in the history
- Add tcp & unix with namespace vortex
  • Loading branch information
sufuf3 committed Jun 7, 2018
1 parent 6d7d3ce commit 1ae7dbb
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
32 changes: 32 additions & 0 deletions deploy/server/tcp-daemonset.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: network-controller-server-tcp
namespace: vortex
labels:
k8s-app: network-server-tcp
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: linker/net-controller-server:latest
command: ["./network-controller-server"]
args: ["-tcp=0.0.0.0:50051"]
volumeMounts:
- mountPath: /var/run/docker.sock
name: docker-sock
volumes:
- name: docker-sock
hostPath:
path: /var/run/docker.sock
hostNetwork: true
37 changes: 37 additions & 0 deletions deploy/server/unix-daemonset.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: network-controller-server-unix
namespace: vortex
labels:
k8s-app: network-server-unix
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: linker/net-controller-server:latest
command: ["./network-controller-server"]
args: ["-unix=/tmp/a.sock"]
volumeMounts:
- mountPath: /var/run/docker.sock
name: docker-sock
- mountPath: /tmp/a.sock
name: grpc-sock
volumes:
- name: docker-sock
hostPath:
path: /var/run/docker.sock
- name: grpc-sock
hostPath:
path: /tmp/a.sock
hostNetwork: true

0 comments on commit 1ae7dbb

Please sign in to comment.