Kube:在VS Code中管理Helm charts
最新
04-02
Kube:在VS Code中管理Helm charts
.配置VS Code環境
在vs code中安裝kubernetes擴展。
在本地安裝kubectl.exe和helm.exe。
將kubectl.exe和helm.exe配置到$PATH環境變數。
將admin的kubeconfig拷貝至$HOME的.kube目錄。
使用helm初始化本地環境。
在vs code中可以查看kubeconfig中配置的k8s集群的對象信息。
在vs code中可以使用helm連接到遠程tiller server。
helm使用kubectl port-forward建立與tiller server通信的隧道。
建立helm charts workspace。
使用本地helm將chart通過遠程tiller server部署到目標k8s集群。
.配置Monocular
使用chart部署monocular。
將monocular的cache refresh周期設置為120秒。
使用helm serve啟動私有helm repo和repo source。
在monocular中添加私有repo。
在monocular中查看私有repo。
在monocular中查看私有chart。
![](https://pic.pimg.tw/zzuyanan/1488615166-1259157397.png)
![](https://pic.pimg.tw/zzuyanan/1482887990-2595557020.jpg)
TAG:UpInTheVir |