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 @ 2024-06-26 15:17  不会游泳的鱼丶  阅读(10)  评论(0编辑  收藏  举报