60

Kubernetes核心概念之Service详解-linux运维技术

 5 years ago
source link: http://blog.51cto.com/forall/2132440
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Service是k8s中非常重要的组成单元,作用是作为代理把在POD中容器内的服务发布出去,提供一套简单的发现机制和服务代理,也就是运维常说的‘前端’概念,那么它如何实现代理功能以及自动伸缩服务架构,下面将在本文中详细说明。Service主要的功能是映射pod对应的端口到宿主机上(代理),或是做负载均衡,还可以将内部IP发布成外部IP一.服务代理1.首先创建RC的Pod(使用的是上一节的脚本)vi

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK