随笔分类 -  k8s

摘要:目录安装metrics-server验证自动扩缩容-基于cpu使用率验证扩缩容-基于v2版本内存使用率 安装metrics-server metrics-server 从kubelet 采集指标并暴露给apiserver ,可为dashboard、hpa、vpa 提供支持 第一步:拉取镜像 k8s 阅读全文
posted @ 2021-10-14 14:20 mingtian是吧 阅读(48) 评论(0) 推荐(0)
摘要:pdb 背景需求:虽然 deploy/sts 可以保证pod数量最终与期望一致,但是在更新过程的瞬间无法保证。 例如在运行一个3节点的zookeeper/etcd ,在更新过程中如果有两个节点不可用,将会直接导致zookeeper/etcd 服务不可用。 解决方案:k8s 1.4版本引入了pdb【P 阅读全文
posted @ 2021-09-12 14:35 mingtian是吧 阅读(86) 评论(0) 推荐(0)
摘要:label label的作用:方便识别和选择,就像我们把一个商品打上标签一样。 label作用范围: node pod deployment service resources 常见标签规范: 版本标签:"release":"stable","release":"canary","release": 阅读全文
posted @ 2021-09-12 11:29 mingtian是吧 阅读(54) 评论(0) 推荐(0)
摘要:【在yaml中的位置】 pod.spec.containers.readinessProbe pod.spec.containers.livenessProbe 【三种类型】 命令型 livenessProbe: exec: command: - curl - 127.0.0.1:8000 init 阅读全文
posted @ 2021-09-12 11:15 mingtian是吧 阅读(167) 评论(0) 推荐(0)
摘要:pod 和 pod 控制器 Pod ReplicationController ReplicaSet Deployment DaemontSet StatefulSet Job CronJob 服务暴露 Service Ingress 存储 emptyDir hostPath nfs ConfigM 阅读全文
posted @ 2021-04-23 23:13 mingtian是吧 阅读(54) 评论(0) 推荐(0)