This commit is contained in:
parent
5f922e5a58
commit
b19fecd173
|
@ -0,0 +1,48 @@
|
|||
需要安装docker和docker-compose
|
||||
[https://goharbor.io/docs/2.9.0/install-config/](https://goharbor.io/docs/2.9.0/install-config/)
|
||||
# docker-compose
|
||||
```shell
|
||||
# 下载
|
||||
wget https://github.com/docker/compose/releases/download/v2.20.2/docker-compose-linux-x86_64
|
||||
# 设置可执行权限
|
||||
chomd +x docker-compose-linux-x86_64
|
||||
# 移动文件到
|
||||
mv docker-compose-linux-x86_64 /usr/bin/docker-compose
|
||||
# 查看版本
|
||||
docker-compose -v
|
||||
```
|
||||
# 安装harbor
|
||||
```shell
|
||||
wget https://github.com/goharbor/harbor/releases/download/v2.8.3/harbor-offline-installer-v2.8.3.tgz
|
||||
# 修改配置文件
|
||||
harvor.yml
|
||||
# 修改hostname
|
||||
# 注销https
|
||||
# 准备执行
|
||||
./prepare
|
||||
# 安装
|
||||
./install
|
||||
```
|
||||
|
||||
# 启动
|
||||
https://goharbor.io/docs/2.9.0/install-config/run-installer-script/
|
||||
```
|
||||
# pwd
|
||||
/software/harbor
|
||||
# 启动
|
||||
docker-compose up -d
|
||||
# 停止
|
||||
docker-compose down -v
|
||||
```
|
||||
|
||||
# push镜像使用http
|
||||
```
|
||||
# 修改配置文件
|
||||
vi /etc/docker/daemon.json
|
||||
{
|
||||
"insecure-registries": ["hy-node4:80"],
|
||||
"exec-opts": ["native.cgroupdriver=systemd"]
|
||||
}
|
||||
# 如果还是不行使用registry
|
||||
docker run -d -p 5000:5000 --restart=always --name registry registry:2
|
||||
```
|
Binary file not shown.
After Width: | Height: | Size: 115 KiB |
Binary file not shown.
After Width: | Height: | Size: 76 KiB |
|
@ -0,0 +1,23 @@
|
|||
nodeport
|
||||
clusterid
|
||||
headlss
|
||||
service
|
||||
|
||||
开发人员访问路径
|
||||

|
||||
用户访问服务实例
|
||||

|
||||
|
||||
常用服务暴露插件
|
||||
- nginx-ingress 测试版,重量级
|
||||
- traefik 反向代理,负载均衡,webui
|
||||
|
||||
|
||||
traefik-ds.yml
|
||||
traefik-rbac.yml
|
||||
trarfik-ui.yml
|
||||
|
||||
|
||||
修改ingress两种方法
|
||||
1. 修改yaml文件
|
||||
2. kubectl edit ingerss nginx -n default
|
Loading…
Reference in New Issue