Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rke config for aws service_override results in a parsing error #1969

Open
ryanelliottsmith opened this issue Mar 14, 2020 · 2 comments
Open

Comments

@ryanelliottsmith
Copy link

RKE version:
1.0.4
Type/provider of hosts: (VirtualBox/Bare-metal/AWS/GCE/DO)
aws
cluster.yml file:

cloud_provider:
   name: aws
   awsCloudProvider:
     service_override:
       "ec2_ap-southeast-2":
         url: https://ec2.ap-southeast-2.amazonaws.com/
         signing-region: custom-signing-region
         service: ec2
         region: ap-southeast-2
nodes:
  - address: xxx
    internal_address: xxx
    user: ubuntu
    role: [controlplane,worker,etcd]
services:
  etcd:
    snapshot: true
    creation: 6h
    retention: 24h

Steps to Reproduce:
run rke up on the example cluster above.

Results:

rke up                                                                                                                                                 1
INFO[0000] Running RKE version: v1.0.4
INFO[0000] Initiating Kubernetes cluster
FATA[0000] Failed to register cloud provider: Failed to parse cloud config file: Failed to parse AWS cloud config
@ryanelliottsmith
Copy link
Author

Using the customCloudProvider serviceoverride works with this config:

cloud_provider:
  name: aws
  customCloudProvider: |-
    [serviceoverride "ap-southeast-2"]
    URL = https://ec2.ap-southeast-2.amazonaws.com/
    SigningRegion = custom-signing-region
    Service = ec2
    Region = ap-southeast-2

@jgallucci32
Copy link

@ryanelliottsmith I'm curious, did you go back and verify it wasn't a formatting issue? Your original post used different YAML formatting which I think results in different key/values being presented to K8s. Your follow-up comment is formatted the way I would expect.

The Amazon EC2 (in-tree) provider using awsCloudProvider has the Go structs to handle the service overrides so I would expect it to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants