当前位置:网站首页>安装porterLB
安装porterLB
2022-08-03 18:02:00 【麦晓宇】
Install PorterLB on Kubernetes
This document describes how to use kubectl and Helm to install and delete PorterLB in a Kubernetes cluster.
NOTE
- In a Kubernetes cluster, you only need to install PorterLB once. After the installation is complete, a porter-manager Deployment that contains a porter-manager Pod is installed in the cluster. The porter-manager Pod implements the functionality of PorterLB for the entire Kubernetes cluster.
- After the installation is complete, you can scale the porter-manager Deployment and assign multiple PorterLB replicas (porter-manager Pods) to multiple cluster nodes to ensure high availability. For details, see Configure Multiple PorterLB Replicas.
Prerequisites
You need to prepare a Kubernetes cluster, and ensure that the Kubernetes version is 1.15 or later. PorterLB requires CustomResourceDefinition (CRD) v1, which is only supported by Kubernetes 1.15 or later. You can use the following methods to deploy a Kubernetes cluster:
- Use KubeKey (recommended). You can use KubeKey to deploy a Kubernetes cluster with or without KubeSphere.
- Follow official Kubernetes guides.
PorterLB is designed to be used in bare-metal Kubernetes environments. However, you can also use a cloud-based Kubernetes cluster for learning and testing.
If you use Helm to install porter, ensure that the Helm version is Helm 3.
Install PorterLB Using kubectl
Log in to the Kubernetes cluster over SSH and run the following command:
kubectl apply -f https://raw.githubusercontent.com/kubesphere/porter/master/deploy/porter.yaml
Run the following command to check whether the status of porter-manager is READY: 1/1 and STATUS: Running. If yes, PorterLB has been installed successfully.
kubectl get po -n porter-system

Delete PorterLB Using kubectl
To delete PorterLB, log in to the Kubernetes cluster and run the following command:
kubectl delete -f https://raw.githubusercontent.com/kubesphere/porter/master/deploy/porter.yaml
NOTE
Before deleting PorterLB, you must first delete all Services that use PorterLB.
Run the following command to check the result. If the porter-system namespace does not exist, PorterLB has been deleted successfully.
kubectl get ns

Install PorterLB Using Helm
Log in to the Kubernetes cluster over SSH and run the following commands:
helm repo add test https://charts.kubesphere.io/testhelm repo updatehelm install porter test/porter
Run the following command to check whether the status of porter-manager is READY: 1/1 and STATUS: Running. If yes, PorterLB has been installed successfully.
kubectl get po -A

Delete PorterLB Using Helm
To delete PorterLB, run the following command:
helm delete porter
NOTE
Before deleting PorterLB, you must first delete all Services that use PorterLB.
Run the following command to check the result. If the PorterLB application does not exist, PorterLB has been deleted successfully.
helm ls

Last modified March 31, 2021: Relocated files to adapt to localization and changed links. (6b5fcb1)
边栏推荐
猜你喜欢
随机推荐
Discuz新闻资讯GBK模板
BigInteger :new BigInteger(tokenJson.getBytes()).toString(16)什么意思
MVCC多版本并发控制的理解
ICDAR competition technology sharing
Web3 security risks daunting?How should we respond?
JVM参数设置
细胞不可渗透的荧光探针 锌离子荧光探针Zinquin 151606-29-0
广告电商、泰山众筹、链动2+1,这3个模式到底怎么样?
【Deliberately practice the view of the back tube】deliberately practice
每周推荐短视频:为了填补学习资源的空缺,作者专门写了本书?
How to install and start VNC remote desktop service on cloud GPU?
Mock模拟数据,并发起get,post请求(保姆级教程,一定能成功)
使用o.execute_sql 查询很很很小的表, 要7/8秒钟, 这个怎么解决
常见亲脂性细胞膜染料DiO, Dil, DiR, Did光谱图和实验操作流程
揭秘deepin 23,从这里开始!
mysql之的执行计划
InnoDB 中不同SQL语句设置的锁
深度学习跟踪DLT (deep learning tracker)
开篇-开启全新的.NET现代应用开发体验
oracle 分组合并字段,每组行显示













