摘要: 一. 创建 Pods 1 根据YAML配置创建 Pods 配置文件 pod.yaml 内容如下 apiVersion: v1 kind: Pod metadata: name: happypanda spec: containers: - name: nginx image: nginx 2 运行命 阅读全文
posted @ 2022-02-08 14:51 呱呱二号 阅读(96) 评论(0) 推荐(0)
摘要: 一. 创建命名空间的两种方式 方式一 创建命名空间 kubectl create namespace dev-service1 方式二 2.1 根据YAML配置创建命名空间 配置文件 test-namespace.yaml 内容如下 kind: Namespace apiVersion: v1 me 阅读全文
posted @ 2022-02-08 14:37 呱呱二号 阅读(119) 评论(0) 推荐(0)
摘要: 输入命令:ssh-keygen -t rsa,一路enter [root@VM-4-8-centos git]# ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key 阅读全文
posted @ 2022-01-21 18:50 呱呱二号 阅读(393) 评论(0) 推荐(0)
摘要: Docker 官方文档 https://docs.docker.com/engine/install/centos/ 安装 首先尝试卸载 Centos 旧版本 Docker (有则卸载,无则忽略此步骤) sudo yum remove docker \ docker-client \ docker- 阅读全文
posted @ 2022-01-21 15:55 呱呱二号 阅读(437) 评论(0) 推荐(0)
摘要: 安装 sudo yum install firewalld firewalld的基本使用 启动: service firewalld start 查看状态: service firewalld status 停止: service firewalld disable 禁用: service fire 阅读全文
posted @ 2022-01-21 10:18 呱呱二号 阅读(216) 评论(0) 推荐(0)
摘要: 前言,笔者的服务器是安装了maven3.6.3的,并且也配置了M2_HOME环境变量。 但是 Jenkins 执行Shell脚本中的mvn clean package是会去/usr/bin中查找命令mvn,所以做个软连接即可解决。 ln -s /root/apache-maven-3.6.3/bin 阅读全文
posted @ 2022-01-13 18:40 呱呱二号 阅读(1098) 评论(0) 推荐(0)
摘要: 进入harbor的github仓库(https://github.com/goharbor/harbor/releases) 下载离线安装版本 https://github.com/goharbor/harbor/releases/download/v2.4.1/harbor-offline-ins 阅读全文
posted @ 2022-01-12 14:21 呱呱二号 阅读(413) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2022-01-11 11:44 呱呱二号 阅读(0) 评论(0) 推荐(0)
摘要: 新建 /etc/yum.repos.d/gitlab-ce.repo,内容为 [gitlab-ce] name=Gitlab CE Repository baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el$releasever/ 阅读全文
posted @ 2022-01-07 17:11 呱呱二号 阅读(484) 评论(0) 推荐(0)
摘要: 步骤 零. 前置操作 关闭防火墙并禁用开机启动 systemctl stop firewalld && systemctl disable firewalld 关闭selinux vi /etc/sysconfig/selinux 找到SELINUX=XXXXXX,将XXXXXX修改为disable 阅读全文
posted @ 2022-01-07 17:02 呱呱二号 阅读(69) 评论(0) 推荐(0)