Nordstrom / xrpc

Simple, production ready Java API server built on top of functional composition.
Apache License 2.0
17 stars 17 forks source link

Adds volume to pods #206

Closed 0x5d closed 5 years ago

0x5d commented 6 years ago

Specifies an emptyDir volume in deployment.yml, needed because when Netty fails to load at least one netty_tcnative* lib variant, it generates one (to /tmp by default, but configurable at start-up through -Dio.netty.native.workdir). This can't be done in a read-only file system, such as one in pods under a restricted Pod Security Policy with ReadOnlyRootFilesystem: true in k8s.

Mounting this volume as an emptyDir should solve this, unless the PSP forbids all use of volumes, or allows read-only volumes alone.

0x5d commented 6 years ago

@mariusgrigoriu here's the PR :smile:

andyday commented 5 years ago

👍 LGTM! Merging this.