首页 > 解决方案 > 创建安装了 Helm 2 的 AKS 群集

问题描述

Azure Kubernetes 服务 (AKS) 最近升级到 Helm 3。我喜欢 Helm 3 带来的好处,并且很高兴使用它。

但是那里的大部分工具(即 Jenkins X)还没有为 Helm 3 做好准备。

是否有用于创建使用 Helm 2 的 AKS 群集的命令行选项?

标签: kubernetes-helmazure-container-service

解决方案


您可以将 helm 2 和 helm 3 与 AKS 一起使用。如果您从 AKS 群集上的 helm 2 客户端启动 helm init 命令,您仍然可以将 helm 2 与 AKS 一起使用。

在这种情况下要遵循的命令是:

az aks create -g MyResourceGroup -n MyCluster

az aks get-credentials -g MyResourceGroup -n MyCluster

kubectl config get-contexts // Gets the kubernetes contexts present locally
kubectl config use-context <context-name-for-aks-cluster>

// Install helm 2 if not already installed before proceeding with helm init
helm init

推荐阅读