Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions manifests/baremetal/coredns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ spec:
- "/etc/kubernetes/kubeconfig"
- "--api-vip"
- "{{ .ControllerConfig.Infra.Status.PlatformStatus.BareMetal.APIServerInternalIP }}"
- "--dns-vip"
- "{{ .ControllerConfig.Infra.Status.PlatformStatus.BareMetal.NodeDNSIP }}"
- "--ingress-vip"
- "{{ .ControllerConfig.Infra.Status.PlatformStatus.BareMetal.IngressIP }}"
- "/config"
Expand Down
15 changes: 0 additions & 15 deletions manifests/baremetal/keepalived.conf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,3 @@ vrrp_instance {{`{{.Cluster.Name}}`}}_API {
{{`{{ .Cluster.APIVIP }}`}}/{{`{{ .Cluster.VIPNetmask }}`}}
}
}

vrrp_instance {{`{{.Cluster.Name}}`}}_DNS {
state MASTER
interface {{`{{.VRRPInterface}}`}}
virtual_router_id {{`{{.Cluster.DNSVirtualRouterID }}`}}
priority 140
advert_int 1
authentication {
auth_type PASS
auth_pass {{`{{.Cluster.Name}}`}}_dns_vip
}
virtual_ipaddress {
{{`{{ .Cluster.DNSVIP }}`}}/{{`{{ .Cluster.VIPNetmask }}`}}
}
}
2 changes: 0 additions & 2 deletions manifests/baremetal/keepalived.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ spec:
- "/etc/kubernetes/kubeconfig"
- "--api-vip"
- "{{ .ControllerConfig.Infra.Status.PlatformStatus.BareMetal.APIServerInternalIP }}"
- "--dns-vip"
- "{{ .ControllerConfig.Infra.Status.PlatformStatus.BareMetal.NodeDNSIP }}"
- "--ingress-vip"
- "{{ .ControllerConfig.Infra.Status.PlatformStatus.BareMetal.IngressIP }}"
- "/config"
Expand Down
19 changes: 0 additions & 19 deletions pkg/operator/assets/bindata.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,6 @@ spec:
- "/etc/kubernetes/kubeconfig"
- "--api-vip"
- "{{ .ControllerConfig.Infra.Status.PlatformStatus.BareMetal.APIServerInternalIP }}"
- "--dns-vip"
- "{{ .ControllerConfig.Infra.Status.PlatformStatus.BareMetal.NodeDNSIP }}"
- "--ingress-vip"
- "{{ .ControllerConfig.Infra.Status.PlatformStatus.BareMetal.IngressIP }}"
- "/config"
Expand Down Expand Up @@ -262,21 +260,6 @@ vrrp_instance {{`+"`"+`{{.Cluster.Name}}`+"`"+`}}_API {
{{`+"`"+`{{ .Cluster.APIVIP }}`+"`"+`}}/{{`+"`"+`{{ .Cluster.VIPNetmask }}`+"`"+`}}
}
}

vrrp_instance {{`+"`"+`{{.Cluster.Name}}`+"`"+`}}_DNS {
state MASTER
interface {{`+"`"+`{{.VRRPInterface}}`+"`"+`}}
virtual_router_id {{`+"`"+`{{.Cluster.DNSVirtualRouterID }}`+"`"+`}}
priority 140
advert_int 1
authentication {
auth_type PASS
auth_pass {{`+"`"+`{{.Cluster.Name}}`+"`"+`}}_dns_vip
}
virtual_ipaddress {
{{`+"`"+`{{ .Cluster.DNSVIP }}`+"`"+`}}/{{`+"`"+`{{ .Cluster.VIPNetmask }}`+"`"+`}}
}
}
`)

func manifestsBaremetalKeepalivedConfTmplBytes() ([]byte, error) {
Expand Down Expand Up @@ -326,8 +309,6 @@ spec:
- "/etc/kubernetes/kubeconfig"
- "--api-vip"
- "{{ .ControllerConfig.Infra.Status.PlatformStatus.BareMetal.APIServerInternalIP }}"
- "--dns-vip"
- "{{ .ControllerConfig.Infra.Status.PlatformStatus.BareMetal.NodeDNSIP }}"
- "--ingress-vip"
- "{{ .ControllerConfig.Infra.Status.PlatformStatus.BareMetal.IngressIP }}"
- "/config"
Expand Down
4 changes: 0 additions & 4 deletions templates/common/baremetal/files/baremetal-coredns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ contents:
- "/etc/kubernetes/kubeconfig"
- "--api-vip"
- "{{ .Infra.Status.PlatformStatus.BareMetal.APIServerInternalIP }}"
- "--dns-vip"
- "{{ .Infra.Status.PlatformStatus.BareMetal.NodeDNSIP }}"
- "--ingress-vip"
- "{{ .Infra.Status.PlatformStatus.BareMetal.IngressIP }}"
- "/config"
Expand Down Expand Up @@ -98,8 +96,6 @@ contents:
- "/etc/coredns/Corefile"
- "--api-vip"
- "{{ .Infra.Status.PlatformStatus.BareMetal.APIServerInternalIP }}"
- "--dns-vip"
- "{{ .Infra.Status.PlatformStatus.BareMetal.NodeDNSIP }}"
- "--ingress-vip"
- "{{ .Infra.Status.PlatformStatus.BareMetal.IngressIP }}"
resources:
Expand Down
2 changes: 0 additions & 2 deletions templates/common/baremetal/files/baremetal-keepalived.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,6 @@ contents:
- "/etc/keepalived/keepalived.conf"
- "--api-vip"
- "{{ .Infra.Status.PlatformStatus.BareMetal.APIServerInternalIP }}"
- "--dns-vip"
- "{{ .Infra.Status.PlatformStatus.BareMetal.NodeDNSIP }}"
- "--ingress-vip"
- "{{ .Infra.Status.PlatformStatus.BareMetal.IngressIP }}"
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ contents:
- "/etc/kubernetes/kubeconfig"
- "--api-vip"
- "{{ .Infra.Status.PlatformStatus.BareMetal.APIServerInternalIP }}"
- "--dns-vip"
- "{{ .Infra.Status.PlatformStatus.BareMetal.NodeDNSIP }}"
- "--ingress-vip"
- "{{ .Infra.Status.PlatformStatus.BareMetal.IngressIP }}"
- "/config"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ contents:
case "$STATUS" in
up|down|dhcp4-change|dhcp6-change)
logger -s "NM resolv-prepender triggered by ${1} ${2}."
NAMESERVER_IP="{{.Infra.Status.PlatformStatus.BareMetal.NodeDNSIP}}"
NAMESERVER_IP=$(/usr/local/bin/non_virtual_ip \
"{{.Infra.Status.PlatformStatus.BareMetal.APIServerInternalIP}}" \
"{{.Infra.Status.PlatformStatus.BareMetal.IngressIP}}")
DOMAIN="{{.EtcdDiscoveryDomain}}"
set +e
if [[ -n "$NAMESERVER_IP" ]]; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ contents:
weight 50
}

vrrp_script chk_dns {
script "/usr/bin/host -t SRV _etcd-server-ssl._tcp.{{ .EtcdDiscoveryDomain }} localhost"
interval 1
weight 50
}

# TODO: Improve this check. The port is assumed to be alive.
# Need to assess what is the ramification if the port is not there.
vrrp_script chk_ingress {
Expand All @@ -41,24 +35,6 @@ contents:
}
}

vrrp_instance {{`{{ .Cluster.Name }}`}}_DNS {
state BACKUP
interface {{`{{ .VRRPInterface }}`}}
virtual_router_id {{`{{ .Cluster.DNSVirtualRouterID }}`}}
priority 40
advert_int 1
authentication {
auth_type PASS
auth_pass {{`{{ .Cluster.Name }}`}}_dns_vip
}
virtual_ipaddress {
{{`{{ .Cluster.DNSVIP }}`}}/{{`{{ .Cluster.VIPNetmask }}`}}
}
track_script {
chk_dns
}
}

vrrp_instance {{`{{ .Cluster.Name }}`}}_INGRESS {
state BACKUP
interface {{`{{ .VRRPInterface }}`}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ contents:
logger -s "NM resolv-prepender triggered by ${1} ${2}."
NAMESERVER_IP=$(/usr/local/bin/non_virtual_ip \
"{{.Infra.Status.PlatformStatus.BareMetal.APIServerInternalIP}}" \
"{{.Infra.Status.PlatformStatus.BareMetal.NodeDNSIP}}" \
"{{.Infra.Status.PlatformStatus.BareMetal.IngressIP}}")
DOMAIN="{{.EtcdDiscoveryDomain}}"
set +e
Expand Down