我正在尝试使用外部DNS和Istio网关在Google Cloud DNS上自动创建记录。我发现在过去几天中,外部DNS存储库已经进行了很多更改,因此我要怪我以前能够做到这一点,而不再是更改了!
无论如何,这是我的网关和值文件:
hashCode
这就是我的价值观:
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: example-gateway
namespace: default
annotations:
istio-type: internal
spec:
selector:
istio: internalgateway
servers:
- hosts:
- '*.example.com'
- example.com
port:
name: http
number: 80
protocol: HTTP
tls:
httpsRedirect: true
- hosts:
- '*.example.com'
- example.com
port:
name: https
number: 443
protocol: HTTPS
tls:
mode: SIMPLE
privateKey: /etc/istio/ingressgateway-certs/tls.key
serverCertificate: /etc/istio/ingressgateway-certs/tls.crt
这是我从外部DNS窗格中获取的日志:
image:
registry: registry.opensource.zalan.do
repository: teapot/external-dns
tag: latest
...
sources:
# - service
# - ingress
- istio-gateway
# - crd
...
provider: google
publishInternalServices: true
google:
## Google Project to use
##
project: "XXX"
serviceAccountSecret: "clouddns"
serviceAccountKey: "credentials.json"
domainFilters:
- example.com
annotationFilter: "type=internal"
...
rbac:
create: true
...
尽管非常清楚,但这些记录在我的Cloud DNS区域中不存在。
关于外部DNS为什么看不到我的网关的任何想法?