GoogleCloudPlatform / GoogleCloudPlatform/k8s-stackdriver
Running custom-metrics-stackdriver-adapter as non-root user
Open
custom-metrics-stackdriver-adapter
- Dominant language
- Go
- Stars
- 409
- Forks
- 236
- Avg merge
- 2h 34m
- Merged PRs (30d)
- 9
Description
Adding a securityContext with non-root settings causes an error:
```yaml
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
runAsUser: 1000
```
allowPrivilegeEscalation: false is fine but runAsNonRoot, runAsUser appear to cause the error:
```
Unable to get StackdriverAdapter apiserver config error creating self-signed certificates: mkdir apiserver.local.config: permission denied
```
Contributor guide
Assessment
This issue has not been assessed yet.