- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我按照说明 here 使用 kubeadm 设置了一个单节点 K8S 集群:
集群已启动,所有系统 pod 都运行良好:
[root@umeshworkstation hostpath-provisioner]# kubectl get pods -n kube-system
NAME READY STATUS RESTARTS AGE
calico-etcd-n988r 1/1 Running 10 6h
calico-node-n1wmk 2/2 Running 10 6h
calico-policy-controller-1777954159-bd8rn 1/1 Running 0 6h
etcd-umeshworkstation 1/1 Running 1 6h
kube-apiserver-umeshworkstation 1/1 Running 1 6h
kube-controller-manager-umeshworkstation 1/1 Running 1 6h
kube-dns-3913472980-2ptjj 0/3 Pending 0 6h
kube-proxy-1d84l 1/1 Running 1 6h
kube-scheduler-umeshworkstation 1/1 Running 1 6h
[root@umeshworkstation hostpath-provisioner]# kubectl describe pod hostpath-provisioner
Name: hostpath-provisioner
Namespace: default
Node: umeshworkstation/172.17.24.123
Start Time: Tue, 09 May 2017 23:44:41 -0400
Labels: <none>
Annotations: <none>
Status: Running
IP: 192.168.8.65
Controllers: <none>
Containers:
hostpath-provisioner:
Container ID: docker://c600cfa7a2f5f958ad24e83372a1276a91b41cb67773b9605af4a0ae021ec914
Image: hostpath-provisioner:latest
Image ID: docker://sha256:f6def41ba7c096701c65bf0c0aba6ff31e030573e1a900e378432491ecc5c556
Port:
State: Running
Started: Tue, 09 May 2017 23:44:45 -0400
Ready: True
Restart Count: 0
Environment:
NODE_NAME: (v1:spec.nodeName)
Mounts:
/tmp/hostpath-provisioner from pv-volume (rw)
/var/run/secrets/kubernetes.io/serviceaccount from default-token-7wwvj (ro)
Conditions:
Type Status
Initialized True
Ready True
PodScheduled True
Volumes:
pv-volume:
Type: HostPath (bare host directory volume)
Path: /tmp/hostpath-provisioner
default-token-7wwvj:
Type: Secret (a volume populated by a Secret)
SecretName: default-token-7wwvj
Optional: false
QoS Class: BestEffort
Node-Selectors: <none>
Tolerations: node.alpha.kubernetes.io/notReady=:Exists:NoExecute for 300s
node.alpha.kubernetes.io/unreachable=:Exists:NoExecute for 300s
Events: <none>
[root@umeshworkstation hostpath-provisioner]# kubectl describe sc example-hostpath
Name: example-hostpath
IsDefaultClass: No
Annotations: <none>
Provisioner: example.com/hostpath
Parameters: <none>
Events: <none>
[root@umeshworkstation hostpath-provisioner]# kubectl describe pvc
Name: hostpath
Namespace: default
StorageClass: example-hostpath
Status: Pending
Volume:
Labels: <none>
Annotations: volume.beta.kubernetes.io/storage-class=example-hostpath
volume.beta.kubernetes.io/storage-provisioner=example.com/hostpath
Capacity:
Access Modes:
Events:
FirstSeen LastSeen Count From SubObjectPath Type Reason Message
--------- -------- ----- ---- ------------- -------- ------ -------
2h 11s 874 persistentvolume-controller Normal ExternalProvisioning cannot find provisioner "example.com/hostpath", expecting that a volume for the claim is provisioned either manually or via external software
最佳答案
我已经解决了这个问题。感谢@jaxxstorm 帮助我朝着正确的方向前进。
当我检查配置器 pod 日志时,我可以看到它无法访问 API 服务器来列出 StorageClass、PVC 或 PV,因为它是使用默认服务帐户创建的,它没有访问这些 API 的权限。
解决方案是创建一个单独的服务帐户、pod 安全策略、集群角色和集群角色绑定(bind),如 NFS external provisioner here 中所述。
在此之后,我可以看到我的 PVC 绑定(bind)到显示挂载的卷和主机路径
[root@umeshworkstation hostpath-provisioner]# kubectl get pvc
NAME STATUS VOLUME CAPACITY ACCESSMODES STORAGECLASS AGE
hostpath Bound pvc-8179c8d6-36db-11e7-9ed4-005056a21a50 1Mi RWX example-hostpath 1m
[root@umeshworkstation hostpath-provisioner]# ls /tmp/hostpath-provisioner/
pvc-8179c8d6-36db-11e7-9ed4-005056a21a50
关于dynamic - Kubernetes Hostpath 外部供应商 - PVC 待定,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43888338/
我正在使用 PayPal 的快速结账为我们的客户付款。要确认/完成付款,请调用“DoExpressCheckoutPayment”。 PayPal 响应中的 PAYMENTINFO_0_PAYMENT
我遇到了这个问题: 找到列表中满足给定条件的第一个元素。 不幸的是,列表很长(100.000 个元素),使用一个线程评估每个元素的条件总共需要大约 30 秒。 有没有办法完全并行化这个问题?我查看了所
我正在使用 Sequilizer 并陷入困境,因为该方法永远处于挂起状态。 以下是我正在尝试做的事情的简化版本。基本上,API 通过调用 BatchProcessor 使用以下方法,该方法应该处理提供
我如何才能运行一段代码,比如说每 1 秒运行一次? 这是我的代码 fragment : 主要 Activity : private Context ctx; @Override
这段代码返回一个未决的 promise 我想将从 insta 函数返回的数据存储到数据数组中。 cs2.js:- async function insta(mode, coin) {
我对并行循环中的局部值和更新全局变量有疑问。 例如,在伪代码中:我在一个很长的 vector 中搜索最大值。我可以像这样循环执行: int max; for(i ...) { if (max
我正在尝试制作一个应用程序,允许用户使用两个 TimePickers 输入两次,并且手机将在这些时间之间设置为静音。我正在使用 PendingIntent 和 AlarmManager 在用户选择的时
我想设置一个只触发一次的闹钟。 有一个名为 OneShot 的 pendingintent 标志。看起来这将是正确的标志。 但是我需要使用那个标志吗?如果我使用 AlarmManager.SetTim
我在处理 Notification 和 pending Intent 时遇到了很大的麻烦。我正在尝试使用发送消息的适当 user_details 打开聊天 Activity 。这就是为什么在 Fire
当我广播待定 Intent 并通过 putExtra() 提供我的数据时,我在接收器中获得了具有相同数据的这些 Intent ,这等于第一个创建的待定 Intent .代码: for (int i =
我使用的 Intent 在用户点击推送通知时启动。我在通过未决 Intent 传递额外内容时遇到了一些问题。当我这样做时: Intent i = new Intent(this, DashboardA
作为 Python C API 的学习过程,我试图在传递给 tbb parallel_for 的仿函数中调用 Python 函数。调用函数的操作导致 Python 进程实例崩溃。我没有做任何线程不安全
我在启动 pendingIntent 时遇到问题。我已经使用 logcat 等进行了一些故障排除,最后我几乎肯定我的问题实际上是在我的 pendingIntent 方法中。我设置的时间是正确的,正在调
我的 nodejs 应用程序中有一个类,代码如下: var mongoose = require('mongoose'); var Roles = mongoose.model('r
我有一个创建通知的 Activity 。当我使用 AVD 模拟器(针对 Android 2.1 update 1)时,通知将启动 PendingIntent 就好了,但在实际设备(运行 Android
我在 Activity 中使用待处理的 Intent 。 Intent intent = new Intent(this, MyActivity.class); PendingIntent p
我在 Kubernetes 中创建 RabbitMQ 集群。我正在尝试添加负载均衡器。但我无法获取负载均衡器外部 IP,它仍在等待中。 apiVersion: v1 kind: Service met
为什么服务外部IP地址处于pending状态? 我应该为我的 kubernetes master 启用任何负载均衡器吗? 我在 digital ocean 云上使用 kubernetes。 最佳答案
我是 Android 开发新手。我可以看到股票消息“您到达办公室了吗”,但是当我单击它时,它并没有打开我的主要 Activity 。 下面是我的代码: private class ViewUpdate
我的目标是让 nginx 为我的静态文件提供服务,让 nodejs 为我的动态页面提供服务。它现在工作得很好。但我目前正在使用 websocket 添加功能,nginx 目前不支持 websocket
我是一名优秀的程序员,十分优秀!