一般来说,我关于设置默认证书的问题在这里得到解答:Kubernetes ingress How to set default-ssl-certificate? .
我不明白的是这部分:我应该将标志添加--default-ssl-certificate=kube-system/host-cert
为 Ingress 的参数。为了发现 NGINX 入口控制器的 YAML 配置文件设置,我应该使用以下命令检查它kubectl describe deployment/nginx-ingress-controller --namespace
:但它不作为部署运行:
$ kubectl get deployments --all-namespaces
NAMESPACE NAME READY UP-TO-DATE AVAILABLE AGE
kube-system kubernetes-dashboard 1/1 1 1 3d
kube-system kubernetes-metrics-scraper 1/1 1 1 3d
它只能作为一个 pod:
$ kubectl get pods --all-namespaces
NAMESPACE NAME READY STATUS RESTARTS AGE
ingress-nginx ingress-nginx-controller-8xcl9 1/1 Running 1 (2d ago) 3d
ingress-nginx ingress-nginx-controller-hwhvk 1/1 Running 1 (2d ago) 3d
ingress-nginx ingress-nginx-controller-xqdqx 1/1 Running 3 (2d ago) 3d
kube-system kubernetes-dashboard-548847967d-66dwz 1/1 Running 2 (2d ago) 3d
kube-system kubernetes-metrics-scraper-6d49f96c97-r6dz2 1/1 Running 1 (2d ago) 3d
[...]
那我应该如何将标志提供给控制器?