我想为GKE中托管的Web应用启用https。我有一个域名arindam.fr,Cloud DNS中提到了DNS名称,并获得了类型A的NS。
我遇到错误:
无法访问此站点arindam.fr的服务器IP地址找不到。
访问页面时:https://arindam.fr/
https://github.com/arindam-b/DNSissue/blob/master/3.png
https://github.com/arindam-b/DNSissue/blob/master/1.PNG“云DNS”
我的部署和服务Yaml:
我的入口Yaml:
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: nginx-ingress
namespace: default
annotations:
kubernetes.io/tls-acme: "true"
kubernetes.io/ingress.class: "nginx"
spec:
tls:
- hosts:
- arindam.fr
secretName: tls-staging-cert
rules:
- host: arindam.fr
http:
paths:
- path: /
backend:
serviceName: hello-app
servicePort: 8080
在我使用头盔安装nginx控制器和证书管理器之前:
helm install --name nginx-ingress stable/nginx-ingress
在我的域名注册中,namecheap.com中提到了域的NS
https://github.com/arindam-b/DNSissue/blob/master/2.PNG“ NS配置”
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: hello-app
spec:
replicas: 1
template:
metadata:
labels:
app: hello-app
track: stable
spec:
containers:
- name: hello-app
image: "eu.gcr.io/rcup-mza-dev/hello-app:latest"
ports:
- containerPort: 8080
livenessProbe:
httpGet:
path: /
port: 8080
initialDelaySeconds: 15
timeoutSeconds: 30
readinessProbe:
httpGet:
path: /
port: 8080
initialDelaySeconds: 15
timeoutSeconds: 30
---
apiVersion: v1
kind: Service
metadata:
name: hello-app
spec:
type: ClusterIP
ports:
- port: 80
targetPort: 8080
selector:
app: hello-app
# type: LoadBalancer
我想念什么吗?