[英]kubernetes ingress-nginx with kustomize
我正在尝试将此URL中的ingress-nginx
与kustomize一起使用
工作示例在这个要点中,非常简单,没有自定义https://gist.github.com/skhaz/7d8fdb03aee624d651c90156021f6ce8
我正在使用这个 YAML https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.2.0/deploy/static/provider/cloud/deploy.yaml
但是,当我运行make create
时,它基本上运行kubectl create --kustomize .
我得到错误
service/ingress-nginx-controller created
service/ingress-nginx-controller-admission created
deployment.apps/ingress-nginx-controller created
job.batch/ingress-nginx-admission-create created
job.batch/ingress-nginx-admission-patch created
ingressclass.networking.k8s.io/nginx created
Error from server (AlreadyExists): error when creating ".": namespaces "ingress-nginx" already exists
Error from server (AlreadyExists): error when creating ".": serviceaccounts "ingress-nginx" already exists
Error from server (AlreadyExists): error when creating ".": serviceaccounts "ingress-nginx-admission" already exists
Error from server (AlreadyExists): error when creating ".": roles.rbac.authorization.k8s.io "ingress-nginx" already exists
Error from server (AlreadyExists): error when creating ".": roles.rbac.authorization.k8s.io "ingress-nginx-admission" already exists
Error from server (AlreadyExists): error when creating ".": clusterroles.rbac.authorization.k8s.io "ingress-nginx" already exists
Error from server (AlreadyExists): error when creating ".": clusterroles.rbac.authorization.k8s.io "ingress-nginx-admission" already exists
Error from server (AlreadyExists): error when creating ".": rolebindings.rbac.authorization.k8s.io "ingress-nginx" already exists
Error from server (AlreadyExists): error when creating ".": rolebindings.rbac.authorization.k8s.io "ingress-nginx-admission" already exists
Error from server (AlreadyExists): error when creating ".": clusterrolebindings.rbac.authorization.k8s.io "ingress-nginx" already exists
Error from server (AlreadyExists): error when creating ".": clusterrolebindings.rbac.authorization.k8s.io "ingress-nginx-admission" already exists
Error from server (AlreadyExists): error when creating ".": configmaps "ingress-nginx-controller" already exists
Error from server (AlreadyExists): error when creating ".": validatingwebhookconfigurations.admissionregistration.k8s.io "ingress-nginx-admission" already exists
我做错了什么?
kubectl apply
有效,但我想使用kustomize进行自定义
错误出现在kubectl create
上,应该是kubectl apply
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.