-
Notifications
You must be signed in to change notification settings - Fork 67
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
feat(manifests): add securityContext to deployments #768
Conversation
@@ -1,5 +1,6 @@ | |||
apiVersion: kustomize.config.k8s.io/v1beta1 | |||
kind: Kustomization | |||
namespace: kubeflow |
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.
Why adding namespace here? that would create an opinionated installation right? are we ok with having kubeflow
as the default upstream?
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 removed this line. It might be worth discussing using kubeflow
as a default though. These manifests can't be applied without adding a namespace, and other manifests in this repo include already have namespace: kubeflow
.
Set `seccompProfile`, forbid containers to run as root, and disable unnecessary system calls. This applies to: - Model registry itself - Example database (MySQL and PostgreSQL) - Model registry UI Signed-off-by: Paul Boyd <pboyd@redhat.com>
@@ -39,7 +39,7 @@ vars: | |||
- name: POSTGRES_PORT | |||
objref: | |||
kind: ConfigMap | |||
name: model-registry-db-parameters | |||
name: metadata-postgres-db-parameters |
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.
name: metadata-postgres-db-parameters | |
name: metadata-registry-db-parameters |
Let's keep it agnostic of the DB type if we can since we can't use multiple DBs and types at the same time
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 pushed another commit to rename the configmap and secret.
- Rename `metadata-postgres-db-parameters` to `metadata-registry-db-parameters` - Rename `metadata-postgres-db-secrets` to `metadata-registry-db-secrets` Signed-off-by: Paul Boyd <pboyd@redhat.com>
Apply the `securityContext` settings from upstream PR [#768](kubeflow/model-registry#768) Signed-off-by: Paul Boyd <pboyd@redhat.com>
Apply the `securityContext` settings from upstream PR [#768](kubeflow/model-registry#768) Signed-off-by: Paul Boyd <pboyd@redhat.com>
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
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.
thank you @pboyd and all
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Al-Pragliola, tarilabs The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Apply the `securityContext` settings from upstream PR [#768](kubeflow/model-registry#768) Signed-off-by: Paul Boyd <pboyd@redhat.com>
Apply the `securityContext` settings from upstream PR [#768](kubeflow/model-registry#768) Signed-off-by: Paul Boyd <pboyd@redhat.com>
Apply the `securityContext` settings from upstream PR [#768](kubeflow/model-registry#768) Signed-off-by: Paul Boyd <pboyd@redhat.com>
Apply the `securityContext` settings from upstream PR [#768](kubeflow/model-registry#768) Signed-off-by: Paul Boyd <pboyd@redhat.com>
Description
Set
seccompProfile
, forbid containers to run as root, and disableunnecessary system calls. This applies to:
Fixes #760
How Has This Been Tested?
Applying the manifests in a local cluster.
Merge criteria:
DCO
check)If you have UI changes