I deployed a helm chart onto an isolated server and in the self-signed certificate HTTPS post it does to the kube-api it is failing w/ this error:
curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to kubernetes.default.svc:443
Anyone seen it before? This is the “POST”:
echo "Creating a secret for the certificate and keys" STATUS=$(curl -ik \ -o ${TMP_DIR}/output \ -w "%{http_code}" \ -X POST \ -H "Authorization: Bearer $TOKEN" \ -H 'Accept: application/json' \ -H 'Content-Type: application/json' \ -d '{ "kind": "Secret", "apiVersion": "v1", "metadata": { "name": "spark-webhook-certs", "namespace": "'"$NAMESPACE"'" }, "data": { "ca-cert.pem": "'"$ca_cert"'", "ca-key.pem": "'"$ca_key"'", "server-cert.pem": "'"$server_cert"'", "server-key.pem": "'"$server_key"'" } }' \ https://kubernetes.default.svc/api/v1/namespaces/${NAMESPACE}/secrets The error is occuring due to a self signed certificate whose .sh is being invoked by a docker image command here: https://github.com/GoogleCloudPlatform/spark-on-k8s-operator/blob/master/hack/gencerts.sh
I know it's not getting to the end of this because it's failing to make the secret it's trying to post. Where do y'all think I should look to start troubleshooting? I've posted additional info here including screen shots: https://github.com/GoogleCloudPlatform/spark-on-k8s-operator/issues/926