热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

kubeneretesoperatorfailstostart

Whatdidyoudo?Nothing,kubernetesoperatorrestartedbyitself.A

What did you do?
Nothing, kubernetes operator restarted by itself. After restarting, it got stuck on a crash loop. I tried to recreate it, but it fails.
What did you expect to see?

kubernetes-operator does not crash loop

What did you see instead? Under which circumstances?

kubernetes-operator crash loops

Environment

Kops AWS v1.8.0

  • Kubernetes version information:

Client Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.2", GitCommit:"5fa2db2bd46ac79e5e00a4e6ed24191080aa463b", GitTreeState:"clean", BuildDate:"2018-01-18T21:12:46Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.0", GitCommit:"6e937839ac04a38cac63e6a7a306c5d035fe7b0a", GitTreeState:"clean", BuildDate:"2017-09-28T22:46:41Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}

  • Kubernetes cluster kind:

Kops AWS v1.8.0

  • Manifests:

All default except for aws load balanced prometheus service

  • Prometheus Operator Logs:

2018-02-12T23:17:47.162572304Z ts=2018-02-12T23:17:47.162243797Z caller=operator.go:156 compOnent=alertmanageroperator msg="connection established" cluster-version=v1.8.0
2018-02-12T23:17:47.162840421Z ts=2018-02-12T23:17:47.162701034Z caller=operator.go:257 compOnent=prometheusoperator msg="connection established" cluster-version=v1.8.0
2018-02-12T23:17:47.164968205Z ts=2018-02-12T23:17:47.164694593Z caller=operator.go:170 compOnent=alertmanageroperator msg="CRD API endpoints ready"
2018-02-12T23:17:47.169490417Z ts=2018-02-12T23:17:47.169204619Z caller=operator.go:303 compOnent=alertmanageroperator msg="Alertmanager added" key=monitoring/main
2018-02-12T23:17:47.247001533Z ts=2018-02-12T23:17:47.24664382Z caller=operator.go:323 compOnent=alertmanageroperator msg="Alertmanager updated" key=monitoring/main
2018-02-12T23:17:47.247942277Z ts=2018-02-12T23:17:47.247754274Z caller=operator.go:379 compOnent=alertmanageroperator msg="sync alertmanager" key=monitoring/main
2018-02-12T23:17:47.346454739Z ts=2018-02-12T23:17:47.346131562Z caller=operator.go:1035 compOnent=prometheusoperator msg="CRD created" crd=Prometheus
2018-02-12T23:17:47.446679243Z ts=2018-02-12T23:17:47.446258093Z caller=operator.go:1035 compOnent=prometheusoperator msg="CRD created" crd=ServiceMonitor
2018-02-12T23:17:47.546456369Z E0212 23:17:47.546096 1 operator.go:255] Sync "monitoring/main" failed: creating statefulset failed: statefulsets.apps "alertmanager-main" already exists
2018-02-12T23:17:47.547239207Z ts=2018-02-12T23:17:47.546963148Z caller=operator.go:379 compOnent=alertmanageroperator msg="sync alertmanager" key=monitoring/main
2018-02-12T23:17:47.647580584Z E0212 23:17:47.647423 1 operator.go:255] Sync "monitoring/main" failed: creating statefulset failed: statefulsets.apps "alertmanager-main" already exists
2018-02-12T23:17:47.647698239Z ts=2018-02-12T23:17:47.647467106Z caller=operator.go:379 compOnent=alertmanageroperator msg="sync alertmanager" key=monitoring/main
2018-02-12T23:17:47.74641215Z E0212 23:17:47.746122 1 operator.go:255] Sync "monitoring/main" failed: creating statefulset failed: statefulsets.apps "alertmanager-main" already exists
2018-02-12T23:17:47.746535052Z ts=2018-02-12T23:17:47.746205004Z caller=operator.go:379 compOnent=alertmanageroperator msg="sync alertmanager" key=monitoring/main
2018-02-12T23:17:47.756038249Z ts=2018-02-12T23:17:47.755795024Z caller=operator.go:379 compOnent=alertmanageroperator msg="sync alertmanager" key=monitoring/main
2018-02-12T23:17:47.766503496Z ts=2018-02-12T23:17:47.766350285Z caller=operator.go:379 compOnent=alertmanageroperator msg="sync alertmanager" key=monitoring/main
2018-02-12T23:17:53.4537421Z ts=2018-02-12T23:17:53.453558451Z caller=main.go:128 msg="Unhandled error received. Exiting..." err="creating CRDs failed: timed out waiting for Custom Resoruce: json: cannot unmarshal string into Go value of type []string"

该提问来源于开源项目:prometheus-operator/prometheus-operator

If possible I recommend to delete the configmaps created in the default namespace and recreate the Promteheus, Alertmanager and ServiceMonitor objects.


推荐阅读
  • Gradle 是 Android Studio 中默认的构建工具,了解其基本配置对于开发效率的提升至关重要。本文将详细介绍如何在 Gradle 中定义和使用共享变量,以确保项目的一致性和可维护性。 ... [详细]
  • 本文详细介绍了如何使用Linux下的mysqlshow命令来查询MySQL数据库的相关信息,包括数据库、表以及字段的详情。通过本文的学习,读者可以掌握mysqlshow命令的基本语法及其常用选项。 ... [详细]
  • 【MySQL】frm文件解析
    官网说明:http:dev.mysql.comdocinternalsenfrm-file-format.htmlfrm是MySQL表结构定义文件,通常frm文件是不会损坏的,但是如果 ... [详细]
  • Docker安全策略与管理
    本文探讨了Docker的安全挑战、核心安全特性及其管理策略,旨在帮助读者深入理解Docker安全机制,并提供实用的安全管理建议。 ... [详细]
  • 本文介绍如何通过Java代码调用阿里云短信服务API来实现短信验证码的发送功能,包括必要的依赖添加和关键代码示例。 ... [详细]
  • 在使用mybatis进行mapper.xml测试的时候发生必须为元素类型“mapper”声明属性“namespace”的错误项目目录结构UserMapper和UserMappe ... [详细]
  • C/C++ 应用程序的安装与卸载解决方案
    本文介绍了如何使用Inno Setup来创建C/C++应用程序的安装程序,包括自动检测并安装所需的运行库,确保应用能够顺利安装和卸载。 ... [详细]
  • 本文详细介绍了如何使用C#实现不同类型的系统服务账户(如Windows服务、计划任务和IIS应用池)的密码重置方法。 ... [详细]
  • 本文详细介绍了如何在 Ubuntu 14.04 系统上搭建仅使用 CPU 的 Caffe 深度学习框架,包括环境准备、依赖安装及编译过程。 ... [详细]
  • 解决Win10 1709版本文件共享安全警告问题
    每当Windows 10发布新版本时,由于兼容性问题往往会出现各种故障。近期,一些用户在升级至1709版本后遇到了无法访问共享文件夹的问题,系统提示‘文件共享不安全,无法连接’。本文将提供多种解决方案,帮助您轻松解决这一难题。 ... [详细]
  • Logging all MySQL queries into the Slow Log
    MySQLoptionallylogsslowqueriesintotheSlowQueryLog–orjustSlowLog,asfriendscallit.However,Thereareseveralreasonstologallqueries.Thislistisnotexhaustive:Belowyoucanfindthevariablestochange,astheyshouldbewritteninth ... [详细]
  • 申请地址:https://developer.apple.com/appstore/contact/?topic=expedite 常见申请理由:1. 我们即将发布新产品,这是一个媒体活动,我们无法承担任何风险,因此在多个方面努力提升应用质量。 ... [详细]
  • MySQL的查询执行流程涉及多个关键组件,包括连接器、查询缓存、分析器和优化器。在服务层,连接器负责建立与客户端的连接,查询缓存用于存储和检索常用查询结果,以提高性能。分析器则解析SQL语句,生成语法树,而优化器负责选择最优的查询执行计划。这一流程确保了MySQL能够高效地处理各种复杂的查询请求。 ... [详细]
  • 本文介绍了一种在 Android 开发中动态修改 strings.xml 文件中字符串值的有效方法。通过使用占位符,开发者可以在运行时根据需要填充具体的值,从而提高应用的灵活性和可维护性。 ... [详细]
  • Spring Security基础配置详解
    本文详细介绍了Spring Security的基础配置方法,包括如何搭建Maven多模块工程以及具体的安全配置步骤,帮助开发者更好地理解和应用这一强大的安全框架。 ... [详细]
author-avatar
zengshiming
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有