automatic spot pricing for kops deployment

给你一囗甜甜゛ 提交于 2019-12-23 17:37:53

问题


I can already do spot deployments with kops but it requires manually editing a the instance groups (nodes)

$ kops edit ig --name=test.dev.test.com nodes
  machineType: t2.medium
  maxSize: 2
  minSize: 2
=>
  machineType: t1.nano
  maxSize: 1
  minSize: 1

Need to look into a way of doing this automatically with the average spot price + 10%

I would also like to have at least 1 master and 1 node that are running on normal instances to survive a complete spot-overbid shutdown and the rest to spot price.

Can anyone help me with this?


回答1:


You could use Argo minion-manager. This is part of open-source workflow engine for Kubernetes Argo , but can be run on any kubernetes cluster. Minion-manager runs as deployment and periodically updates spot instance prices using the AWS pricing API.

More information about minion-manager is available here: https://blog.argoproj.io/use-spot-instances-with-your-kubernetes-clusters-on-aws-2a27f1887bb0



来源:https://stackoverflow.com/questions/45848298/automatic-spot-pricing-for-kops-deployment

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!