mirror of
https://github.com/rancher/types.git
synced 2025-09-17 23:38:20 +00:00
Add nodelocaldns options
This commit is contained in:
committed by
Alena Prokharchyk
parent
cd2fb55386
commit
d01bb50887
@@ -114,6 +114,8 @@ type RKESystemImages struct {
|
||||
CoreDNS string `yaml:"coredns" json:"coredns,omitempty"`
|
||||
// CoreDNS autoscaler image
|
||||
CoreDNSAutoscaler string `yaml:"coredns_autoscaler" json:"corednsAutoscaler,omitempty"`
|
||||
// Nodelocal image
|
||||
Nodelocal string `yaml:"nodelocal" json:"nodelocal,omitempty"`
|
||||
// Kubernetes image
|
||||
Kubernetes string `yaml:"kubernetes" json:"kubernetes,omitempty"`
|
||||
// Flannel image
|
||||
@@ -818,6 +820,12 @@ type DNSConfig struct {
|
||||
StubDomains map[string][]string `yaml:"stubdomains" json:"stubdomains,omitempty"`
|
||||
// NodeSelector key pair
|
||||
NodeSelector map[string]string `yaml:"node_selector" json:"nodeSelector,omitempty"`
|
||||
// Nodelocal DNS
|
||||
Nodelocal *Nodelocal `yaml:"nodelocal" json:"nodelocal,omitempy"`
|
||||
}
|
||||
|
||||
type Nodelocal struct {
|
||||
IPAddress string `yaml:"ipaddress" json:"ipAddress,omitempy"`
|
||||
}
|
||||
|
||||
type RKETaint struct {
|
||||
|
@@ -13,7 +13,9 @@ func Mirror(image string) string {
|
||||
image = strings.Replace(image, "gcr.io/google_containers", "rancher", 1)
|
||||
image = strings.Replace(image, "quay.io/coreos/", "rancher/coreos-", 1)
|
||||
image = strings.Replace(image, "quay.io/calico/", "rancher/calico-", 1)
|
||||
image = strings.Replace(image, "k8s.gcr.io/", "rancher/nginx-ingress-controller-", 1)
|
||||
image = strings.Replace(image, "plugins/docker", "rancher/plugins-docker", 1)
|
||||
image = strings.Replace(image, "k8s.gcr.io/defaultbackend", "rancher/nginx-ingress-controller-", 1)
|
||||
image = strings.Replace(image, "k8s.gcr.io/k8s-dns-node-cache", "rancher/k8s-dns-node-cache", 1)
|
||||
image = strings.Replace(image, "plugins/docker", "rancher/plugins-docker", 1)
|
||||
image = strings.Replace(image, "kibana", "rancher/kibana", 1)
|
||||
image = strings.Replace(image, "jenkins/", "rancher/jenkins-", 1)
|
||||
|
Reference in New Issue
Block a user