首页 \ 问答 \ GCE Kubernetes上的自动集群设置和应用程序部署(Automatic cluster setup and app deployment on GCE Kubernetes)

GCE Kubernetes上的自动集群设置和应用程序部署(Automatic cluster setup and app deployment on GCE Kubernetes)

我们正在寻找一种可靠的,声明性的(基于yaml),基于自动化在Google容器引擎上自动设置Kubernetes集群和应用程序部署。

作为严重失败的最后手段,我们希望能够:

  • 创建一个新的GCE集群
  • 执行我们的所有部署到他们的最新版本
  • 按正确的顺序执行所有步骤

人们目前使用的解决方案是什么。 手动执行此操作需要大约一个小时,并且容易出错。 真的,如果自动化可能需要15-20分钟。


We are looking for a solid, declarative (yaml), based proceedure to automate the setup of our Kubernetes cluster and application deployments on Google Container Engine.

As our last resort in a serious failure we want to be able to:

  • Create a new GCE cluster
  • Execute all our deployments to their latest versions
  • Execute all the steps in the correct order

What are the solutions people are currently using. Doing this manually takes us about an hour and is error prone. Really it could take 15-20 mins if automated.


原文:https://stackoverflow.com/questions/42708972
更新时间:2021-12-18 20:12

最满意答案

你想要做的只适用于新式课程。 要在Python 2中声明一个新式的类,你需要拥有

class Celsius(object):

代替

class Celsius:

在Python 3中,所有类都是新式的,因此普通class Celsius工作正常。


What you're trying to do only works in new-style classes. To declare a new-style class in Python 2, you need to have

class Celsius(object):

instead of

class Celsius:

In Python 3, all classes are new-style, so the plain class Celsius works fine.

相关问答

更多
  • 首先,尝试集成一个好的CSS重置(你可以在www.html5boilerplate.com找到一个好的重置)。 其次,我只能假设菜单CSS / HTML代码(为什么你不在这里发布代码?什么时候在线,每个人都可以阅读你的css / js / html代码!): HTML:
  • 刚刚发现在cellForItemAtIndexPath中禁用用户交互时,将对出列的可重用单元禁用交互。 我只需要为出列的可重用单元重置用户交互。 Just found out when the user interaction is disabled in the cellForItemAtIndexPath, the interaction will be disabled for the dequeued reusable cell. I just needed to reset the user in ...
  • Golang没有提供典型的继承概念。 你在这里完成的是编程。 它不会为外部结构赋予内部结构的字段,而是允许外部结构访问内部结构的字段。 为了创建外部结构你需要给它的字段包含内部结构Base 在你的情况下: Something{Base: Base{a: "letter a"}, c: "letter c"} Golang doesn't provide the typical notion of inheritance. What you're accomplishing here is emedding ...
  • 我不能正确的例子,因为每个人的实现都有所不同,但我要说明一个包装任何组件的HelloWrapper组件示例,如果它接收到sayHello prop为true,它会呈现Hello而不是实际组件,你可以检查登录道具和重定向或显示登录组件..在您的情况下。 编写一个函数将道具从实际组件复制到包装器 HoistNonReactStatistics.tsx或jsx(我使用的是打字稿) const REACT_STATICS = { childContextTypes: true, contex ...
  • 下面是您的代码格式更好,以便您可以看到您所犯的错误。 结尾有3个if语句; 而不是{如你所愿。 使用现在格式化的代码,您应该注意到,除了一堆嵌套的if语句之外,您还有几个if语句将全部运行,即使第一个语句失败也是如此。 这就是你所看到的。 要解决这个问题,请删除; 在if语句的末尾,并添加{ 。 (我标记坏的ifs与/ / // BAD IF ) import java.util.Scanner; public class DateChecker111 { public static void ...
  • 您需要为.css切换.attr $('div').css('width','500'); $('img').css('width', '500'); https://codepen.io/MathiasaurusRex/pen/mKwGaz You'll want to switch out .attr for .css $('div').css('width','500'); $('img').css('width', '500'); https://codepen.io/Mathiasa ...
  • printf函数不会立即(以同步方式)将文本输出到屏幕或文件。 它确实存储文本以打印到libc缓冲区中,并且缓冲区在某个时间被刷新(写入屏幕或文件)(在'\ n'char或何时将有大量数据)。 fork之后,所有缓冲区都从父级复制到子级。 缓冲区中有一些文本,两个进程都将刷新缓冲区。 您应该考虑在fork()之前添加fflush()或通过setvbuf设置不同的缓冲区规则,例如禁用缓冲。 The printf function doesn't output text to the screen or to ...
  • 你想要做的只适用于新式课程。 要在Python 2中声明一个新式的类,你需要拥有 class Celsius(object): 代替 class Celsius: 在Python 3中,所有类都是新式的,因此普通class Celsius工作正常。 What you're trying to do only works in new-style classes. To declare a new-style class in Python 2, you need to have class Celsiu ...
  • 您收到异常,因为scrollText为null。 创建scrollText时,它将在构造函数中创建为局部变量。 JScrollPane scrolledText = new JScrollPane(theText); 它也被声明为一个字段,但由于它也在构造函数中声明为局部变量,因此该字段永远不会被初始化。 相反,只需: scrolledText = new JScrollPane(theText); You are getting an exception because scrollText is n ...
  • 实际上你正在获得你想要的行为,但是在你的承诺结束时i总是4,因为它在任何一个处理程序执行之前递增(你的for循环是同步的,但你的处理程序是异步的)。 通常,传递给all承诺不会同步解决,但由于您通过每个承诺创建一个链,您的调用只会在前一个完成之后触发。 旁注:我对Parse的promise实现并不是很熟悉,但你可以保存自己创建一个额外的数组并调用Parse.Promise.when只需从你的函数中返回promise链: function createCards(qty) { // create ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)