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

k8s 1.22版本部署会出现证书签发问题,怎么解决呢 ERROR: After approving csr lxcfs-admission-webhook-svc.default, the signed certificate did not appear on the resource. Giving up after 10 attempts.

Open immortalZY opened this issue 2 years ago • 1 comments

immortalZY avatar May 06 '22 10:05 immortalZY

你需要修改deployment/webhook-create-signed-cert.sh中的部分,如下:

apiVersion: certificates.k8s.io/v1
kind: CertificateSigningRequest
metadata:
  name: ${csrName}
spec:
  groups:
  - system:authenticated
  signerName: kubernetes.io/kube-apiserver-client
  request: $(cat ${tmpdir}/server.csr | base64 | tr -d '\n')
  usages:
  - client auth

solid-wang avatar May 13 '22 09:05 solid-wang