-
Notifications
You must be signed in to change notification settings - Fork 118
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
fix: etcd pod fails to start on OpenShift #321
Conversation
Resolves kserve#210 Resolves kserve#215 Signed-off-by: Christian Kadner <[email protected]>
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.
Thanks @ckadner!
config/dependencies/quickstart.yaml
Outdated
@@ -43,6 +43,8 @@ spec: | |||
containers: | |||
- command: | |||
- etcd | |||
- --data-dir |
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.
Just a small thing but might be nice to add a short comment here explaining why it's done
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.
How about this 148a7a4
- command:
- etcd
- --data-dir # use data directory under /tmp for read/write access by non-root user on OpenShift
- /tmp/etcd.data
Signed-off-by: Christian Kadner <[email protected]>
Signed-off-by: Christian Kadner <[email protected]>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ckadner, njhill 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 |
#### Motivation Addressing file access permission issues on OpenShift reported in issues #210 and #215 for the `etcd` deployment. #### Modifications Adding `data-dir` parameter to the container `args`: ``` - --data-dir - /tmp/etcd.data ``` #### Result The `etcd` pod comes up fine and spot-testing a few basic use cases went fine. I tested on IBM Cloud Kubernetes 1.24 and OCP 4.10 --- Resolves #210 Resolves #215 Signed-off-by: Christian Kadner <[email protected]> (cherry picked from commit f2a4a30)
Motivation
Addressing file access permission issues on OpenShift reported in issues #210 and #215 for the
etcd
deployment.Modifications
Adding
data-dir
parameter to the containerargs
:Result
The
etcd
pod comes up fine and spot-testing a few basic use cases went fine. I tested on IBM Cloud Kubernetes 1.24 and OCP 4.10Resolves #210
Resolves #215