kubernetes-helm - 创建安装了 Helm 2 的 AKS 群集
问题描述
Azure Kubernetes 服务 (AKS) 最近升级到 Helm 3。我喜欢 Helm 3 带来的好处,并且很高兴使用它。
但是那里的大部分工具(即 Jenkins X)还没有为 Helm 3 做好准备。
是否有用于创建使用 Helm 2 的 AKS 群集的命令行选项?
解决方案
您可以将 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
推荐阅读
- javascript - 使用 webpack 或 node.js 编译器包装所有函数和方法
- excel - “ONLY FILTER IF”功能?
- python - 对于 Axes3D.scatter(),如何将使用 3 个向量描述的点更改为 python 中 MatPlotLib 的 2 个数字?
- c++ - 优化的clang处理溢出
- html - 除非我推迟 JavaScript 文件链接,否则 Vue 小胡子模板不起作用
- php - WooCommerce:如何检查特定产品是否存在元密钥
- python - 当值高于列中位数(1,否则为0)时,如何将数据转换为二进制?
- regex - 正则表达式,如何匹配:字符串 + 中间任意数量的字符 + 字符串
- excel - MATCH 函数在某些单元格上显示错误,但对其他单元格有效
- python - 如何获取更新的旋转框值 - tkinter