我试图使用ingress-nginx
从这个URL与自定义
工作示例都在此要点中,非常简单,没有自定义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
工作,但我想自定义与自定义
错误是在kubectl create
上,应该是kubectl apply