我正在使用稳定/气流舵图,并希望调试git-clone容器的初始化。根据自述文件,这个容器需要一个密钥,我创建的密钥如下:
kubectl create secret generic rein-ai-secret --from-file=id_rsa=/home/juanpa/.ssh/airflow-key --from-file=known_hosts=/home/juanpa/.ssh/known_hosts --from-file=id_rsa.pub=/home/juanpa/.ssh/airflow-key.pub我使用的是一个非常简单的config.yaml
airflow:
image:
repository: puckel/docker-airflow
tag: 1.10.4
schedulerNumRuns: "-1"
config:
AIRFLOW__CORE__DAGS_FOLDER: /usr/local/airflow/repo/data-pipeline/airflow_data/dags
dags:
path: /usr/local/airflow/repo
git:
url: git@github.com:acend-io/data-pipeline.git
ref: master
secret: rein-ai-secret
initContainer:
enabled: true
image:
repository: alpine/git
tag: 1.0.7
pullPolicy: IfNotPresent
installRequirements: false然而,airflow-scheduler、airflow-worker和airflow-webserver处于Init:CrashLoopBackOff状态,这意味着它们一直在重新启动。kubectl describe没有提供足够的信息。如何调试此问题?或者是我的secret或config.yaml文件有明显的错误?
感谢您的支持!
发布于 2019-11-26 14:56:46
要进行调试,可以使用kubectl logs <web-pod-name> -c git-clone获取git-clone bash命令的输出。
https://stackoverflow.com/questions/58171321
复制相似问题