Giter Site home page Giter Site logo

spring-cloud-k8s-ci-template's Issues

如何用 kubectl将镜像发布到 K8S 集群相关问题?

你好,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服务)是否有误?

针对AWS-EC2 上使用的修正

你好,跟着你的材料,断断续续弄了两周,终于把环境搭建好了。而且也实验成功了,所以谢谢。
但是中间遇到了几个坑,所以现在说明一下:
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:

  • cluster:
    certificate-authority-data: LS0tLS1CRUdJ
    server: https:///172.31.43.46:8443

代码有问题

你好,文档中包含,但是代码中我看漏掉了:
kubectl > Dockerfile >

ADD admin.conf /root/.kube/config

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.