当前位置:网站首页>安装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)
边栏推荐
猜你喜欢

CC2530_ZigBee+HUAWEI CLOUD IOT: Design your own cold chain acquisition system

【300+精选大厂面试题持续分享】大数据运维尖刀面试题专栏(十一)

JS string to GBK encoding ultra-reduced implementation

es6新增-async函数(异步编程的最终解决方案)

Crack:WebKitX ActiveX and WebKitX VHX

宝塔搭建企业招聘网站源码实测

腾讯电竞的蓝翔梦

什么是鉴权?一篇文章带你了解postman的多种方式

opencv 直方图比较

gcc的学习及 版本太低如何在conda环境下重新进行安装
随机推荐
JVM参数设置
链表中倒数第k个结点
注意力机制的详细理解
LyScript 内存交换与差异对比
341. Flatten Nested List Iterator
Atomic Wallet已支持TRC20-USDT
2021年数据泄露成本报告解读
一键进入华为云会议,长期免费值得所有开发团队有一套【华为云至简致远】
WPF 实现柱形统计图
茅台日赚1.65亿,经销商日子却越来越难
yaml data format
超T动力 焕“芯”出发 | 中国重汽专属定制版WP14T产品闪耀登场
【Django-Docker】Sqlite3.db读取权限不够-20220803
Execution plan of mysql
每周推荐短视频:为了填补学习资源的空缺,作者专门写了本书?
PMP备考敏捷考题的五点应对策略
【Deliberately practice the view of the back tube】deliberately practice
EasyNTS上云网关断电重启后设备离线是什么原因?
常见亲脂性细胞膜染料DiO, Dil, DiR, Did光谱图和实验操作流程
PMP考试通关宝典-敏捷专题



