johnhuang-cn / spring-cloud-k8s-ci-template Goto Github PK
View Code? Open in Web Editor NEWSpring Cloud & GitLab & Docker & Kubernetes CI template projects
Spring Cloud & GitLab & Docker & Kubernetes CI template projects
报错:
unable to recognize : Get http://localhost:8080/api?timeout=32s: dial tcp 127.0.0.1:8080: connect: connection refused
搭建环境 弄了四五次,到最后始终卡在最后一步,不知道有什么好的解决方法?谢谢
环境: ubuntu18.04
你好,跟着你的材料,断断续续弄了两周,终于把环境搭建好了。而且也实验成功了,所以谢谢。
但是中间遇到了几个坑,所以现在说明一下:
1.kebectl 中的Dockerfile 少了一句话,导致部署的第二步,有问题
ADD admin.conf /root/.kube/config
2. 如果大家使用AWS 搭建的话,会遇到类似于下面这样的报错:
$ kubectl apply -f Deployment.yaml
unable to recognize "Deployment.yaml": Get https://176.34.154.15:8443/api?timeout=32s: x509: certificate is valid for 172.31.43.46, 10.96.0.1, 10.0.0.1, not 176.34.154.15
unable to recognize "Deployment.yaml": Get https://176.34.154.15:8443/api?timeout=32s: x509: certificate is valid for 172.31.43.46, 10.96.0.1, 10.0.0.1, not 176.34.154.15
这是因为在admin.conf 文件中,要把里面的cluster 的server 换成 内网ip 就好了:
apiVersion: v1
clusters:
你好,文档中包含,但是代码中我看漏掉了:
kubectl > Dockerfile >
ADD admin.conf /root/.kube/config
你好,johnhuang 192.168.1.211 A 192.168.1.201 B
在根据你的pdf搭建过程中遇到了一些问题
1.不太明白主机A 211(gitlab服务) 上面的镜像如何发布到 主机B 201(minikube服务)上面去的? 通过.gitlab-ci.yml 和 Deployment.yaml吗? 但这两个文件关联中的涉及到的ip都是211的 不明白2台主机如果不通讯的话 211 的镜像服务如何发布到201的?
2.在搭建过程中 发现pdf设置 Runner的registery 时 ip是211(gitlab服务), 但是截图显示token的上面ip是201(minikube服务)是否有误?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.