-
Notifications
You must be signed in to change notification settings - Fork 26
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 missing cases of openshift deployment #158
add missing cases of openshift deployment #158
Conversation
manifests/base/openshift/scc.yaml
Outdated
allowPrivilegedContainer: true | ||
allowHostDirVolumePlugin: true | ||
allowHostNetwork: true | ||
allowHostPorts: true | ||
allowHostIPC: true | ||
allowHostPID: true |
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.
Hey, as a best practice I would actually suggest restricting the kepler pods a little bit more as done lately in the kepler-operator as seen here.
I still need to raise a PR to also integrate this also into the main kepler repo but I think it would be good to already do this here.
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.
@BGrasnick Thank you so much for the review. Agree. Just update the scc file, please confirm.
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.
Yes perfect, LGTM now!
- name: kernel-debug | ||
mountPath: /sys/kernel/debug | ||
securityContext: | ||
privileged: true | ||
volumes: | ||
- name: kernel-debug | ||
hostPath: | ||
path: /sys/kernel/debug | ||
type: Directory |
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.
There is still an open discussion if mounting /sys/kernel/debug is actually needed for OpenShift. In my local tests everything seemed to work perfectly fine and normally when excluding it. See the discussion here and the PR sustainable-computing-io/kepler-operator#198. Maybe you can test this as well?
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 believe/sys/kernel/debug
is still needed for libbpf to access the tracepoint files such as /sys/kernel/debug/tracing/events/irq/softirq_entry
. Have you tried deploying with latest-libbpf
tag?
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.
Yes I believe I tested both. Can probably try again later today or tomorrow! As I am no expert though maybe somebody else with more knowledge about libbpf could test as well? Don't know who that is though :)
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.
Actually, I am one of the team who works on this.
However, I just recheck the manifest and found that there is no need to add the mount /sys/kernel/debug
here because the /sys
is already attached by kepler manifest and the path is the same (i.e., /sys/kernel/debug
). Will remove it.
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.
@BGrasnick Thanks again.
Made a rebase and update the change to open shift-patch.
e4a3589
to
13b5abf
Compare
As it is related to manifest, I also add fix for the issue #160 to this PR. |
Signed-off-by: Sunyanan Choochotkaew <sunyanan.choochotkaew1@ibm.com>
2d182cb
to
3aa8dcf
Compare
Signed-off-by: Sunyanan Choochotkaew <sunyanan.choochotkaew1@ibm.com>
Signed-off-by: Sunyanan Choochotkaew <sunyanan.choochotkaew1@ibm.com>
3aa8dcf
to
f26c311
Compare
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
This PR is to fix the issue mentioned in #157.
Also, this PR add
make manifest
to validate manifest before runmake deploy
.Example output:
[edit] Add fix #160.
Signed-off-by: Sunyanan Choochotkaew sunyanan.choochotkaew1@ibm.com