Skip to content
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

Merged
merged 3 commits into from
Feb 2, 2023

Conversation

ckadner
Copy link
Member

@ckadner ckadner commented Jan 26, 2023

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

Resolves kserve#210
Resolves kserve#215

Signed-off-by: Christian Kadner <[email protected]>
Copy link
Member

@njhill njhill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ckadner!

@@ -43,6 +43,8 @@ spec:
containers:
- command:
- etcd
- --data-dir
Copy link
Member

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

Copy link
Member Author

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]>
@kserve-oss-bot
Copy link
Collaborator

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ckadner ckadner requested a review from njhill February 2, 2023 01:14
@ckadner ckadner added the lgtm label Feb 2, 2023
@kserve-oss-bot kserve-oss-bot merged commit f2a4a30 into kserve:main Feb 2, 2023
njhill pushed a commit that referenced this pull request Feb 2, 2023
#### 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Quickstart pods crash loop when using 0.9 etcd fails to start on version 0.9.0 on OpenShift
3 participants