在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):kelseyhightower/consul-on-kubernetes开源软件地址(OpenSource Url):https://github.com/kelseyhightower/consul-on-kubernetes开源编程语言(OpenSource Language):Shell 100.0%开源软件介绍(OpenSource Introduction):Running Consul on KubernetesThis tutorial will walk you through deploying a three (3) node Consul cluster on Kubernetes. Overview
PrerequisitesThis tutorial leverages features available in Kubernetes 1.11.0 and later.
The following clients must be installed on the machine used to follow this tutorial: UsageClone this repo:
Change into the
Generate TLS CertificatesRPC communication between each Consul member will be encrypted using TLS. Initialize a Certificate Authority (CA):
Create the Consul TLS certificate and private key:
At this point you should have the following files in the current working directory:
Generate the Consul Gossip Encryption KeyGossip communication between Consul members will be encrypted using a shared encryption key. Generate and store an encrypt key:
Create the Consul Secret and ConfigmapThe Consul cluster will be configured using a combination of CLI flags, TLS certificates, and a configuration file, which reference Kubernetes configmaps and secrets. Store the gossip encryption key and TLS certificates in a Secret:
Store the Consul server configuration file in a ConfigMap:
Create the Consul ServiceCreate a headless service to expose each Consul member internally to the cluster:
Create the Consul Service Account
Create the Consul StatefulSetDeploy a three (3) node Consul cluster using a StatefulSet:
Each Consul member will be created one by one. Verify each member is
VerificationAt this point the Consul cluster has been bootstrapped and is ready for operation. To verify things are working correctly, review the logs for one of the cluster members.
The consul CLI can also be used to check the health of the cluster. In a new terminal start a port-forward to the
Run the
Accessing the Web UIThe Consul UI does not support any form of authentication out of the box so it should not be exposed. To access the web UI, start a port-forward session to the
Visit http://127.0.0.1:8500 in your web browser. CleanupRun the
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论