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 cloud proxy entrypoint by avoiding modifying a RO directory (Configmap mount directory) #2027

Conversation

ddelnano
Copy link
Member

@ddelnano ddelnano commented Sep 18, 2024

Summary: Fix cloud proxy entrypoint by avoiding modifying a RO directory (Configmap mount directory)

This bug was introduced between 0a44b36 and c3e0fba on #2018 when the individual file mounts were changed to a directory mount. Deploying the cloud proxy from main results in the following error:

$ kubectl -n plc logs cloud-proxy-5df85487bf-hrglr
Defaulted container "cloud-proxy-server" out of: cloud-proxy-server, envoy
/scripts/entrypoint.sh: line 20: can't create /usr/local/openresty/nginx/conf/nginx.conf: Read-only file system

When I originally tested the final change, I must have only looked at the resulting directory and missed that the pod was crashing. This issue was detected during the 0.1.8 cloud prerelease testing.

Relevant Issues: #2017 #2013

Type of change: /kind bugfix

Test Plan: Verified that the cloud proxy image starts up successfully

… entrypoint writing to RO mount

Signed-off-by: Dom Del Nano <[email protected]>
@ddelnano ddelnano requested review from a team as code owners September 18, 2024 17:05
@ddelnano ddelnano changed the title Fix cloud proxy entrypoint startup by moving nginx-config mount to non RO directory Fix cloud proxy entrypoint by avoiding modifying a RO directory (Configmap mount directory) Sep 18, 2024
@ddelnano ddelnano merged commit 1f96cff into pixie-io:main Sep 18, 2024
22 checks passed
@ddelnano ddelnano deleted the ddelnano/fix-cloud-proxy-ro-configmap-mount-issue branch September 18, 2024 17:44
ddelnano added a commit to ddelnano/pixie that referenced this pull request Sep 23, 2024
…igmap mount directory) (pixie-io#2027)

Summary: Fix cloud proxy entrypoint by avoiding modifying a RO directory
(Configmap mount directory)

This bug was introduced between 0a44b36
and c3e0fba on pixie-io#2018 when the
individual file mounts were changed to a directory mount. Deploying the
cloud proxy from main results in the following error:

```
$ kubectl -n plc logs cloud-proxy-5df85487bf-hrglr
Defaulted container "cloud-proxy-server" out of: cloud-proxy-server, envoy
/scripts/entrypoint.sh: line 20: can't create /usr/local/openresty/nginx/conf/nginx.conf: Read-only file system
```

When I originally tested the final change, I must have only looked at
the resulting directory and missed that the pod was crashing. This issue
was detected during the 0.1.8 cloud prerelease testing.

Relevant Issues: pixie-io#2017 pixie-io#2013

Type of change: /kind bugfix

Test Plan: Verified that the cloud proxy image starts up successfully

Signed-off-by: Dom Del Nano <[email protected]>
GitOrigin-RevId: 1f96cff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants