Skip to content

Instantly share code, notes, and snippets.

View Nieto2018's full-sized avatar

Antonio Nieto García Nieto2018

View GitHub Profile
@Nieto2018
Nieto2018 / minikube_kvm2.md
Last active May 17, 2023 13:43
Minikube - KVM2

Minikube - KVM2

Create Minikube cluster

A cluster can be created with different configurations, but for testing in a local environment it is recommended to create the cluster with the kvm2 driver, as it allows us to modify parameters such as CPUs, RAM and volumes without having to delete and create clusters and also is the one that generates the least problems when using some tools, such as Ceph. The number of CPUs, RAM memory and volume size can be assigned as desired; in our case we will use 4 CPUs, 12Gb of RAM and 100Gb of storage volume.

minikube start --driver kvm2 --cpus 4 --memory=12g --disk-size=100g --extra-disks=1
#!/bin/sh
# Genera una CA y crea un certificado firmado por la CA generada
# Fuente: https://deliciousbrains.com/ssl-certificate-authority-for-local-https-development/
# if [ "$#" -ne 2 ]
# then
# echo "Usage: Must supply a domain and passphrase"
# exit 1
# fi