- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试为我的Kubernetes集群设置AlertManager。我遵循了这份文档(https://github.com/coreos/prometheus-operator/blob/master/Documentation/user-guides/getting-started.md)->一切正常。
为了设置AlertManager,我正在研究此文档(https://github.com/coreos/prometheus-operator/blob/master/Documentation/user-guides/alerting.md)
我正在获取CrashLoopBackOff
的alertmanager-example-0
。请检查随附的日志:
第一张图片:$ kubectl logs -f prometheus-operator-88fcf6d95-zctgw -n monitoring
第二张图片:$ kubectl describe pod alertmanager-example-0
谁能指出我做错了什么?提前致谢。
最佳答案
听起来您遇到了一个问题,即警报管理器 Pane 使用的RBAC和Service Account(system:serviceaccount:monitoring:prometheus-operator
)没有足够的权限与kube-apiserver对话。
对于您的Prometheus运算符,它具有如下所示的ClusterRoleBinding prometheus-operator
:
$ kubectl get clusterrolebinding prometheus-operator -o=yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
labels:
app: prometheus-operator
name: prometheus-operator
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: prometheus-operator
subjects:
- kind: ServiceAccount
name: prometheus-operator
namespace: monitoring
ClusterRole
应该看起来像这样:
$ kubectl get clusterrole prometheus-operator -o=yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
app: prometheus-operator
name: prometheus-operator
rules:
- apiGroups:
- extensions
resources:
- thirdpartyresources
verbs:
- '*'
- apiGroups:
- apiextensions.k8s.io
resources:
- customresourcedefinitions
verbs:
- '*'
- apiGroups:
- monitoring.coreos.com
resources:
- alertmanager
- alertmanagers
- prometheus
- prometheuses
- service-monitor
- servicemonitors
- prometheusrules
verbs:
- '*'
- apiGroups:
- apps
resources:
- statefulsets
verbs:
- '*'
- apiGroups:
- ""
resources:
- configmaps
- secrets
verbs:
- '*'
- apiGroups:
- ""
resources:
- pods
verbs:
- list
- delete
- apiGroups:
- ""
resources:
- services
- endpoints
verbs:
- get
- create
- update
- apiGroups:
- ""
resources:
- nodes
verbs:
- list
- watch
- apiGroups:
- ""
resources:
- namespaces
verbs:
- list
- watch
关于docker - Prometheus的AlertManager中的CrashLoopBackOff,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53545717/
我的图片托管在 GCR 上。我想在我的本地系统 (mac) 上创建 Kubernetes 集群。 我遵循的步骤: 创建一个 imagePullSecretKey 创建通用 key 以与 GCP 通信。
当 Kubernetes Pod 进入 CrashLoopBackOff 状态时,您将修复根本问题。如何强制重新安排时间? 最佳答案 要应用新配置,应创建新 Pod(旧 Pod 将被删除)。 如果您的
我正在设置具有高可用性的kafka和zookeeper集群。我有2个kafka代理(pod1,pod2)和3个zookeeper(pod1,pod2,pod3)。设置工作正常。当我进入一个kafka经
我使用 Google Kubernetes Engine 并且故意在代码中添加了错误。我希望滚动更新会在发现状态为 CrashLoopBackOff 时停止,但事实并非如此。 在此 page , 他们
环境:(内部部署):- K8s-Master Server: Standalone Physical server. OS - CentOS Linux release 8.2.2004 (Core)
我无法在我的1个主节点群集上启动kube-apiserver。 kubelet继续尝试启动服务,但始终获得CrashLoopBackOff。 我试图使用docker run命令运行容器,并且得到以下日
虽然有一些像我一样的问题,但修复对我不起作用。 我正在使用 kubernetes v1.9.3 二进制文件并使用 flannel 和 calico 来设置 kubernetes 集群。应用 calic
Error from server: Get https://10.128.15.203:10250/containerLogs/default/postgres-54db6bdb8b-cmrsb/p
我正在使用kubeadm在CentOS 7.4 / Docker 1.12.6上创建kubernetes v1.9.3集群。 我正在按照Using kubeadm to Create a Cluste
我正在创建一个带有一个初始化容器的复制 Controller 。但是 init 容器无法启动并且 pod 的状态是: NAME READY STAT
我有以下设置: docker hub 上的 docker 镜像 omg/telperion一个 kubernetes 集群(有 4 个节点,每个节点有 ~50GB RAM)和大量资源 我按照教程将图像
我是 Kubernetes 的菜鸟。我正在尝试按照一些方法来启动并运行一个小集群,但是我遇到了麻烦...... 我有一个主节点和 (4) 个节点,都运行 Ubuntu 16.04 在所有节点上安装 d
我正在尝试将容器部署到 AKS,但 Pod 始终处于 CrashLoopBackOff 状态并重新启动。我尝试了不同的 Pod,但显然与这方面无关。 该 Pod 具有非常简单的功能行为,可以在本地正常
我有 2 个虚拟机节点。两者可以通过主机名(通过/etc/hosts)或通过 IP 地址相互查看。已将 kubeadm 配置为 master。另一个作为工作节点。按照说明( http://kubern
我按照以下指南使用 kubeadm 创建了一个 HA 集群: https://kubernetes.io/docs/setup/production-environment/tools/kubeadm
我是OpenWhisk的新手,在安装过程中遇到了一些困难。 由于Pod中的错误,Ngnix Pod正在CrashLoopBackOff中运行。 2018/07/02 16:14:27 [emerg]
我在 ubuntu 16.04 中设置了 kubernetes。我正在使用 kube 版本 1.13.1 并使用 weave 进行网络连接。我已经使用以下方法初始化了集群: sudo kubeadm
我定期看到容器 状态:终止 - OOMKilled (退出代码:137) 但是被调度到内存充足的节点 $ k get statefulset -n metrics NAME
我在 Kubernetes 1.0 中运行一个集群,我有一些容器我想定期运行,作为 pod 中的 sidecar 容器——通常是推送或拉取备份。我通过使用包含我想要备份的数据的容器和用于备份它的 si
我正在使用 kubernetes 集群使用 kubectl create -f dummy.yaml 部署图像。我的图像在 docker hub 中是公开的,图像大小为 1.3 GB。 图像拉取成功但
我是一名优秀的程序员,十分优秀!