-
Notifications
You must be signed in to change notification settings - Fork 10
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 server daemonset yaml template files #25
Conversation
c6a8d73
to
1ae7dbb
Compare
Codecov Report
@@ Coverage Diff @@
## master #25 +/- ##
=======================================
Coverage 86.13% 86.13%
=======================================
Files 5 5
Lines 137 137
=======================================
Hits 118 118
Misses 12 12
Partials 7 7 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add the privilege=true for those daemonSet
1ae7dbb
to
9d84803
Compare
I added the following config in these yaml files. securityContext:
privileged: true Could you please help me review this PR, again? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
deploy/server/unix-daemonset.yaml
Outdated
volumeMounts: | ||
- mountPath: /var/run/docker.sock | ||
name: docker-sock | ||
- mountPath: /tmp/a.sock |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename to /var/run/vortex.sock
deploy/server/unix-daemonset.yaml
Outdated
path: /var/run/docker.sock | ||
- name: grpc-sock | ||
hostPath: | ||
path: /tmp/a.sock |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename to /var/run/vortex.sock
deploy/server/unix-daemonset.yaml
Outdated
securityContext: | ||
privileged: true | ||
command: ["./network-controller-server"] | ||
args: ["-unix=/tmp/a.sock"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename to /var/run/vortex.sock
deploy/server/tcp-daemonset.yaml
Outdated
metadata: | ||
name: network-controller-server-tcp | ||
namespace: vortex | ||
labels: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At this moment. we don't need this label
deploy/server/unix-daemonset.yaml
Outdated
metadata: | ||
name: network-controller-server-unix | ||
namespace: vortex | ||
labels: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At this moment. we don't need this label
9d84803
to
99fd754
Compare
I removed labels. Also, updated the socket name. Please help me review this PR, again. |
deploy/server/unix-daemonset.yaml
Outdated
path: /var/run/docker.sock | ||
- name: grpc-sock | ||
hostPath: | ||
path: /var/run/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found mount entire /var/run/
can cause significant security issue. we should change back to /tmp
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unix sockets only live while the program is running, so /tmp/
is usually an alright place for them to live
deploy/server/unix-daemonset.yaml
Outdated
path: /var/run/docker.sock | ||
- name: grpc-sock | ||
hostPath: | ||
path: /var/run/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unix sockets only live while the program is running, so /tmp/
is usually an alright place for them to live
- Add tcp & unix with namespace vortex
99fd754
to
d26f4da
Compare
test files are under
~/go/src/github.com/linkernetworks/network-controller/example/server-yaml