Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.

Communication with webhook fails for any pod in the cluster #38

@amarpg

Description

@amarpg

4m52s Warning FailedCreate replicaset/policystatus-65ccbc6575 Error creating: Internal error occurred: failed calling webhook "gensc.sfdc.internal": Post "https://gensc.nsaux-cs.svc:443/mutate?timeout=30s": x509: certificate is not valid for any names, but wanted to match gensc.nsaux-cs.svc

Similar setup worked in MVP, however when I deployed the solution in another environment, it worked fine. I tried to compare the certificate, secret, pod etc. Everything looks similar. Unable to identify the root cause.

COMMON_NAME= gensc.nsaux-cs.svc
opensslcnfpath="/etc/ssl/openssl.cnf"
openssl req -x509 -new -nodes -key ca.key -subj "/CN=${COMMON_NAME}" -days 3650 -reqexts v3_req -extensions v3_ca -out ca.crt -config ${opensslcnfpath}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions