Kubernetes从入门到精通 集群测试

1 创建一个nginx服务
kubectl create deployment nginx  --image=nginx:1.14-alpine
2 暴露端口
kubectl expose deploy nginx  --port=80 --target-port=80  --type=NodePort
3 查看服务
kubectl get pod,svc

pod 是kubernetes集群中的最小单元 容器在pod里 服务再容器里

svc service

 

4 访问nginx

ip加下面的 31885

 

 

 

 

 

 

 

 

 

 

 

 

 

本文作者:KwFruit

本文链接:https://www.cnblogs.com/mangoubiubiu/p/17366135.html

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。

posted @   KwFruit  阅读(20)  评论(0编辑  收藏  举报
历史上的今天:
2022-05-01 SpringSecurity 报错 Bad credentials
点击右上角即可分享
微信分享提示
评论
收藏
关注
推荐
深色
回顶
收起