springcloud in k8s springcloud项目部署到k8s

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了springcloud in k8s springcloud项目部署到k8s相关的知识,希望对你有一定的参考价值。

参考技术A https://github.com/wengmingdong/springcloudk8s/blob/master/eureka/eureka-deployment.yaml

https://github.com/wengmingdong/springcloudk8s/blob/master/eureka/eureka-service.yaml

1、kubectl create -f eureka-deployment.yaml

2、kubectl get pod -o wide

3、查看pod日志: kubectl logs -f  <pod-name>

kubectl logs -f eureka-585cd75ddd-7xzpp

4、kubectl create -f eureka-service.yaml

5、查看结果

https://github.com/wengmingdong/springcloudk8s/blob/master/config/config-server-deployment.yaml

https://github.com/wengmingdong/springcloudk8s/blob/master/config/config-server-service.yaml

1、kubectl create -f config-server-deployment.yaml

2、kubectl create -f config-server-deployment.yaml

3、查看结果

https://github.com/wengmingdong/springcloudk8s/blob/master/config-client/config-client-deployment.yaml

https://github.com/wengmingdong/springcloudk8s/blob/master/config-client/config-client-service.yaml

1、kubectl create -f config-client-deployment.yaml

2、kubectl create -f config-client-service.yaml

3、查看结果

(1) 获取config-client暴露的端口

kubectl get svc

(2) 访问config-client,查看结果

http://192.168.56.61:31019/info

dev22就是来自github上的

springcloud in k8s 目录 -

springcloud in k8s spring cloud 工程创建 -

springcloud in k8s 在github上创建配置文件 -

springcloud in k8s 在centos7下安装docker -

springcloud in k8s docker私有仓库安装 -

springcloud in k8s jenkins 之 jdk git maven 安装 -

springcloud in k8s jenkins 安装 -

springcloud in k8s jenkins 之 jdk maven github 配置 -

springcloud in k8s jenkins 之 job构建项目 -

springcloud in k8s kubeadm安装k8s -

sprigcloud项目部署到k8s -

springcloud in k8s 部署ingress -

springcloud:cannot find DiscoveryClient bean error in spring boot

在写客户端程序的时候,总是报‘com.netflix.discovery.DiscoveryClient‘ that could not be found。

原因在于导入了错误的类:com.netflix.discovery.DiscoveryClient

应该是引用:org.springframework.cloud.client.discovery.DiscoveryClient

以上是关于springcloud in k8s springcloud项目部署到k8s的主要内容,如果未能解决你的问题,请参考以下文章

spring cloud 微服务 需要service层吗

nacos基于spring cloud配置

springcloud简介

springcloud openFeign 请求超时问题解决

第二章 springcloud项目三种启动方式

spring cloud 本地配置怎么自动部署