当前位置:网站首页>Install porterLB
Install porterLB
2022-08-03 18:09:00 【Mai Xiaoyu】
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)
边栏推荐
- USD 能统一元宇宙吗?
- fatal error: jni.h: No such file or directory
- 深度学习跟踪DLT (deep learning tracker)
- Digital IC Handwriting - MCMM, WNS and TNS
- websocket Handshake failed due to invalid Upgrade header
- 如何成为优秀的产品运营?
- Cool open technology x StarRocks: unified OLAP analysis engine, comprehensive building digital model of OTT
- 软件盘点企业使用服装ERP的好处
- 87.(cesium之家)cesium热力图(贴地形)
- Share 14 JS functions you must know
猜你喜欢
随机推荐
87.(cesium之家)cesium热力图(贴地形)
Cyanine5.5 alkyne|Cy5.5 alkyne|1628790-37-3|Cy5.5-ALK
基于PHP7.2+MySQL5.7的回收租凭系统
LyScript 内存交换与差异对比
【Azure 事件中心】使用Azure AD认证方式创建Event Hub Consume Client + 自定义Event Position
云图说丨初识华为云微服务引擎CSE
WPF 实现柱形统计图
China Hashpower Conference Ascension Kunpeng Ecological Forum was held; Kuaishou established an independent to B business department…
六、用户身份认证
xxl-job 实现email发送警告的代码解析(一行一行代码解读)
CodeTON Round 2 (Div. 1 + Div. 2, Rated, Prizes), problem: (D) Magical Array
Unable to start SinkRunner: { policy:org.apache.flume
云图说丨初识华为云微服务引擎CSE
Uniswap或将开启“费用开关”,UNI持有者可享受分红
走进通信:为什么4G信号满格,却上不了网呢
每周推荐短视频:为了填补学习资源的空缺,作者专门写了本书?
数字IC笔迹-MCMM、WNS和TNS
5v2.1a给5v2a充电行吗
oracle 分组合并字段,每组行显示
Jenkins CI平台(二)













