Nginx Kubernetes:使用Let';s加密
我正在尝试使用证书管理器设置LetsEncrypt SSL证书。 我已经成功地通过Helm部署了Cert Manager,并且一直在配置Nginx Kubernetes:使用Let';s加密,nginx,kubernetes,lets-encrypt,kubectl,kubernetes-ingress,Nginx,Kubernetes,Lets Encrypt,Kubectl,Kubernetes Ingress,我正在尝试使用证书管理器设置LetsEncrypt SSL证书。 我已经成功地通过Helm部署了Cert Manager,并且一直在配置ingres.yaml $ sudo kubectl create --edit -f https://raw.githubusercontent.com/jetstack/cert-manager/master/docs/tutorials/quick-start/example/ingress.yaml 我有这个: apiVersion: extensio
ingres.yaml
$ sudo kubectl create --edit -f https://raw.githubusercontent.com/jetstack/cert-manager/master/docs/tutorials/quick-start/example/ingress.yaml
我有这个:
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
kubernetes.io/ingress.class: nginx
name: kuard
namespace: default
spec:
rules:
- host: example.example.com
http:
paths:
- backend:
serviceName: kuard
servicePort: 80
path: /
tls:
- hosts:
- example.example.com
secretName: quickstart-example-tls
A copy of your changes has been stored to "/tmp/kubectl-edit-qx3kw.yaml"
The Ingress "kuard" is invalid: spec.rules[0].host: Invalid value: must be a DNS name, not an IP address
因此,我刚刚将example.com中的主机替换为我的外部IP,并得到以下结果:
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
kubernetes.io/ingress.class: nginx
name: kuard
namespace: default
spec:
rules:
- host: example.example.com
http:
paths:
- backend:
serviceName: kuard
servicePort: 80
path: /
tls:
- hosts:
- example.example.com
secretName: quickstart-example-tls
A copy of your changes has been stored to "/tmp/kubectl-edit-qx3kw.yaml"
The Ingress "kuard" is invalid: spec.rules[0].host: Invalid value: must be a DNS name, not an IP address
有没有办法只使用我的外部IP设置它?我还没有为我的应用选择域名,只想使用普通IP进行演示和游戏。否。您不能使用IP地址进行入口。要使用IP地址,您需要将其配置为指向工作节点并创建NodePort服务,这将允许您浏览到
http://IP:NODEPORT
否。您不能将IP地址用于入口。要使用IP地址,您需要将其配置为指向工作节点并创建NodePort服务,这将允许您浏览到http://IP:NODEPORT