【consul】在阿里云kubernetes集群上(AKS)通过Helm 安装consul集群

本文档详细记录了如何在阿里云Kubernetes集群(AKS)上,遵循官方指南并通过Helm来安装和配置Consul集群,过程中遇到了一些问题并提供了解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

官方文档:
https://www.consul.io/docs/k8s/installation/install

官方文档总是多少会有些坑的
如下是我整理的安装文档:

#添加官方helm仓库
helm repo add hashicorp https://helm.releases.hashicorp.com

#确定可安装的版本
helm search repo hashicorp/consul

#使用默认配置安装,注意,请使用helm 3.7版本,如果报Error: unknown flag: --create-namespace 说明你的helm版本太低了
helm install consul hashicorp/consul --set global.name=consul --create-namespace -n consul

#使用自定义配置文件安装
helm install consul hashicorp/consul --set global.name=consul --create-namespace -n consul -f config.yaml  
#自定义配置文件内容config.yaml

		global:
		  name: consul
		  # Bootstrap ACLs within Consul. This is highly recommended.
		  acls:
		    manageSystemACLs: true
		  # Gossip encryption
		  gossipEncryption:
		    autoGenerate: true
		# Configure your Consul servers in this section.
		server:
		  # Specify three servers that wait until all are healthy to bootstrap the Consul cluster.
		  replicas: 3
		  storage: 20Gi
		  storageClass: alicloud-disk-essd
		  # Specify th
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值