Azure Kubernetes孤立服务(AKS)SSL错误

问题描述 投票:0回答:1

我将头盔图部署到隔离的服务器上,并在HTTPS的自签名证书中将其发布到kube-api,但出现此错误失败:

卷曲:(35)OpenSSL SSL_connect:与kubernetes.default.svc:443连接的SSL_ERROR_SYSCALL

有人看过吗?这是“ 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 

由于在此通过docker image命令调用其.sh的自签名证书而发生错误,https://github.com/GoogleCloudPlatform/spark-on-k8s-operator/blob/master/hack/gencerts.sh

我知道这还没有结束,因为它没有提供它试图发布的秘密。你们认为我应该在哪里着手进行故障排除?我在此处发布了其他信息,包括屏幕截图:https://github.com/GoogleCloudPlatform/spark-on-k8s-operator/issues/926

ssl curl kubernetes kubernetes-helm azure-aks
1个回答
1
投票

我将尝试更新gencerts.sh的内容以获取有关该错误的更多上下文:

© www.soinside.com 2019 - 2024. All rights reserved.