摘要: 污点就是拒绝,容忍就是忽略,Node通过污点拒绝pod调度上去,Pod通过容忍忽略拒绝 apiVersion: apps/v1 kind: Deployment metadata: name: my-deployment namespace: test spec: replicas: 1 selec 阅读全文
posted @ 2022-11-02 18:46 弩哥++ 阅读(33) 评论(0) 推荐(0) 编辑
摘要: apiVersion: apps/v1 kind: Deployment metadata: name: my-deployment namespace: test spec: replicas: 1 selector: matchLabels: environment: stg template: 阅读全文
posted @ 2022-11-02 17:47 弩哥++ 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 背景:方便书写yaml #vim /etc/vimrc # ts=> tabstop :一个TAB字符占多少个空格 # sw=> shiftwidth: 每层缩进的空格数 set ts=2 set sw=2 阅读全文
posted @ 2022-11-02 15:24 弩哥++ 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 官网 https://kubernetes.io/zh-cn/docs/concepts/workloads/controllers/deployment/ apiVersion: apps/v1 kind: Deployment metadata: name: my-deployment name 阅读全文
posted @ 2022-11-02 11:10 弩哥++ 阅读(21) 评论(0) 推荐(0) 编辑