随笔分类 - docker
摘要:k8s 使用 RBAC 鉴权 https://kubernetes.io/zh-cn/docs/reference/access-authn-authz/rbac/ # 创建sa账号 kubectl create sa sa-test-20230408 # 使用sa 账号创建pod资源 [root@
阅读全文
摘要:k8s 控制器-Replicaset-Deployment # cordon 警戒线 执行后不会在调度到该节点上了[root@master01 deployment]# kubectl cordon node01node/node01 cordoned[root@master01 deploymen
阅读全文
摘要:#1 lables # node label[root@master01 pod]# kubectl label pods pod-self time=2023 [root@master01 pod]# kubectl get node --show-labels [root@master01 po
阅读全文
摘要:https://github.com/kubernetes/dashboardhttps://developer.aliyun.com/article/745086https://github.com/kubernetes/dashboard/blob/master/docs/user/access
阅读全文
摘要:#1 创建pod yaml 文件# 使用帮助命令 [root@master01 pod]# kubectl explain pod.spec [root@master01 pod]# cat pod-self.yaml apiVersion: v1 kind: Pod metadata: name:
阅读全文
摘要:[root@master01 pod_init]# cat pod-all-life-cycles.yaml apiVersion: v1 kind: Pod metadata: name: init-pod-1 namespace: default labels: app: ini-pod dev
阅读全文
摘要:kebuctl 命令补全 yum install -y bash-completion source /usr/share/bash-completion/bash_completion source <(kubectl completion bash) kubectl completion bas
阅读全文
摘要:
阅读全文