Skip to content

Error: x509: certificate signed by unknown authority while apply the sample yaml #678

@zhixunjie

Description

@zhixunjie

➜ demo-operator git:(master) ✗ k apply -f config/samples/apps_v1beta1_mydaemonset.yaml
Error from server (InternalError): error when creating "config/samples/apps_v1beta1_mydaemonset.yaml": Internal error occurred: failed calling webhook "mmydaemonset.kb.io": failed to call webhook: Post "https://demo-operator-webhook-service.demo-operator-system.svc:443/mutate-apps-cncamp-io-v1beta1-mydaemonset?timeout=10s": x509: certificate signed by unknown authority

the certificate is ok!
root@k8s-master-a-1:tt# k get certificate -n demo-operator-system
NAME READY SECRET AGE
demo-operator-serving-cert True webhook-server-cert 81m

controller manager's log here:
2022/05/13 17:50:33 http: TLS handshake error from 192.168.34.2:43156: remote error: tls: bad certificate

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions