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

 

posted @   不会游泳的鱼丶  阅读(11)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
点击右上角即可分享
微信分享提示