K8S 操作测试
三万字无坑搭建基于Docker+K8S+GitLab/SVN+Jenkins+Harbor持续集成交付环境 | 夜法之书 (17lai.site)
博客需要更改的地方
unable to recognize "ingress-nginx-mandatory.yaml": no matches for kind "ClusterRole" in version "rbac.authorization.k8s.io/v1beta1"
unable to recognize "ingress-nginx-mandatory.yaml": no matches for kind "Role" in version "rbac.authorization.k8s.io/v1beta1"
unable to recognize "ingress-nginx-mandatory.yaml": no matches for kind "RoleBinding" in version "rbac.authorization.k8s.io/v1beta1"
unable to recognize "ingress-nginx-mandatory.yaml": no matches for kind "ClusterRoleBinding" in version "rbac.authorization.k8s.io/v1beta1"
apiVersion: rbac.authorization.k8s.io/v1beta1 需要改为
apiVersion: rbac.authorization.k8s.io/v1
kubectl apply -f ingress-nginx-mandatory.yaml
在k8s中运行kafka - SRE回忆录 - 云野生SRE回忆录 (xadocker.cn)
clusterrolebinding.rbac.authorization.k8s.io/nginx-ingress-clusterrole-nisa-binding created
deployment.apps/nginx-ingress-controller unchanged
error: unable to recognize "ingress-nginx-mandatory.yaml": no matches for kind "ClusterRole" in version "rbac.authorization.k8s.io/v1beta1"
需要调整 local-path-storage.yaml
image: rancher/local-path-provisioner:master-head
image: registry.cn-shanghai.aliyuncs.com/niu_k8s/local-path-provisioner:master-head
查看容器日志命令
kubectl logs -n <namespace> <pod-name> nginx-ingress-controller
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了