kubectl apply -f pgsql.yaml -f sonarqube.yaml
[root@node4 sonarqube]# kubectl get po -n devops
NAME READY STATUS RESTARTS AGE
postgres-sonar-f644b4fbd-qnvkn 0/1 Pending 0 34m
sonarqube-58669db48f-jq24g 0/1 Pending 0 34m
kubectl describe po postgres-sonar-f644b4fbd-qnvkn -n devops
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedScheduling 14m (x2 over 14m) default-scheduler 0/3 nodes are available: 3 pod has unbound immediate PersistentVolumeClaims.
Warning FailedScheduling 19s (x14 over 13m) default-scheduler 0/3 nodes are available: 3 pod has unbound immediate PersistentVolumeClaims.
解决方案:
这个是pv pvc问题 如有需要,详情评论区留言 作者回复具体解决方案