安装Jupyterhub集线器Pod失败,没有可用的卷区域 [英] Installing Jupyterhub hub pod is failing with no available volume zone
问题描述
当尝试在Kubernetes(EKS)上安装Jupyterhub时,我在Hub窗格中遇到以下错误.这是describe pod的输出.报告了类似的问题,我尝试了解决方案,但没有用.
When trying to install Jupyterhub on Kubernetes (EKS) I am getting below error in the Hub pod. This is output of describe pod. There was similar issue reported and i tried the solution but it didn't work.
Warning FailedScheduling 52s (x2 over 52s) default-scheduler 0/3 nodes are available: 1 Insufficient cpu, 2 node(s) had no available volume zone.
这是我的pvc.yaml
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: standard
annotations:
volume.alpha.kubernetes.io/storage-class: default
provisioner: kubernetes.io/aws-ebs
parameters:
type: gp2
allowedTopologies:
- matchLabelExpressions:
- key: failure-domain.beta.kubernetes.io/zone
values:
- us-east-1a
- us-east-1b
- us-east-1c
来源:jupyterhub/templates/hub/pvc.yaml
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: hub-db-dir
annotations:
volume.alpha.kubernetes.io/storage-class: default
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: standard
如果我在这里缺少东西,请告诉我.
Please let me know if I am missing something here.
推荐答案
根据AWS文档,EBS卷及其附加实例必须位于同一可用区中. (来源)
According to AWS documentation, an EBS volume and the instance to which it attaches must be in the same Availability Zone. (Source)
在这种情况下,解决方案仅使用一个AZ.
In that case, the solution is using only one AZ.
Kubernetes本身支持许多其他存储后端,这些后端可能是 独立使用区域,但当然具有不同的属性(例如 性能,价格,云提供商支持...).例如那里 是可用于任何AZ的AWS EFS 在AWS区域内,但要权衡取舍(例如 kubernetes-incubator/external-storage #1030 ).
Kubernetes itself supports many other storage backends that could be used zone independently, but of course with different properties (like performance, pricing, cloud provider support, ...). For example there is AWS EFS that can be used in any AZ within an AWS region but with its own tradeoffs (e.g. kubernetes-incubator/external-storage#1030).
这是一个已知问题,此处.
这篇关于安装Jupyterhub集线器Pod失败,没有可用的卷区域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!