Hello. Rancher 2.4.5 on DigitalOcean. Is there a way to configure a node template so that nodes are created in the correct DO VPC? There’s an API param vpc_uuid that can be used to select the VPC using the API but I’ve not been able to find a way to put that value into the template.
Thanks, Andrew.
Currently, no. Doesn’t look like we expose this parameter in our virtual machine provisioner.
For reference, here is the source code showing what fields that are exposed:
mcnflag.StringFlag{
EnvVar: "DIGITALOCEAN_ACCESS_TOKEN",
Name: "digitalocean-access-token",
Usage: "Digital Ocean access token",
},
mcnflag.StringFlag{
EnvVar: "DIGITALOCEAN_SSH_USER",
Name: "digitalocean-ssh-user",
Usage: "SSH username",
Value: defaultSSHUser,
},
mcnflag.StringFlag{
EnvVar: "DIGITALOCEAN_SSH_KEY_FINGERPRINT",
Name: "digitalocean-ssh-key-fingerprint",
Usage: "SSH key fingerprint",
},
mcnflag.StringFlag{
EnvVar: "DIGITALOCEAN_SSH_KEY_PATH",
Name: "digitalocean-ssh-key-path",
Usage: "SSH private key path ",
This file has been truncated. show original
Thank you for the response. What’s the process to make a feature request to get this added?