部署了rke2 但disable rke2-ingress
自己默认设置部署了ingress-nginx,metallb以及gitlab,
gitlab的外部访问IP metallb设置的,并能成功访问正常应用都没有问题。
但gitlab-run注册的时候,使用gitlab ingress 域名却无法解析,请帮忙看看
> kubectl get ingress,svc -n gitlab
NAME CLASS HOSTS ADDRESS PORTS AGE
ingress.networking.k8s.io/gitlab-kas nginx kas.example.com 10.1.104.220 80 25h
ingress.networking.k8s.io/gitlab-minio nginx minio.example.com 10.1.104.220 80 25h
ingress.networking.k8s.io/gitlab-registry nginx registry.example.com 10.1.104.220 80 25h
ingress.networking.k8s.io/gitlab-webservice-default nginx gitlab.example.com 10.1.104.220 80 25h
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/gitlab-gitaly ClusterIP None <none> 8075/TCP,9236/TCP 25h
service/gitlab-gitlab-exporter ClusterIP 10.43.12.85 <none> 9168/TCP 25h
service/gitlab-gitlab-shell ClusterIP 10.43.14.2 <none> 22/TCP 25h
service/gitlab-kas ClusterIP 10.43.193.45 <none> 8150/TCP,8153/TCP,8154/TCP,8151/TCP 25h
service/gitlab-minio-svc ClusterIP 10.43.243.231 <none> 9000/TCP 25h
service/gitlab-postgresql ClusterIP 10.43.12.145 <none> 5432/TCP 25h
service/gitlab-postgresql-hl ClusterIP None <none> 5432/TCP 25h
service/gitlab-postgresql-metrics ClusterIP 10.43.120.170 <none> 9187/TCP 25h
service/gitlab-prometheus-server ClusterIP 10.43.152.16 <none> 80/TCP 25h
service/gitlab-redis-headless ClusterIP None <none> 6379/TCP 25h
service/gitlab-redis-master ClusterIP 10.43.190.37 <none> 6379/TCP 25h
service/gitlab-redis-metrics ClusterIP 10.43.82.186 <none> 9121/TCP 25h
service/gitlab-registry ClusterIP 10.43.230.89 <none> 5000/TCP 25h
service/gitlab-webservice-default ClusterIP 10.43.103.192 <none> 8080/TCP,8181/TCP,8083/TCP 25h
service name 访问没有问题
#
nslookup gitlab-webservice-default
Server: 10.43.0.10
Address: 10.43.0.10#53
Name: gitlab-webservice-default.gitlab.svc.cluster.local
Address: 10.43.103.192
ingress域名无法解析
nslookup sonarqube.example.com
Server: 10.43.0.10
Address: 10.43.0.10#53
** server can't find sonarqube.example.com: NXDOMAIN
这部分小白一个,请各位大侠帮忙看看~