Kubernetes cluster-api provider for Proxmox VE
864
This repository contains a cluster-api provider for Proxmox VE.
Please, check the cluster-api project.
Proxmox VEThis project leverages Proxmox VE snippets to pass arbitrary
cloud-init contents to machines upon booting. While Proxmox VE
allows you to create snippets either by SSH'ing into the hypervisor,
or by using the UI, none of this solutions is optimal for creating
VM's: SSH'ing into the hypervisors is not desired, and snippet
creation through the UI is not programmatic.
Because of this reason, a small patch needs to be applied to your
Proxmox VE installation.
Without this patch, this provider won't work. If Proxmox
provides an official way of uploading snippets using the API, that
solution will be used instead of this patch.
Machines are created by cloning a template, and then booting the
cloned VM with some specific custom cloud-init scripts.
Create a VM template that will contain the minimum requirements for deploying Kubernetes. While this is not strictly required, it's a good idea so new machine creation and join will be much faster and less exposed to temporary errors when installing packages on first boot.
You can follow this instructions:
The manager needs to be started with certain environment variables set:
PROXMOX_HOSTPORT
a-proxmox.some-company.intra.net:8006PROXMOX_USERNAME
root@pamPROXMOX_PASSWORD
mypasswordPROXMOX_HYPERVISOR_NAME
proxmoxPROXMOX_HYPERVISOR_SNIPPETS_STORAGE
ci-snippetsSnippets content.VM_TEMPLATE_ID
9000TODOAll the previous environment variables should be removed as development on this provider evolves.
PROXMOX_HOSTPORT, PROXMOX_USERNAME, PROXMOX_PASSWORD, PROXMOX_HYPERVISOR_NAME, PROXMOX_HYPERVISOR_SNIPPETS_STORAGE envvarsVM_TEMPLATE_ID envvarcloud-init
configurationProxmox VE api, make it configurablecloud-init configurationclusterctlCopyright 2019 Rafael Fernández López <[email protected]>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Content type
Image
Digest
Size
396.5 MB
Last updated
about 7 years ago
docker pull ereslibre/cluster-api-provider-proxmox