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

proposal: K8s Object Info via Cloud-Init Userdata #145

Open
akutz opened this issue May 9, 2023 · 0 comments
Open

proposal: K8s Object Info via Cloud-Init Userdata #145

akutz opened this issue May 9, 2023 · 0 comments
Labels

Comments

@akutz
Copy link
Collaborator

akutz commented May 9, 2023

Please describe the solution you would like.

I would like to share the same Secret resource with Cloud-Init userdata between multiple VirtualMachine (VM) resources. While this is supported, there is no way for Cloud-Init to know anything about the VM being deployed, meaning any information unique to a given VM requires a unique Secret resource. This proposal describes injecting the Cloud-Init metadata VM Operator constructs with the VirtualMachine resource so Cloud-Init userdata can access it.

Please find a link to the proposal entitled K8s Object Info via Cloud-Init Userdata: One-Pager.

Is there anything else you would like to add?

NA

Please tell us about your environment.

Value How to Obtain
Supervisor version NA rpm -qa VMware-wcp on the vCenter appliance
Supervisor node image version NA rpm -qa VMware-wcpovf on the vCenter appliance
Kubernetes version NA kubectl version
VM Operator version NA
kubectl -n vmware-system-vmop get pods \
  -ojsonpath='{range .items[*].spec.containers[*]}{.image}{"\n"}{end}' | \
  sort -u | \
  grep vmop | \
  awk -F'/' '{print $3}' | \
  awk -F: '{print $2}'
@akutz akutz added the proposal label May 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants
@akutz and others