k8s常见报错及解决方法解析
发布时间
阅读量:
阅读量
【报错】
Service "kubernetes-dashboard": cannot be used, as it is forbidden to use when the type is 'ClusterIP': spec.ports[0].nodePort.
【原因】
如果在service中没有指定type类型,默认采用ClusterIP
【解决】
prometheus-service.yaml
---
spec:
type: NodePort #加入
ports:
- name: web
port: 9090
nodePort: 30000
【报错】
Error attempting to update node status, the system will continue trying: encountering an error while retrieving the node labeled "k8s-master-02": accessing https://192.168.80.100:16443/api/v1/nodes/k8s-master-02?timeout=10s resulted in connection issues by dialing TCP to 192.168.80.100:16443
全部评论 (0)
还没有任何评论哟~
