摘要:
linux中查看端口号 yum install lsof -y [root@test1 ~]# lsof -i :80 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME httpd 11359 root 4u IPv6 34040 0t0 TCP *:http (LISTEN) httpd ... 阅读全文
摘要:
实验架构: 192.168.0.96 gitlab 192.168.0.97 jenkins、tomcat 192.168.0.98 harbor、docker集群、git、jdk、maven 1、先把单个jenkins做成可以部署到docker集群中。参照:https://www.cnblogs.com/effortsing/p/10468840.html 2、192... 阅读全文
摘要:
1、首先随便打包编译一下 2、查看编译执行的目录 [root@bogon ~]# ls /root/.jenkins/workspace/pipline-test/ CHANGE_LOGS.html deployment.yaml Dockerfile package.json PULL_REQUEST_TEMPLATE.md scripts 说明.htm CO... 阅读全文
摘要:
实验架构: 192.168.0.96 gitlab 192.168.0.97 jenkins 192.168.0.98 harbor、docker集群 说明:下面代码编译镜像那一步的代码必须靠左,目的是不要有空格,否则报错,deploy那一步也必须是那种格式,否则报错 安装完jenkins后首先生成pipeline可以用的git链接地址 pipeline { ... 阅读全文
摘要:
[root@lab2 dandang]# cat dandang.v1.yaml apiVersion: v1 kind: ReplicationController metadata: name: dandang namespace: development spec: replicas: 1 template: metadata: labels: ... 阅读全文
摘要:
要想让trafic 发现服务,必须把文件写全,否则界面显示红色, 必须包含三个 kind :Deployment Service Ingress [root@prom nginx-ingress]# cat http-test.yaml apiVersion: extensions/v1beta1 kind: Deployment metadata: name: http-te... 阅读全文
摘要:
[root@lab2 mysql]# cat mysql.yaml apiVersion: extensions/v1beta1 kind: Deployment metadata: name: mysql namespace: development spec: replicas: 1 template: metadata: labels: ... 阅读全文
摘要:
cat >namespace-development.yaml<<EOF apiVersion: v1 kind: Namespace metadata: name: development labels: name: development EOF kubectl create -f development.yaml 阅读全文
摘要:
1、在harbor的ui界面上注册一个账号 姓名:zihao 全名:zhuzihao 密码:Zihao@5tgb 邮箱:15613691030@163.com 2、在需要下载镜像的机器上,同样需要修改docker进程参数(跟上传镜像到私有仓库一样操作进行修改) 在node节点配置: [root@reg harbor]# vi /etc/docker/daemon.json { ... 阅读全文
摘要:
[root@lab3 nginx]# cat nginx-test.yaml apiVersion: extensions/v1beta1 kind: Deployment metadata: name: http-test-dm2 spec: replicas: 1 template: metadata: labels: name: http-... 阅读全文