-
Notifications
You must be signed in to change notification settings - Fork 109
Home
diguoliang edited this page Dec 4, 2018
·
4 revisions
-
1、new project by idea
-
2、push project to gitlab
-
3、新建 jenkins pipeline 任务
~~ 参考:Jenkinsfile.node.groovy ~~
- 1.1 gitlab config webhook
- Settings >> Integrations >> Webhooks
- 1.2 mvn build
~~ 参考:build-image.sh ~~
- 1.3 update pod application
~~ 参考:update-image.sh ~~
~~ 参考:main.eureka-k8s.yaml ~~
~~ 参考:main.eureka-k8s.yaml ~~
- harbor http 认证问题
vim /etc/docker/daemon.json
* 增加如下配置
{
"registry-mirrors": ["https://harbor_ip"],
"insecure-registries":["harbor_ip:harbor_port","harbor_ip"]
}
systemctl daemon-reload
systemctl restart docker
-
kubernetes nodeSelector 指定node不能访问pod
-
ps:不能指定 master node.
-
kubernetes deployment labels and service labels 标签不一致,不能访问
-
ps:deployment 和 service labels run or app 需要编写一致