mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-17 15:13:08 +00:00
Fix AWS region vs zone
We were specifying a region, but naming it as a zone in util.sh The zone matters just as much as the region, e.g. for EBS volumes. We also change the config to require a Zone, not a Region. But we fallback to get the information from the metadata service.
This commit is contained in:
@@ -75,7 +75,7 @@ func main() {
|
||||
|
||||
if *provider == "aws" {
|
||||
awsConfig := "[Global]\n"
|
||||
awsConfig += fmt.Sprintf("Region=%s\n", *gceZone)
|
||||
awsConfig += fmt.Sprintf("Zone=%s\n", *gceZone)
|
||||
|
||||
var err error
|
||||
cloudConfig.Provider, err = cloudprovider.GetCloudProvider(*provider, strings.NewReader(awsConfig))
|
||||
|
Reference in New Issue
Block a user