OKD 4.8 bootstrap 由于 DNS 而失败
OKD 4.8 bootstrap failing due to DNS
我正在尝试安装 OKD:
klenkes74@fortuna ~ $ ./openshift-install version
./openshift-install 4.8.0-0.okd-2021-10-10-030117
built from commit e0b12188a18a84be721116ddda74bb3510bfe03f
release image quay.io/openshift/okd@sha256:1d3f75529b141333939987ba03bf4ad76d83ae31d3b17df9a12c1f1ef67feff2
设置出现一些问题后(我在 hetzner.de 专用服务器上安装,这意味着我无法控制 DHCP、TFTboot、一般网络),系统正在启动。但是每个系统都以 'localhost' 出现。根据文档,使用了 DHCP 提供的名称(但 DHCP 似乎未在此处提供名称)。在这种情况下,应该从 IP 进行反向查找。根据 DNS,接口设置正确,但可能使用接口 'lo' 而不是 ehternet 卡 'enp8s'.
正在检查 DNS:
[core@master0 ~]$ dig @213.133.98.98 +noall +answer api-int.loki.kaiserpfalz-edv.de
api-int.loki.kaiserpfalz-edv.de. 55 IN A 5.9.62.16
[core@master0 ~]$ dig @213.133.98.98 +noall +answer api.loki.kaiserpfalz-edv.de
api.loki.kaiserpfalz-edv.de. 60 IN A 5.9.62.16
[core@master0 ~]$ dig @213.133.98.98 +noall +answer console.openshift.console.apps.loki.kaiserpfalz-edv.de
console.openshift.console.apps.loki.kaiserpfalz-edv.de. 60 IN A 5.9.62.16
[core@master0 ~]$ dig @213.133.98.98 +noall +answer -x 5.9.62.16
16.62.9.5.in-addr.arpa. 86400 IN PTR fortuna.kaiserpfalz-edv.de.
[core@master0 ~]$ dig @213.133.98.98 +noall +answer master0.loki.kaiserpfalz-edv.de
master0.loki.kaiserpfalz-edv.de. 60 IN A 188.40.69.186
[core@master0 ~]$ dig @213.133.98.98 +noall +answer -x 188.40.69.186
186.69.40.188.in-addr.arpa. 84697 IN PTR master0.loki.kaiserpfalz-edv.de.
[core@master0 ~]$ dig @213.133.98.98 +noall +answer master1.loki.kaiserpfalz-edv.de
master1.loki.kaiserpfalz-edv.de. 60 IN A 188.40.123.177
[core@master0 ~]$ dig @213.133.98.98 +noall +answer -x 188.40.123.177
177.123.40.188.in-addr.arpa. 34543 IN PTR master1.loki.kaiserpfalz-edv.de.
[core@master0 ~]$ dig @213.133.98.98 +noall +answer master2.loki.kaiserpfalz-edv.de
master2.loki.kaiserpfalz-edv.de. 60 IN A 188.40.69.184
[core@master0 ~]$ dig @213.133.98.98 +noall +answer -x 188.40.69.184
184.69.40.188.in-addr.arpa. 86400 IN PTR master2.loki.kaiserpfalz-edv.de.
[core@master0 ~]$ dig @213.133.98.98 +noall +answer bootstrap.loki.kaiserpfalz-edv.de
bootstrap.loki.kaiserpfalz-edv.de. 60 IN A 162.55.101.99
[core@master0 ~]$ dig @213.133.98.98 +noall +answer -x 162.55.101.99
99.101.55.162.in-addr.arpa. 86400 IN PTR bootstrap.loki.kaiserpfalz-edv.de.
我是不是遗漏了一些配置?我的安装-config.yaml 非常基础:
---
apiVersion: v1
metadata:
name: loki
baseDomain: kaiserpfalz-edv.de
compute:
- hyperthreading: Enabled
name: worker
replicas: 0
platform: {}
controlPlane:
hyperthreading: Enabled
name: master
replicas: 3
platform: {}
networking:
clusterNetwork:
- cidr: 10.128.0.0/14
hostPrefix: 23
networkType: OpenShiftSDN
serviceNetwork:
- 172.30.0.0/16
platform:
none: {}
fips: false
pullSecret: <omitted>
sshKey <omitted>
问题是Hetzner的特殊环境。我必须在节点启动后立即登录并重新配置主机名。下次重启后一切正常。
我正在尝试安装 OKD:
klenkes74@fortuna ~ $ ./openshift-install version
./openshift-install 4.8.0-0.okd-2021-10-10-030117
built from commit e0b12188a18a84be721116ddda74bb3510bfe03f
release image quay.io/openshift/okd@sha256:1d3f75529b141333939987ba03bf4ad76d83ae31d3b17df9a12c1f1ef67feff2
设置出现一些问题后(我在 hetzner.de 专用服务器上安装,这意味着我无法控制 DHCP、TFTboot、一般网络),系统正在启动。但是每个系统都以 'localhost' 出现。根据文档,使用了 DHCP 提供的名称(但 DHCP 似乎未在此处提供名称)。在这种情况下,应该从 IP 进行反向查找。根据 DNS,接口设置正确,但可能使用接口 'lo' 而不是 ehternet 卡 'enp8s'.
正在检查 DNS:
[core@master0 ~]$ dig @213.133.98.98 +noall +answer api-int.loki.kaiserpfalz-edv.de
api-int.loki.kaiserpfalz-edv.de. 55 IN A 5.9.62.16
[core@master0 ~]$ dig @213.133.98.98 +noall +answer api.loki.kaiserpfalz-edv.de
api.loki.kaiserpfalz-edv.de. 60 IN A 5.9.62.16
[core@master0 ~]$ dig @213.133.98.98 +noall +answer console.openshift.console.apps.loki.kaiserpfalz-edv.de
console.openshift.console.apps.loki.kaiserpfalz-edv.de. 60 IN A 5.9.62.16
[core@master0 ~]$ dig @213.133.98.98 +noall +answer -x 5.9.62.16
16.62.9.5.in-addr.arpa. 86400 IN PTR fortuna.kaiserpfalz-edv.de.
[core@master0 ~]$ dig @213.133.98.98 +noall +answer master0.loki.kaiserpfalz-edv.de
master0.loki.kaiserpfalz-edv.de. 60 IN A 188.40.69.186
[core@master0 ~]$ dig @213.133.98.98 +noall +answer -x 188.40.69.186
186.69.40.188.in-addr.arpa. 84697 IN PTR master0.loki.kaiserpfalz-edv.de.
[core@master0 ~]$ dig @213.133.98.98 +noall +answer master1.loki.kaiserpfalz-edv.de
master1.loki.kaiserpfalz-edv.de. 60 IN A 188.40.123.177
[core@master0 ~]$ dig @213.133.98.98 +noall +answer -x 188.40.123.177
177.123.40.188.in-addr.arpa. 34543 IN PTR master1.loki.kaiserpfalz-edv.de.
[core@master0 ~]$ dig @213.133.98.98 +noall +answer master2.loki.kaiserpfalz-edv.de
master2.loki.kaiserpfalz-edv.de. 60 IN A 188.40.69.184
[core@master0 ~]$ dig @213.133.98.98 +noall +answer -x 188.40.69.184
184.69.40.188.in-addr.arpa. 86400 IN PTR master2.loki.kaiserpfalz-edv.de.
[core@master0 ~]$ dig @213.133.98.98 +noall +answer bootstrap.loki.kaiserpfalz-edv.de
bootstrap.loki.kaiserpfalz-edv.de. 60 IN A 162.55.101.99
[core@master0 ~]$ dig @213.133.98.98 +noall +answer -x 162.55.101.99
99.101.55.162.in-addr.arpa. 86400 IN PTR bootstrap.loki.kaiserpfalz-edv.de.
我是不是遗漏了一些配置?我的安装-config.yaml 非常基础:
---
apiVersion: v1
metadata:
name: loki
baseDomain: kaiserpfalz-edv.de
compute:
- hyperthreading: Enabled
name: worker
replicas: 0
platform: {}
controlPlane:
hyperthreading: Enabled
name: master
replicas: 3
platform: {}
networking:
clusterNetwork:
- cidr: 10.128.0.0/14
hostPrefix: 23
networkType: OpenShiftSDN
serviceNetwork:
- 172.30.0.0/16
platform:
none: {}
fips: false
pullSecret: <omitted>
sshKey <omitted>
问题是Hetzner的特殊环境。我必须在节点启动后立即登录并重新配置主机名。下次重启后一切正常。