遇一山,过一山,处处有风景;只要勇敢向前,一路尽是繁花盛开。 | (点击查看→)【测试干货】python/java自动化、持续集成、性能、测开、简历、笔试面试等

性能测试实战系列(08):应用部署 - 编写资源yaml文件、启动服务、压力机配置hosts

 

本系列汇总,请查看这里https://www.cnblogs.com/uncleyong/p/15475614.html

资源文件

Deployment/StatefulSet/DaemonSet、Service、Ingress等

参考:https://www.cnblogs.com/uncleyong/p/15571059.html

 

启动服务

kubectl apply -f .

 

压力机配置hosts

win

C:\Windows\System32\drivers\etc下hosts

linux

vim /etc/hosts

ingress在k8s-node01上,也就是162上

 

在压力机160上配置

192.168.117.162 eureka.gifts.com
192.168.117.162 gateway.gifts.com
192.168.117.162 gateway.gift.com

 

域名访问

eureka.gifts.com

 

posted @ 2021-12-31 09:49  全栈测试笔记  阅读(442)  评论(0编辑  收藏  举报
浏览器标题切换
浏览器标题切换end