一、创建spring cloud eureka的k8s的yaml
eureka-deployment.yaml
https://github.com/wengmingdong/springcloudk8s/blob/master/eureka/eureka-deployment.yaml
eureka-service.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、查看结果

二、创建spring cloud config server的k8s的yaml
config-server-deployment.yaml
https://github.com/wengmingdong/springcloudk8s/blob/master/config/config-server-deployment.yaml
config-server-service.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、查看结果

三、创建spring cloud config client的k8s的yaml
config-client-deployment.yaml
https://github.com/wengmingdong/springcloudk8s/blob/master/config-client/config-client-deployment.yaml
config-client-service.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 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构建项目 - 简书
网友评论