IT数码 购物 网址 头条 软件 日历 阅读 图书馆
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
图片批量下载器
↓批量下载图片,美女图库↓
图片自动播放器
↓图片自动播放器↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁
 
   -> 网络协议 -> harbor高可用 k8s helm安装 -> 正文阅读

[网络协议]harbor高可用 k8s helm安装

一、harbor官网高可用方案

采用 k8s helm 进行部署

https://goharbor.io/docs/2.3.0/install-config/harbor-ha-helm/

在这里插入图片描述

二、部署步骤

拷贝 harbor 的 helm 工程

git clone https://github.com/goharbor/harbor-helm.git

修改 values.yaml

expose:
  # Set the way how to expose the service. Set the type as "ingress",
  # "clusterIP", "nodePort" or "loadBalancer" and fill the information
  # in the corresponding section
  type: nodePort #设置对外暴露的端口,harbor NodePort 10.233.21.241   <none>   80:30002/TCP,4443:30004/TCP   15m
  tls:
    # Enable the tls or not.
    # Delete the "ssl-redirect" annotations in "expose.ingress.annotations" when TLS is disabled and "expose.type" is "ingress"
    # Note: if the "expose.type" is "ingress" and the tls
    # is disabled, the port must be included in the command when pull/push
    # images. Refer to https://github.com/goharbor/harbor/issues/5291
    # for the detail.
    enabled: false #默认设置为http,而不是https


# Format: protocol://domain[:port]. Usually:
# 1) if "expose.type" is "ingress", the "domain" should be
# the value of "expose.ingress.hosts.core"
# 2) if "expose.type" is "clusterIP", the "domain" should be
# the value of "expose.clusterIP.name"
# 3) if "expose.type" is "nodePort", the "domain" should be
# the IP address of k8s node
#
# If Harbor is deployed behind the proxy, set it as the URL of proxy
externalURL: http://10.51.13.13:30002  #该地址必须填写正确,否者docker login报错

注意:默认为 30002登录

以上配置需要注意,不然会出现问题
externalURL: http://10.51.13.13:30002 #该地址必须填写正确,否者docker login报错

执行部署

helm install my-harbor harbor-helm-master

查看pod和service

kubectl get pods

NAME                                       READY   STATUS    RESTARTS   AGE
my-harbor-chartmuseum-6fcf65d46d-t2rq6     1/1     Running   0          3d2h
my-harbor-core-769756845-2sfbp             1/1     Running   0          3d2h
my-harbor-database-0                       1/1     Running   0          3d2h
my-harbor-jobservice-79b57d9679-vdcn6      1/1     Running   1          3d2h
my-harbor-nginx-65bd69b896-v4lqv           1/1     Running   0          3d2h
my-harbor-notary-server-77b4485d9d-ct77n   1/1     Running   1          3d2h
my-harbor-notary-signer-667fdcf98c-rpbgx   1/1     Running   0          3d2h
my-harbor-portal-75b4d94c46-fhgnz          1/1     Running   0          3d2h
my-harbor-redis-0                          1/1     Running   0          3d2h
my-harbor-registry-76cdcbb567-c8p6q        2/2     Running   0          3d2h
my-harbor-trivy-0                          1/1     Running   0          3d2h

kubectl get svc

NAME                      TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)                       AGE
harbor                    NodePort    10.233.21.241   <none>        80:30002/TCP,4443:30004/TCP   3d2h
my-harbor-chartmuseum     ClusterIP   10.233.52.226   <none>        80/TCP                        3d2h
my-harbor-core            ClusterIP   10.233.63.77    <none>        80/TCP                        3d2h
my-harbor-database        ClusterIP   10.233.42.144   <none>        5432/TCP                      3d2h
my-harbor-jobservice      ClusterIP   10.233.12.208   <none>        80/TCP                        3d2h
my-harbor-notary-server   ClusterIP   10.233.35.27    <none>        4443/TCP                      3d2h
my-harbor-notary-signer   ClusterIP   10.233.34.250   <none>        7899/TCP                      3d2h
my-harbor-portal          ClusterIP   10.233.16.184   <none>        80/TCP                        3d2h
my-harbor-redis           ClusterIP   10.233.45.54    <none>        6379/TCP                      3d2h
my-harbor-registry        ClusterIP   10.233.38.237   <none>        5000/TCP,8080/TCP             3d2h
my-harbor-trivy           ClusterIP   10.233.34.247   <none>        8080/TCP                      3d2h

三、结果

登录 http://10.51.13.13:30002

在这里插入图片描述

  网络协议 最新文章
使用Easyswoole 搭建简单的Websoket服务
常见的数据通信方式有哪些?
Openssl 1024bit RSA算法---公私钥获取和处
HTTPS协议的密钥交换流程
《小白WEB安全入门》03. 漏洞篇
HttpRunner4.x 安装与使用
2021-07-04
手写RPC学习笔记
K8S高可用版本部署
mySQL计算IP地址范围
上一篇文章      下一篇文章      查看所有文章
加:2021-08-17 15:45:03  更:2021-08-17 15:45:16 
 
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁

360图书馆 购物 三丰科技 阅读网 日历 万年历 2024年5日历 -2024/5/17 15:58:56-

图片自动播放器
↓图片自动播放器↓
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
图片批量下载器
↓批量下载图片,美女图库↓
  网站联系: qq:121756557 email:121756557@qq.com  IT数码