linkerd2 icon indicating copy to clipboard operation
linkerd2 copied to clipboard

runAsRoot param fails the injection

Open sneerin opened this issue 2 years ago • 4 comments

What is the issue?

after installation, any pod injection fails with error provided.

How can it be reproduced?

install linkerd, add --set proxyInit.runAsRoot=true to helm params .

Logs, error output, etc

103s Warning FailedCreate replicaset/75bbb6889b Error creating: admission webhook "linkerd-proxy-injector.linkerd.io" denied the request: failed to unmarshal JSON from: /var/run/linkerd/config/values: error unmarshaling JSON: while decoding JSON: json: cannot unmarshal string into Go struct field ProxyInit.proxyInit.runAsRoot of type bool

output of linkerd check -o short

linkerd-existence

× 'linkerd-config' config map exists error unmarshaling JSON: while decoding JSON: json: cannot unmarshal string into Go struct field ProxyInit.proxyInit.runAsRoot of type bool see https://linkerd.io/2.14/checks/#l5d-existence-linkerd-config for hints

Environment

  • kuberentes Version: Server Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.12", GitCommit:"b058e1760c79f46a834ba59bd7a3486ecf28237d", GitTreeState:"clean", BuildDate:"2022-07-13T14:53:39Z", GoVersion:"go1.16.15", Compiler:"gc", Platform:"linux/amd64"}
  • linkerd version : name: linkerd-control-plane version: 1.16.4

Possible solution

No response

Additional context

No response

Would you like to work on fixing this bug?

maybe

sneerin avatar Nov 15 '23 16:11 sneerin

I just tried this in a local k3d cluster and it works -- of course, that's Kubernetes 1.26. Are you able to try this with something newer than 1.22? Can you tell me more about what kind of cluster this is?

kflynn avatar Nov 30 '23 04:11 kflynn

@sneerin See above – any more information you can give here? 🙂

kflynn avatar Dec 21 '23 16:12 kflynn

@sneerin Happy new year! Still looking for more information, if you can provide any? 🙂

kflynn avatar Jan 04 '24 15:01 kflynn

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 13 '24 11:04 stale[bot]