4. Kubernetes 之 WebUI管理 Portainer
1.安装 Portainer
Portainer 是一个轻量级的容器管理工具,可以用来管理Docker和Kubernetes,它提供了一个Web界面来方便我们管理容器,
官方网址: https://www.portainer.io/
1.使用官方提供的 yaml 文件安装:
- 在master节点上安装portainer,并将其暴露在NodePort 30777上
- kubectl apply -n portainer -f https://downloads.portainer.io/ce2-19/portainer.yaml
2.使用 Helm 包管理器安装:
- helm upgrade --install --create-namespace -n portainer portainer portainer/portainer --set tls.force=true
- 然后直接访问 https://ipaddress:30779/ 或者 http://ipaddress:30777/ 就可以了
2.安装 Helm
Helm 是一个Kubernetes的包管理工具,可以用来管理Kubernetes的应用,它提供了一个命令行工具来方便我们管理Kubernetes的应用,
官方网址: https://helm.sh/
1.使用包管理器安装:
macOS
- brew install helm
Windows
- choco install kubernetes-helm
- scoop install helm
Linux(Debian/Ubuntu)
- curl https://baltocdn.com/helm/signing.asc | gpg --dearmor | sudo tee /usr/share/keyrings/helm.gpg > /dev/null
- sudo apt-get install apt-transport-https --yes
- echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/helm.gpg] https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list
- sudo apt-get update
- sudo apt-get install helm
Linux(CentOS/Fedora)
- sudo dnf install helm
Linux(Snap)
- sudo snap install helm --classic
Linux(FreeBSD)
- pkg install helm
2.使用脚本安装:
- $ curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
- $ chmod 700 get_helm.sh
- $ ./get_helm.sh
或者- curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
分类:
Kubernetes
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 25岁的心里话
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 按钮权限的设计及实现