kubernetes - Jupyterhub 安装 Hub Pod Pending 状态
问题描述
我正在尝试在 Kubernetes 上安装 jupyterhub,由于资源原因,hupyterhub 正在等待处理。当我确实描述了豆荚
Warning FailedScheduling 2m25s (x6 over 2m25s) default-scheduler pod has unbound immediate PersistentVolumeClaims (repeated 2 times)
Warning FailedScheduling 55s (x4 over 2m25s) default-scheduler 0/3 nodes are available: 1 Insufficient cpu, 2 node(s) had no available volume zone.
It also shows that the requests is
Requests:
cpu: 500m
memory: 512Mi
我按照资源https://zero-to-jupyterhub.readthedocs.io/en/latest/setup-jupyterhub.html中提到的安装步骤进行操作
我的 config.yaml 配置如下所示。我正在使用 Kubernetes EKS (AWS) 代理:secretToken: ""
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: mysql
labels:
app: mysql
annotations:
volume.alpha.kubernetes.io/storage-class: default
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: local-storage
singleuser:
cpu:
limit: 1
guarantee: 0.02
memory:
limit: 2G
guarantee: 512M
storage:
dynamic:
storageClass: gp2
# culling old users, unit: seconds
cull:
enabled: true
timeout: 1800
every: 300
auth:
admin:
users:
- admin
access: false
# allow image to be prepulled
prePuller:
continuous:
enabled: true
# pod priority - scale up nodes ahead of real users arrivals
# user scheduler - pack users tight on some nodes
scheduling:
userScheduler:
enabled: true
podPriority:
enabled: true
解决方案
推荐阅读
- nginx - AKS 入口未正确路由
- python - 语音识别代码只为我的 2 分钟 wav 文件提供了几个词
- html - 将导航栏的位置设置为固定会使下拉菜单停止工作
- kotlin - Kotlin Android 10 的通知中没有自定义声音
- android - 通过 ForegroundService 获取位置时应用程序崩溃
- javascript - 使用元素索引而不是值副本创建数组引用
- php - 如何从来自 JSON 的 JSON 执行 foreach 循环
- javascript - 仅从 pouchDB 中的 iso 字符串获取日期
- javascript - 我的代码是使用异步等待的最佳方式吗?
- javascript - Ramda:将键值数组转换为对象