当前位置:网站首页>安装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/test
helm repo update
helm 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)
边栏推荐
猜你喜欢
华为ECS云服务器上安装Docker及部署Redis详细教程【华为云至简致远】
CAD如何自定义快捷键
【汇编语言03】第2章 寄存器——实验1:查看CPU和内存,用机器指令和汇编指令编程
六、用户身份认证
使用.NET简单实现一个Redis的高性能克隆版(一)
荧光标记多肽FITC/AMC/FAM/Rhodamine/TAMRA/Cy3/Cy5/Cy7-Peptide
从技术全景到场景实战,透析「窄带高清」的演进突破
茅台日赚1.65亿,经销商日子却越来越难
CC2530_ZigBee+HUAWEI CLOUD IOT: Design your own cold chain acquisition system
Uniswap或将开启“费用开关”,UNI持有者可享受分红
随机推荐
“vite”和“vite预览”有什么区别?
es6新增-Promise详解(异步编程的解决方案1)
Dataworks中PyOdps里面pandas.read_sql()支持Odps吗?
动态打印菱形
flink-sql 客户端 可以设置并行度 吗?断开算子链
5v2.1a给5v2a充电行吗
mysql之的执行计划
【白话模电2】二极管特性和分类
mysql之数据库账户管理与优化
大佬们,flinkcdc 2.2 版本采集sqlserver只能采集到全量的数据,不能采集到增量的数
Mock模拟数据,并发起get,post请求(保姆级教程,一定能成功)
数字IC笔迹-MCMM、WNS和TNS
荧光标记多肽FITC/AMC/FAM/Rhodamine/TAMRA/Cy3/Cy5/Cy7-Peptide
LyScript 内存交换与差异对比
快手通过国际权威信息安全和隐私保护认证,安全能力达到国际领先水平
调用EasyCVR云台控制接口时,因网络延迟导致云台操作异常该如何解决?
细胞不可渗透的荧光探针 锌离子荧光探针Zinquin 151606-29-0
【牛客在线OJ】-字符逆序
软件盘点企业使用服装ERP的好处
域名抢注“卷”到了表情包?ENS逆势上涨的新推力