码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • 安装porterLB


    • Install PorterLB on Kubernetes
      • Prerequisites
      • Install PorterLB Using kubectl
      • Delete PorterLB Using kubectl
      • Install PorterLB Using Helm
      • Delete PorterLB Using Helm

    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

    1. Log in to the Kubernetes cluster over SSH and run the following command:

       
        
      1. kubectl apply -f https://raw.githubusercontent.com/kubesphere/porter/master/deploy/porter.yaml
    2. 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.

       
        
      1. kubectl get po -n porter-system

    Delete PorterLB Using kubectl

    1. To delete PorterLB, log in to the Kubernetes cluster and run the following command:

       
        
      1. 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.

    2. Run the following command to check the result. If the porter-system namespace does not exist, PorterLB has been deleted successfully.

       
        
      1. kubectl get ns

    Install PorterLB Using Helm

    1. Log in to the Kubernetes cluster over SSH and run the following commands:

       
        
      1. helm repo add test https://charts.kubesphere.io/test
      2. helm repo update
      3. helm install porter test/porter
    2. 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.

       
        
      1. kubectl get po -A

    Delete PorterLB Using Helm

    1. To delete PorterLB, run the following command:

       
        
      1. helm delete porter

      NOTE

      Before deleting PorterLB, you must first delete all Services that use PorterLB.

    2. Run the following command to check the result. If the PorterLB application does not exist, PorterLB has been deleted successfully.

       
        
      1. helm ls

    Last modified March 31, 2021: Relocated files to adapt to localization and changed links. (6b5fcb1)

  • 相关阅读:
    3种等待方式,让你学会Selenium设置自动化等待测试脚本!
    【前端面试知识题】- 2. 浏览器
    c++三大设计模式类型总结
    类和对象5:绑定和静态、类、抽象方法
    python经典百题之1000个数排序
    i5 13600KF参数 酷睿i53600KF什么水平i5 13600KF核显相当于什么显卡
    WebSocket Day04 : 消息推送
    哈佛参考文献注释体系与学术规范
    【Swift 60秒】11 - Tuples
    一键智能改写文案怎么做,4个方法教你轻松搞定
  • 原文地址:https://blog.csdn.net/fishmai/article/details/126087814
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号