發(fā)布 HashiCorp Consul Helm Chart

SEP 12 2018 MITCHELL HASHIMOTO

We're releasing HashiCorp Consul + Kubernetes features every week. This week we're releasing the official Consul Helm Chart for running and configuring Consul on Kubernetes.

Using the Helm chart, you can start a complete Consul cluster on Kubernetes in minutes. The Helm chart can setup and configure a Consul server cluster, client agents, or both. The Helm chart will also be the primary mechanism for setting up future Consul and Kubernetes features.

Video

To learn more about the Consul Helm chart, watch the video below or scroll down to read more. The video below shows the Helm chart being used to install, reconfigure, and upgrade Consul.

Youtube:https://www.youtube.com/watch?time_continue=2&v=26B5QJyE8uI

Youku:http://v.youku.com/v_show/id_XMzgyMTk5MzQ4MA==.html?spm=a2h3j.8428770.3416059.1

Running a Consul Cluster

The Helm chart can be used to setup Consul on Kubernetes in minutes.

The chart is currently available via the hashicorp/consul-helm GitHub repository. We plan on supporting official Helm repositories in the future. For now you must download or clone this repository to get started. After downloading the repository, please check out a tagged release:

$ git clone https://github.com/hashicorp/consul-helm.git
$ cd consul-helm/
$ git checkout v0.1.0 

Then, install the chart:

$ helm install .
...

In a few minutes, you'll have a three node server cluster deployed, bootstrapped, and joined with a Consul agent running on every Kubernetes node. Once the pods are up and ready, you can view the Consul UI by forwarding port 8500 from a server pod and opening your browser to http://localhost:8500/.

$ kubectl port-forward consul-server-0 8500:8500
...

<center style="box-sizing: border-box;">

</center>

The Helm chart is highly configurable. You can use the configuration to disable components, change the image used, expose the UI service, configure resource requirements, storage classes, and much much more. See the full reference documentation of available chart configuration options for more information.

For Consul Enterprise users, a custom image can be configured with the Helm chart. HashiCorp does not currently publish official Docker images for Consul Enterprise. We plan to do this, but in the mean time if you create custom Docker images in private repositories, you can configure the Helm chart to use those images.

Running a Client-Only Cluster

In addition to deploying a full server cluster, the Helm chart can be used to deploy a client-only cluster. This is a common deployment pattern where the Consul servers are run outside of the Kubernetes cluster. The example configuration below enables this deployment model:

global:
  enabled: false

client:
  enabled: true
  join:
    - "provider=aws tag_key=... tag_value=..."

This configuration disables all Helm chart components by default, then explicitly enables only clients. The joinconfiguration then uses cloud auto-join to discover and join pre-existing Consul server agents.

The Helm chart supports dozens of configuration options. See the full reference documentation of available chart configuration options for more information.

Next

The Consul Helm chart provides a single package for installing, configuring, and upgrading Consul on Kubernetes, as well as future Consul + Kubernetes components. The Helm chart is available now on GitHub. To learn more, see the Helm Chart documentation or the documentation on Running Consul on Kubernetes.

We have more exciting Consul + Kubernetes integrations being released in the coming weeks. Please read the Consul and Kubernetes announcement blog post to learn more.

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末吐葱,一起剝皮案震驚了整個(gè)濱河市俏脊,隨后出現(xiàn)的幾起案子霞溪,更是在濱河造成了極大的恐慌,老刑警劉巖惹资,帶你破解...
    沈念sama閱讀 211,348評(píng)論 6 491
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場離奇詭異,居然都是意外死亡幌缝,警方通過查閱死者的電腦和手機(jī),發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 90,122評(píng)論 2 385
  • 文/潘曉璐 我一進(jìn)店門诫欠,熙熙樓的掌柜王于貴愁眉苦臉地迎上來涵卵,“玉大人,你說我怎么就攤上這事荒叼〗钨耍” “怎么了?”我有些...
    開封第一講書人閱讀 156,936評(píng)論 0 347
  • 文/不壞的土叔 我叫張陵被廓,是天一觀的道長坏晦。 經(jīng)常有香客問我,道長嫁乘,這世上最難降的妖魔是什么昆婿? 我笑而不...
    開封第一講書人閱讀 56,427評(píng)論 1 283
  • 正文 為了忘掉前任,我火速辦了婚禮蜓斧,結(jié)果婚禮上仓蛆,老公的妹妹穿的比我還像新娘。我一直安慰自己挎春,他們只是感情好多律,可當(dāng)我...
    茶點(diǎn)故事閱讀 65,467評(píng)論 6 385
  • 文/花漫 我一把揭開白布痴突。 她就那樣靜靜地躺著,像睡著了一般狼荞。 火紅的嫁衣襯著肌膚如雪辽装。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 49,785評(píng)論 1 290
  • 那天相味,我揣著相機(jī)與錄音拾积,去河邊找鬼。 笑死丰涉,一個(gè)胖子當(dāng)著我的面吹牛拓巧,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播一死,決...
    沈念sama閱讀 38,931評(píng)論 3 406
  • 文/蒼蘭香墨 我猛地睜開眼肛度,長吁一口氣:“原來是場噩夢(mèng)啊……” “哼!你這毒婦竟也來了投慈?” 一聲冷哼從身側(cè)響起承耿,我...
    開封第一講書人閱讀 37,696評(píng)論 0 266
  • 序言:老撾萬榮一對(duì)情侶失蹤,失蹤者是張志新(化名)和其女友劉穎伪煤,沒想到半個(gè)月后加袋,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 44,141評(píng)論 1 303
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡抱既,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 36,483評(píng)論 2 327
  • 正文 我和宋清朗相戀三年职烧,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片防泵。...
    茶點(diǎn)故事閱讀 38,625評(píng)論 1 340
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡蚀之,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出捷泞,到底是詐尸還是另有隱情恬总,我是刑警寧澤,帶...
    沈念sama閱讀 34,291評(píng)論 4 329
  • 正文 年R本政府宣布肚邢,位于F島的核電站壹堰,受9級(jí)特大地震影響,放射性物質(zhì)發(fā)生泄漏骡湖。R本人自食惡果不足惜贱纠,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 39,892評(píng)論 3 312
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望响蕴。 院中可真熱鬧谆焊,春花似錦、人聲如沸浦夷。這莊子的主人今日做“春日...
    開封第一講書人閱讀 30,741評(píng)論 0 21
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至罐孝,卻和暖如春呐馆,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背莲兢。 一陣腳步聲響...
    開封第一講書人閱讀 31,977評(píng)論 1 265
  • 我被黑心中介騙來泰國打工汹来, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留,地道東北人改艇。 一個(gè)月前我還...
    沈念sama閱讀 46,324評(píng)論 2 360
  • 正文 我出身青樓收班,卻偏偏與公主長得像,于是被迫代替她去往敵國和親谒兄。 傳聞我的和親對(duì)象是個(gè)殘疾皇子摔桦,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 43,492評(píng)論 2 348

推薦閱讀更多精彩內(nèi)容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi閱讀 7,308評(píng)論 0 10
  • 晚風(fēng)拂面,我并未感到特別孤獨(dú) 2017年7月27日承疲,不是個(gè)很特殊的日子邻耕,天氣不算很好,上午有點(diǎn)陰沉纪隙,我一度...
    聶美麗閱讀 159評(píng)論 0 0
  • 我得坦然的承認(rèn)绵咱,我從來沒有真正的放下過。關(guān)于過去的種種熙兔,總是讓我淚流滿面悲伶。 上周狀態(tài)特別不好。當(dāng)...
    蕭瑟處1981閱讀 199評(píng)論 0 0
  • 哲學(xué)就像是一首詩住涉,訴說著未來麸锉,現(xiàn)在以及過去 把所有隱藏于內(nèi)心的情感以深化的語言向你透露 智慧布滿星空,卻像一束光般...
    昆悠閱讀 371評(píng)論 0 7
  • 文/蒙山樵夫 走親戚是農(nóng)村老家千百年來的習(xí)俗舆声。 在我們老家花沉,一般是春節(jié)后、麥?zhǔn)蘸笙蔽眨瑑蓚€(gè)比...
    蒙山樵夫下山來閱讀 1,108評(píng)論 3 2