mirror of https://github.com/kubernetes/kops.git
Merge pull request #10564 from bjhaid/master
Make cluster proportional autoscaler image configurable.
This commit is contained in:
commit
a051af8dc0
|
|
@ -1875,6 +1875,10 @@ spec:
|
||||||
description: CoreDNSImage is used to override the default image
|
description: CoreDNSImage is used to override the default image
|
||||||
used for CoreDNS
|
used for CoreDNS
|
||||||
type: string
|
type: string
|
||||||
|
cpaImage:
|
||||||
|
description: CPAImage is used to override the default image used
|
||||||
|
for Cluster Proportional Autoscaler
|
||||||
|
type: string
|
||||||
cpuRequest:
|
cpuRequest:
|
||||||
anyOf:
|
anyOf:
|
||||||
- type: integer
|
- type: integer
|
||||||
|
|
|
||||||
|
|
@ -405,6 +405,8 @@ type KubeDNSConfig struct {
|
||||||
CacheMaxConcurrent int `json:"cacheMaxConcurrent,omitempty"`
|
CacheMaxConcurrent int `json:"cacheMaxConcurrent,omitempty"`
|
||||||
// CoreDNSImage is used to override the default image used for CoreDNS
|
// CoreDNSImage is used to override the default image used for CoreDNS
|
||||||
CoreDNSImage string `json:"coreDNSImage,omitempty"`
|
CoreDNSImage string `json:"coreDNSImage,omitempty"`
|
||||||
|
// CPAImage is used to override the default image used for Cluster Proportional Autoscaler
|
||||||
|
CPAImage string `json:"cpaImage,omitempty"`
|
||||||
// Domain is the dns domain
|
// Domain is the dns domain
|
||||||
Domain string `json:"domain,omitempty"`
|
Domain string `json:"domain,omitempty"`
|
||||||
// ExternalCoreFile is used to provide a complete CoreDNS CoreFile by the user - ignores other provided flags which modify the CoreFile.
|
// ExternalCoreFile is used to provide a complete CoreDNS CoreFile by the user - ignores other provided flags which modify the CoreFile.
|
||||||
|
|
|
||||||
|
|
@ -407,6 +407,8 @@ type KubeDNSConfig struct {
|
||||||
CacheMaxConcurrent int `json:"cacheMaxConcurrent,omitempty"`
|
CacheMaxConcurrent int `json:"cacheMaxConcurrent,omitempty"`
|
||||||
// CoreDNSImage is used to override the default image used for CoreDNS
|
// CoreDNSImage is used to override the default image used for CoreDNS
|
||||||
CoreDNSImage string `json:"coreDNSImage,omitempty"`
|
CoreDNSImage string `json:"coreDNSImage,omitempty"`
|
||||||
|
// CPAImage is used to override the default image used for Cluster Proportional Autoscaler
|
||||||
|
CPAImage string `json:"cpaImage,omitempty"`
|
||||||
// Domain is the dns domain
|
// Domain is the dns domain
|
||||||
Domain string `json:"domain,omitempty"`
|
Domain string `json:"domain,omitempty"`
|
||||||
// ExternalCoreFile is used to provide a complete CoreDNS CoreFile by the user - ignores other provided flags which modify the CoreFile.
|
// ExternalCoreFile is used to provide a complete CoreDNS CoreFile by the user - ignores other provided flags which modify the CoreFile.
|
||||||
|
|
|
||||||
|
|
@ -4590,6 +4590,7 @@ func autoConvert_v1alpha2_KubeDNSConfig_To_kops_KubeDNSConfig(in *KubeDNSConfig,
|
||||||
out.CacheMaxSize = in.CacheMaxSize
|
out.CacheMaxSize = in.CacheMaxSize
|
||||||
out.CacheMaxConcurrent = in.CacheMaxConcurrent
|
out.CacheMaxConcurrent = in.CacheMaxConcurrent
|
||||||
out.CoreDNSImage = in.CoreDNSImage
|
out.CoreDNSImage = in.CoreDNSImage
|
||||||
|
out.CPAImage = in.CPAImage
|
||||||
out.Domain = in.Domain
|
out.Domain = in.Domain
|
||||||
out.ExternalCoreFile = in.ExternalCoreFile
|
out.ExternalCoreFile = in.ExternalCoreFile
|
||||||
out.Image = in.Image
|
out.Image = in.Image
|
||||||
|
|
@ -4622,6 +4623,7 @@ func autoConvert_kops_KubeDNSConfig_To_v1alpha2_KubeDNSConfig(in *kops.KubeDNSCo
|
||||||
out.CacheMaxSize = in.CacheMaxSize
|
out.CacheMaxSize = in.CacheMaxSize
|
||||||
out.CacheMaxConcurrent = in.CacheMaxConcurrent
|
out.CacheMaxConcurrent = in.CacheMaxConcurrent
|
||||||
out.CoreDNSImage = in.CoreDNSImage
|
out.CoreDNSImage = in.CoreDNSImage
|
||||||
|
out.CPAImage = in.CPAImage
|
||||||
out.Domain = in.Domain
|
out.Domain = in.Domain
|
||||||
out.ExternalCoreFile = in.ExternalCoreFile
|
out.ExternalCoreFile = in.ExternalCoreFile
|
||||||
out.Image = in.Image
|
out.Image = in.Image
|
||||||
|
|
|
||||||
|
|
@ -28220,7 +28220,7 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: autoscaler
|
- name: autoscaler
|
||||||
image: k8s.gcr.io/cpa/cluster-proportional-autoscaler:1.8.3
|
image: {{ if KubeDNS.CPAImage }}{{ KubeDNS.CPAImage }}{{ else }}k8s.gcr.io/cpa/cluster-proportional-autoscaler:1.8.3{{ end }}
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: "20m"
|
cpu: "20m"
|
||||||
|
|
@ -29197,7 +29197,7 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: autoscaler
|
- name: autoscaler
|
||||||
image: k8s.gcr.io/cpa/cluster-proportional-autoscaler:1.8.3
|
image: {{ if KubeDNS.CPAImage }}{{ KubeDNS.CPAImage }}{{ else }}k8s.gcr.io/cpa/cluster-proportional-autoscaler:1.8.3{{ end }}
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: "20m"
|
cpu: "20m"
|
||||||
|
|
|
||||||
|
|
@ -104,7 +104,7 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: autoscaler
|
- name: autoscaler
|
||||||
image: k8s.gcr.io/cpa/cluster-proportional-autoscaler:1.8.3
|
image: {{ if KubeDNS.CPAImage }}{{ KubeDNS.CPAImage }}{{ else }}k8s.gcr.io/cpa/cluster-proportional-autoscaler:1.8.3{{ end }}
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: "20m"
|
cpu: "20m"
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: autoscaler
|
- name: autoscaler
|
||||||
image: k8s.gcr.io/cpa/cluster-proportional-autoscaler:1.8.3
|
image: {{ if KubeDNS.CPAImage }}{{ KubeDNS.CPAImage }}{{ else }}k8s.gcr.io/cpa/cluster-proportional-autoscaler:1.8.3{{ end }}
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: "20m"
|
cpu: "20m"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue