当前位置:首页 >> 行情

K8S初体验(三)运用于k8s部署loki+prometail+grafana

来源:行情   2024年01月16日 12:16

de | grep promtail|awk {'print $6'}kubectl logs loki-promtail-v6998 -n kube-ops

4、一些报错的无论如何

定名为空间统一:namespace: kube-ops,有想到改的就就会报错。kubectl apply -f的时候别想到-n kube-ops,否则建到default中的,你在其他空间找不到的。appVersion适用apps/v1这样的,网上的有些就会变更,看报错就知道了selector报错:就是便是下列(可知后图)还有mountPath和hostPath一致selector: matchLabels: app: grafana 图二、肯定点

图三、肯定点

图四:肯定点,mountPath和hostPath需要一致,找不到就到桶内中的看看清单,然后改了复建

图五:这个我是释义了,也不知道就会才就会有啥情况,也不知道啥状况,但是不释义就是报readonly,不曾mkdir

invalid type for io.k8s.api.core.v1.ConfigMap.data: got "map", expected "string";error: unable to recognize "grafana-deploy.yaml": no matches for kind "Deployment" in version "extensions/v1beta1"missing required field "selector" in io.k8s.api.apps.v1.DeploymentSpec; i2 pod has unbound immediate PersistentVolumeClaimsUnexpected error getting claim reference to claim "kube-ops/www-nfs-web-0": selfLink was empty, can't make reference---侧面有图标号为1的images可以解决这个情况。Failed to watch *v1.Pod: failed to list *v1.Pod: pods is forbidden: User "system:serviceaccount:kube-ops:loki-promtail" cannot list resource "pods" in API group "" at the cluster scope0/2 nodes are ailable: 2 persistentvolumeclaim "storage-loki-0" not found.。

牙疼怎样止痛
胃酸过多吃什么药好得快
新冠特效药
吃什么治疗拉肚子
患了类风湿关节晨僵怎么治
友情链接