GoogleCloudPlatform / GoogleCloudPlatform/k8s-stackdriver

Running custom-metrics-stackdriver-adapter as non-root user

Open
#488 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.