-
Notifications
You must be signed in to change notification settings - Fork 549
Errors occurred after Are your cluster is in Azure cloud or not? #5776
Comments
@suiguoxin @siaimes Any comments? |
@hzy46 May know this part better |
You can try this: https://github.com/siaimes/k8s-share This is the solution I used now, which is simple and stable. |
yeah, I tried this and here is what I'm experiencing now: TASK [kubernetes/master : Create kubeadm token for joining nodes with 24h expiration (default)] **************************************************************************************************************************************** NO MORE HOSTS LEFT ********************************************************************************************************************************************************************************************************************* PLAY RECAP ***************************************************************************************************************************************************************************************************************************** |
Your log is reported by the master node, so run this command on the master node. |
Actually,I have run this command on all nodes(dev, master and worker). |
kubernetes/kubeadm#1447 (comment) kubernetes-sigs/kubespray#5227 This thread may be useful for you. |
@chjm This may be useful for you. |
Hello, I am a developer from China, tying to deploy pai v1.8.0 in a private cloud,
enviroment: Ubuntu16.04 + OpenPAI v1.8.0
As you can see, i tried to use https://openpai.readthedocs.io/zh_CN/zh_cn_pai-1.5.y/manual/cluster-admin/configuration-for-china.html , but it not works, so I replaced some links to make sure I could access the mirrors I needed.
like this:
`
user: ***
password: ***
docker_image_tag: v1.8.0
#openpai_kubespray_extra_var:
#download_container: false
#skip_downloads: true
#gcr_image_repo: " registry.cn-hangzhou.aliyuncs.com"
#kube_image_repo: " registry.cn-hangzhou.aliyuncs.com/google-containers"
#kubeadm_download_url: "https://shaiictestblob01.blob.core.chinacloudapi.cn/share-all/kubeadm"
#hyperkube_download_url: "https://shaiictestblob01.blob.core.chinacloudapi.cn/share-all/hyperkube"
gcr_image_repo: "registry.cn-hangzhou.aliyuncs.com"
kube_image_repo: "registry.cn-hangzhou.aliyuncs.com/google_containers"
openpai_kubespray_extra_var:
pod_infra_image_repo: "registry.cn-hangzhou.aliyuncs.com/google_containers/pause-{{ image_arch }}"
dnsautoscaler_image_repo: "docker.io/mirrorgooglecontainers/cluster-proportional-autoscaler-{{ image_arch }}"
tiller_image_repo: "registry.cn-hangzhou.aliyuncs.com/google_containers/kubernetes-helm/tiller"
registry_proxy_image_repo: "registry.cn-hangzhou.aliyuncs.com/google_containers/kube-registry-proxy"
metrics_server_image_repo: "registry.cn-hangzhou.aliyuncs.com/google_containers/metrics-server-amd64"
addon_resizer_image_repo: "registry.cn-hangzhou.aliyuncs.com/google_containers/addon-resizer"
dashboard_image_repo: "registry.cn-hangzhou.aliyuncs.com/google_containers/kubernetes-dashboard-{{ image_arch }}"
`
Then, I used the quick-start-kubespry.sh to deploy pai, the error occured:
... Generating kubespray configuration Are your cluster is in Azure cloud or not? (Y/N) (case sensitive)N Traceback (most recent call last): File "/root/pai/contrib/kubespray/script/k8s_generator.py", line 72, in <module> main() File "/root/pai/contrib/kubespray/script/k8s_generator.py", line 67, in main map_table File "/root/pai/contrib/kubespray/script/utils.py", line 53, in generate_template_file generated_template = generate_from_template_dict(template, map_table) File "/root/pai/contrib/kubespray/script/utils.py", line 41, in generate_from_template_dict map_table File "/usr/local/lib/python3.5/dist-packages/jinja2/environment.py", line 1008, in render return self.environment.handle_exception(exc_info, True) File "/usr/local/lib/python3.5/dist-packages/jinja2/environment.py", line 780, in handle_exception reraise(exc_type, exc_value, tb) File "/usr/local/lib/python3.5/dist-packages/jinja2/_compat.py", line 37, in reraise raise value.with_traceback(tb) File "<template>", line 410, in top-level template code TypeError: 'NoneType' object is not iterable
Is there a way to fix this or make sure that I can deploy it correctly?
By the way, i also tried the method mentioned in the #5592 , it performs more processes but ultimately still faild.
Thank you.
The text was updated successfully, but these errors were encountered: