在阿里云容器服务(Kubernetes、k8s)上搞 HashiCorp Vault(高可用)with HashiCorp Consul

参考链接,先谢谢各位:
k8s consul : https://github.com/kelseyhightower/consul-on-kubernetes
GCP k8s vault : https://github.com/kelseyhightower/vault-on-google-kubernetes-engine
使用 Vault : https://www.jianshu.com/p/267f2d9ae87e
Vault 系列文章 : https://yuhao.space/blog/2018/02/vault-introduction/

以及:
Vault 官方文档 : https://www.vaultproject.io/intro

我是在对 k8s 零知识、以及对 Vault 的使用场景没有丝毫概念的情况下做的如下操作,所以可能并不是最佳实践。

为什么搞它呢?因为沈老板表示他搞到一半自己就先崩溃了……😂

... If the standby nodes receive a request, they will either forward the request or redirect the client depending on the current configuration and state of the cluster ...

---- High Availability Mode

先简单说下架构:3个 Consul 作为高可用存储节点、2个 Vault 对外提供服务。根据官方文档的高可用章节(上面),待命节点收到请求后会把请求转发给活跃节点。所以对外提供服务的时候,使用 LoadBalancer 模式是没有问题的。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容