我尽力按照说明创建裸机 Kubernetes 1.18 集群。我安装了 Calico 网络。我成功地将另一个控制平面节点加入了我的集群。我按照他们的说明安装了 OpenEBS。我使用 Helm 3 安装它。
只是为了摩擦最后一部分,我看到创建的存储类
NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
local-hostpath openebs.io/local Delete WaitForFirstConsumer false 42m
x-openebs-hostpath openebs.io/local Delete WaitForFirstConsumer false 40m
openebs-device openebs.io/local Delete WaitForFirstConsumer false 68m
openebs-hostpath openebs.io/local Delete WaitForFirstConsumer false 68m
openebs-jiva-default openebs.io/provisioner-iscsi Delete Immediate false 68m
openebs-snapshot-promoter volumesnapshot.external-storage.k8s.io/snapshot-promoter Delete Immediate false 68m
但是当我尝试使用内置openebs-hostpath
存储类创建 PVC 时......
# cat pvc.yaml
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: local-hostpath-pvc
spec:
storageClassName: openebs-hostpath
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5G
我遇到以下错误:
# kubectl apply -f pvc.yaml
Error from server (InternalError): error when creating "pvc.yaml": Internal error occurred: failed calling webhook "admission-webhook.openebs.io": Post https://admission-server-svc.openebs.svc:443/validate?timeout=5s: context deadline exceeded
我对 Kubernetes 了解得不够多,不知道如何进行。我的直觉是存在 DNS 问题,我无法从需要解决的任何地方解决该服务,即使有这样的服务:
# kubectl get service --namespace openebs
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
admission-server-svc ClusterIP 10.98.82.69 <none> 443/TCP 70m
openebs-apiservice ClusterIP 10.111.216.55 <none> 5656/TCP 71m
如果重要的话,我的物理 LAN 地址是 10.250.0.0/24 地址。
我什至应该如何开始解决这个问题?我应该从哪里解析admission-server-svc.openebs.svc
主机名?为什么我不能从我的主节点解决它?