k8s first experience

1.k8s concept

Cluster:
Master调度Node

Pod:
smallest work cell ,run on the node
related containers run on the same pod to share resoures and lifecycle
two ways: one-container-per-Pod ,several—related-containers-per-Pod
for example:
we didn’t need to put Tomcat container and MYSQL container into the same Pod because they exchange data by JDBC ,not by the shared storage and they have different lifecycle.

Controller:run Pod
Deployment Controller manages Pods

Service: explore Pod
Provides IP\port\load balance

Namespace:
Divide the physical cluster into different virtual clusters ,by default has the default and kube-system Namespaces.

2.Create Kubernetes cluster

deploy app

Deployment=app
Pod=sets of container, all the containers in the same pod will share the same IP and Port space(network namespace).
在这里插入图片描述
,explore app,

expose app publicly,
在这里插入图片描述

scale app
在这里插入图片描述
,update app.

refer this:
https://kubernetes.io/docs/tutorials/kubernetes-basics/scale/scale-interactive/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值