Skip to content

Commit

Permalink
fix: etcd pod fails to start on OpenShift (#321)
Browse files Browse the repository at this point in the history
#### 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)
  • Loading branch information
ckadner authored and njhill committed Feb 2, 2023
1 parent f56d8ed commit 962c587
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/dependencies/quickstart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ spec:
containers:
- command:
- etcd
- --data-dir # use data directory under /tmp for read/write access by non-root user on OpenShift
- /tmp/etcd.data
- --listen-client-urls
- http://0.0.0.0:2379
- --advertise-client-urls
Expand Down

0 comments on commit 962c587

Please sign in to comment.