Trying to run the kubernetes operator in an altern...
# troubleshooting
m
Trying to run the kubernetes operator in an alternate namespace. I have done this:
Copy code
kubectl create namespace understanding-apache-flink
kubectl create -f https://github.com/jetstack/cert-manager/releases/download/v1.8.2/cert-manager.yaml 
helm repo add flink-operator-repo https://downloads.apache.org/flink/flink-kubernetes-operator-1.7.0/ -n understanding-apache-flink
helm install flink-kubernetes-operator flink-operator-repo/flink-kubernetes-operator -n understanding-apache-flink
But then I get this error:
Copy code
Error: INSTALLATION FAILED: 2 errors occurred:
	* Internal error occurred: failed calling webhook "webhook.cert-manager.io": failed to call webhook: Post "https://cert-manager-webhook.cert-manager.svc:443/mutate?timeout=10s": tls: failed to verify certificate: x509: certificate signed by unknown authority
	* Internal error occurred: failed calling webhook "webhook.cert-manager.io": failed to call webhook: Post "https://cert-manager-webhook.cert-manager.svc:443/mutate?timeout=10s": tls: failed to verify certificate: x509: certificate signed by unknown authority
The logs show this:
Copy code
I0314 01:53:38.288283       1 feature_gate.go:245] feature gates: &{map[]}
W0314 01:53:38.290433       1 client_config.go:617] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
I0314 01:53:38.312618       1 webhook.go:129] cert-manager "msg"="using dynamic certificate generating using CA stored in Secret resource"  "secret_name"="cert-manager-webhook-ca" "secret_namespace"="cert-manager"
I0314 01:53:38.312961       1 server.go:133] cert-manager/webhook "msg"="listening for insecure healthz connections"  "address"=":6080"
I0314 01:53:38.313556       1 server.go:197] cert-manager/webhook "msg"="listening for secure connections"  "address"=":10250"
I0314 01:53:39.349318       1 dynamic_source.go:267] cert-manager/webhook "msg"="Updated serving TLS certificate"  
I0314 01:54:10.005590       1 logs.go:59] http: TLS handshake error from 10.244.0.1:19133: remote error: tls: bad certificate
I0314 01:54:10.027065       1 logs.go:59] http: TLS handshake error from 10.244.0.1:44809: remote error: tls: bad certificate
Any advice? I don't want to disable the webhook. I want to get to the bottom of this.
g
looks like some issue with your cert-manager
you can try disabling the webhook completely when you install the operator:
Copy code
--set webhook.create=false