当我部署Acumos时,使用命令“ bash oneclick_deploy.sh 2>&1 | tee aio_deploy.log” 它不成功,并打印出“ nexus status is Pending”。
①我使用了一个现有的k8s集群:Minikube
②命令“ bash system-integration / AIO / setup_prereqs.sh k8s本地主机$ USER通用2>&1 | tee aio_prep.log” 成功运行
kubectl获取pods --all-namespaces
master@ubuntu:/home$ kubectl get pods --all-namespaces
NAMESPACE NAME READY STATUS RESTARTS AGE
acumos nexus-5b577d94f8-hqxxl 0/1 Pending 0 18m
kube-system coredns-6967fb4995-p2sjh 1/1 Running 3 3d20h
kube-system coredns-6967fb4995-p57ml 1/1 Running 3 3d20h
kube-system etcd-minikube 1/1 Running 0 5h14m
kube-system kube-addon-manager-minikube 1/1 Running 2 3d20h
kube-system kube-apiserver-minikube 1/1 Running 0 5h14m
kube-system kube-controller-manager-minikube 1/1 Running 2 5h14m
kube-system kube-proxy-2wqqp 1/1 Running 1 3d20h
kube-system kube-scheduler-minikube 1/1 Running 2 3d20h
kube-system kubernetes-dashboard-95564f4f-wrjgj 1/1 Running 2 3d20h
kube-system storage-provisioner 1/1 Running 2 3d20h
kube-system tiller-deploy-75f5747884-5rnmc 1/1 Running 0 5h8m
kubectl描述-n acumos pod nexus-5b577d94f8-hqxxl
master@ubuntu:/home$ kubectl describe -n acumos pod nexus-5b577d94f8-hqxxl
Name: nexus-5b577d94f8-hqxxl
Namespace: acumos
Priority: 0
Node: <none>
Labels: app=nexus
pod-template-hash=5b577d94f8
Annotations: <none>
Status: Pending
IP:
Controlled By: ReplicaSet/nexus-5b577d94f8
Containers:
nexus:
Image: sonatype/nexus:3.9.0
Ports: 8081/TCP, 8082/TCP
Host Ports: 0/TCP, 0/TCP
Environment:
log_level: DEBUG
Mounts:
/maven/logs from logs (rw)
/nexus-data from nexus-data (rw)
/var/run/secrets/kubernetes.io/serviceaccount from default-token-r6d6c (ro)
Conditions:
Type Status
PodScheduled False
Volumes:
logs:
Type: PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
ClaimName: logs
ReadOnly: false
nexus-data:
Type: PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
ClaimName: nexus-data
ReadOnly: false
default-token-r6d6c:
Type: Secret (a volume populated by a Secret)
SecretName: default-token-r6d6c
Optional: false
QoS Class: BestEffort
Node-Selectors: <none>
Tolerations: node.kubernetes.io/not-ready:NoExecute for 300s
node.kubernetes.io/unreachable:NoExecute for 300s
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedScheduling 47s (x2 over 47s) default-scheduler pod has unbound immediate PersistentVolumeClaims
这个问题困扰了我很长一段时间,一直没有解决。如果有人可以指导我解决这个问题,我将不胜感激。
答案 0 :(得分:0)
我可以帮助您调试此问题,但请注意,我们尚未在minikube envs中测试这些工具。 Minikube与单节点(AIO)k8s集群有很大不同,以至于它可能无法正常工作。还要注意,您可以使用脚本https://github.com/acumos/system-integration/blob/master/tools/setup_k8s.sh创建一个单节点群集(在Ubuntu或Centos上)。
但是对于您的minikube情况,豆荚状态的“待处理”状态通常意味着PV尚未准备好为PVC分配。这可能是minikube的副作用。 “ kubectl get pv”是什么结果?
答案 1 :(得分:0)
非常感谢。稍后,我将尝试使用该脚本在ubuntu上创建一个单节点集群。 “ kubectl get pv”的结果:
master@ubuntu:/mnt/hgfs$ kubectl get pv
NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE
docker-volume 5Gi RWO Recycle Available 22h
elasticsearch-data 10Gi RWO Recycle Available 22h
logs 1Gi RWO Recycle Available 22h
mariadb-data 5Gi RWO Recycle Available 22h
nexus-data 10Gi RWO Recycle Available 22h
nifi-registry 5Gi RWO Recycle Available 22h
pv-10gi-1 10Gi RWO Recycle Available 22h
pv-10gi-2 10Gi RWO Recycle Available 22h
pv-10gi-3 10Gi RWO Recycle Available 22h
pv-10gi-4 10Gi RWO Recycle Available 22h
pv-10gi-5 10Gi RWO Recycle Available 22h
pv-1gi-1 1Gi RWO Recycle Available 22h
pv-1gi-2 1Gi RWO Recycle Available 22h
pv-1gi-3 1Gi RWO Recycle Available 22h
pv-1gi-4 1Gi RWO Recycle Available 22h
pv-1gi-5 1Gi RWO Recycle Available 22h
pv-5gi-1 5Gi RWO Recycle Available 22h
pv-5gi-2 5Gi RWO Recycle Available 22h
pv-5gi-3 5Gi RWO Recycle Available 22h
pv-5gi-4 5Gi RWO Recycle Available 22h
pv-5gi-5 5Gi RWO Recycle Available 22h
kubectl get pvc --all-namespaces
master@ubuntu:/home$ kubectl get pvc --all-namespaces
NAMESPACE NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
acumos logs Pending logs 0 standard 27h
acumos nexus-data Pending nexus-data 0 standard 158m
答案 2 :(得分:0)