gpt4 book ai didi

kubernetes - 执行访问 token 命令“/google/google-cloud-sdk/bin/gcloud config-helper --format = json时出错

转载 作者:行者123 更新时间:2023-12-03 09:31:52 24 4
gpt4 key购买 nike

我正在尝试逐步执行此操作,以在Kubernetes(https://github.com/EamonKeane/airflow-GKE-k8sExecutor-helm)中上传气流,但是在执行的这一部分中,我遇到了以下问题:

到目前为止,对该主题进行的研究未发现任何能够解决我问题的东西,有人对该做什么有任何建议吗?

SQL_ALCHEMY_CONN=postgresql+psycopg2://$AIRFLOW_DB_USER:$AIRFLOW_DB_USER_PASSWORD@$KUBERNETES_POSTGRES_CLOUDSQLPROXY_SERVICE:$KUBERNETES_POSTGRES_CLOUDSQLPROXY_PORT/$AIRFLOW_DB_NAME

echo $SQL_ALCHEMY_CONN > /secrets/airflow/sql_alchemy_conn
# Create the fernet key which is needed to decrypt database the database
FERNET_KEY=$(dd if=/dev/urandom bs=32 count=1 2>/dev/null | openssl base64)
echo $FERNET_KEY > /secrets/airflow/fernet-key

kubectl create secret generic airflow \
--from-file=fernet-key=/secrets/airflow/fernet-key \
--from-file=sql_alchemy_conn=/secrets/airflow/sql_alchemy_conn

Unable to connect to the server: error executing access token command "/google/google-cloud-sdk/bin/gcloud config config-helper --format=json": err=exit status 1 output= stderr=ERROR: gcloud crashed (BadStatusLine): '' If you would like to report this issue, please run the following command: gcloud feedback To check gcloud for common problems, please run the following command: gcloud info --run-diagnostics

最佳答案

我通过创建一个新的Cloud Shell选项卡来连接集群来解决此问题:
gcloud container clusters get-credentials testcluster1 --zone = your_zone

关于kubernetes - 执行访问 token 命令“/google/google-cloud-sdk/bin/gcloud config-helper --format = json时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56654149/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com