lxcfs-admission-webhook icon indicating copy to clipboard operation
lxcfs-admission-webhook copied to clipboard

k8s1.22 部署web.yaml失败.Internal error occurred: failed calling webhook "mutating.lxcfs-admission-webhook.aliyun.com": failed to call webhook: Post "https://lxcfs-admission-webhook-svc.default.svc:443/mutate?timeout=10s": x509: certificate specifies an incompatible key usage

Open its-space opened this issue 2 years ago • 2 comments

Internal error occurred: failed calling webhook "mutating.lxcfs-admission-webhook.aliyun.com": failed to call webhook: Post "https://lxcfs-admission-webhook-svc.default.svc:443/mutate?timeout=10s": x509: certificate specifies an incompatible key usage

its-space avatar Jun 01 '22 03:06 its-space

any update ? I have this error too

ishallbethat avatar Oct 10 '22 12:10 ishallbethat

I found the register cert with kubernetes api is misleading. Nothing to do with k8s version. https://github.com/denverdino/lxcfs-admission-webhook/blob/master/deployment/webhook-create-signed-cert.sh#L87

Just to create a tls with openssl is enough.Like below https://pet2cattle.com/2021/08/kubernetes-mutating-webhook

ishallbethat avatar Oct 14 '22 14:10 ishallbethat