зеркало из https://github.com/Azure/ARO-RP.git
Fix IP address resolution
This commit is contained in:
Родитель
064a723215
Коммит
8547640adb
2
go.mod
2
go.mod
|
@ -190,7 +190,7 @@ replace (
|
|||
github.com/openshift/cluster-api-provider-libvirt => github.com/openshift/cluster-api-provider-libvirt v0.2.1-0.20200919090150-1ca52adab176
|
||||
github.com/openshift/cluster-api-provider-ovirt => github.com/openshift/cluster-api-provider-ovirt v0.1.1-0.20210210114935-91f12f3f7dee
|
||||
github.com/openshift/console-operator => github.com/openshift/console-operator v0.0.0-20210116095614-7fd78a283616
|
||||
github.com/openshift/installer => github.com/mjudeikis/installer v0.9.0-master.0.20210422083719-c85b1106c3f3
|
||||
github.com/openshift/installer => github.com/mjudeikis/installer v0.9.0-master.0.20210423142443-7756cb69c32a
|
||||
github.com/openshift/machine-api-operator => github.com/openshift/machine-api-operator v0.2.1-0.20210212025836-cb508cd8777d
|
||||
github.com/openshift/machine-config-operator => github.com/openshift/machine-config-operator v0.0.1-0.20210211205336-14a2b82d9f4c
|
||||
github.com/operator-framework/operator-sdk => github.com/operator-framework/operator-sdk v0.19.4
|
||||
|
|
4
go.sum
4
go.sum
|
@ -1503,8 +1503,8 @@ github.com/mitchellh/pointerstructure v0.0.0-20190430161007-f252a8fd71c8/go.mod
|
|||
github.com/mitchellh/prefixedio v0.0.0-20190213213902-5733675afd51/go.mod h1:kB1naBgV9ORnkiTVeyJOI1DavaJkG4oNIq0Af6ZVKUo=
|
||||
github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw=
|
||||
github.com/mitchellh/reflectwalk v1.0.1/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw=
|
||||
github.com/mjudeikis/installer v0.9.0-master.0.20210422083719-c85b1106c3f3 h1:Zh+iSrrcBwo5korHRbdfCm+Si3aojzjiFagQDVAUdL4=
|
||||
github.com/mjudeikis/installer v0.9.0-master.0.20210422083719-c85b1106c3f3/go.mod h1:7VaPq04uNsqsSVgORCxZxNN7mq7FyhrvFBN2EPyk7iQ=
|
||||
github.com/mjudeikis/installer v0.9.0-master.0.20210423142443-7756cb69c32a h1:Sgx14vkKBwXgIOv3wBrqANgHalgr9TwiXnrm5h19c9s=
|
||||
github.com/mjudeikis/installer v0.9.0-master.0.20210423142443-7756cb69c32a/go.mod h1:7VaPq04uNsqsSVgORCxZxNN7mq7FyhrvFBN2EPyk7iQ=
|
||||
github.com/moby/ipvs v1.0.1/go.mod h1:2pngiyseZbIKXNv7hsKj3O9UEz30c53MT9005gt2hxQ=
|
||||
github.com/moby/sys/mountinfo v0.1.3/go.mod h1:w2t2Avltqx8vE7gX5l+QiBKxODu2TX0+Syr3h52Tw4o=
|
||||
github.com/moby/sys/mountinfo v0.4.0 h1:1KInV3Huv18akCu58V7lzNlt+jFmqlu1EaErnEHE/VM=
|
||||
|
|
|
@ -36,7 +36,11 @@ After=network-online.target
|
|||
Before=bootkube.service
|
||||
|
||||
[Service]
|
||||
ExecStartPre=/bin/bash -c 'if /usr/bin/test -f "/etc/resolv.conf.dnsmasq"; then echo "already replaced resolv.conf.dnsmasq"; else /bin/cp /etc/resolv.conf /etc/resolv.conf.dnsmasq; fi; /bin/sed -ni -e "/^nameserver /!p; \\$$a nameserver $$(hostname -I)" /etc/resolv.conf; /usr/sbin/restorecon /etc/resolv.conf'
|
||||
# ExecStartPre will create a copy of the customer current resolv.conf file and make it upstream DNS.
|
||||
# This file is a product of user DNS settings on the VNET. We will replace this file to point to
|
||||
# dnsmasq instance on the node. dnsmasq will inject certain dns records we need and forward rest of the queries to
|
||||
# resolv.conf.dnsmasq upstream customer dns.
|
||||
ExecStartPre=/bin/bash -c 'if /usr/bin/test -f "/etc/resolv.conf.dnsmasq"; then echo "already replaced resolv.conf.dnsmasq"; else /bin/cp /etc/resolv.conf /etc/resolv.conf.dnsmasq; fi; /bin/sed -ni -e "/^nameserver /!p; \\$$a nameserver $$(ip -f inet -o addr show eth0|cut -d\ -f 7 | cut -d/ -f 1)" /etc/resolv.conf; /usr/sbin/restorecon /etc/resolv.conf'
|
||||
ExecStart=/usr/sbin/dnsmasq -k
|
||||
ExecStopPost=/bin/bash -c '/bin/mv /etc/resolv.conf.dnsmasq /etc/resolv.conf; /usr/sbin/restorecon /etc/resolv.conf'
|
||||
Restart=always
|
||||
|
|
|
@ -776,7 +776,7 @@ github.com/openshift/cluster-api-provider-ovirt/pkg/apis/ovirtprovider/v1beta1
|
|||
# github.com/openshift/console-operator v0.0.0-20210216151626-6e1cbc849915 => github.com/openshift/console-operator v0.0.0-20210116095614-7fd78a283616
|
||||
## explicit
|
||||
github.com/openshift/console-operator/pkg/api
|
||||
# github.com/openshift/installer v0.16.1 => github.com/mjudeikis/installer v0.9.0-master.0.20210422083719-c85b1106c3f3
|
||||
# github.com/openshift/installer v0.16.1 => github.com/mjudeikis/installer v0.9.0-master.0.20210423142443-7756cb69c32a
|
||||
## explicit
|
||||
github.com/openshift/installer/data
|
||||
github.com/openshift/installer/pkg/aro/dnsmasq
|
||||
|
@ -1836,7 +1836,7 @@ sigs.k8s.io/yaml
|
|||
# github.com/openshift/cluster-api-provider-libvirt => github.com/openshift/cluster-api-provider-libvirt v0.2.1-0.20200919090150-1ca52adab176
|
||||
# github.com/openshift/cluster-api-provider-ovirt => github.com/openshift/cluster-api-provider-ovirt v0.1.1-0.20210210114935-91f12f3f7dee
|
||||
# github.com/openshift/console-operator => github.com/openshift/console-operator v0.0.0-20210116095614-7fd78a283616
|
||||
# github.com/openshift/installer => github.com/mjudeikis/installer v0.9.0-master.0.20210422083719-c85b1106c3f3
|
||||
# github.com/openshift/installer => github.com/mjudeikis/installer v0.9.0-master.0.20210423142443-7756cb69c32a
|
||||
# github.com/openshift/machine-api-operator => github.com/openshift/machine-api-operator v0.2.1-0.20210212025836-cb508cd8777d
|
||||
# github.com/openshift/machine-config-operator => github.com/openshift/machine-config-operator v0.0.1-0.20210211205336-14a2b82d9f4c
|
||||
# github.com/operator-framework/operator-sdk => github.com/operator-framework/operator-sdk v0.19.4
|
||||
|
|
Загрузка…
Ссылка в новой задаче