Cluster Kubernetes desplegado con Terraform y Ansible en OpenNebula.
-
Crear el fichero
.env
a partir deenv-example
y configurar las variables. -
Crear el fichero
terraform/variables.tf
a partir deterraform/variables.tf.example
y configurar las variables. -
Construir el contenedor donde se ejecuta Terraform.
make build
-
Crear la clave privada SSH para Ansible e inicializar Terraform.
make init
-
Desplegar el cluster en OpenNebula.
make apply
-
Conectarse al nodo maestro del cluster.
make ssh
Obtener el token temporal de acceso:
make dashboard-token
Establecer el túnel SSH de acceso:
make dashboard-tunnel
Y acceder a:
Nodo | CPUs | Memoria (GB) | Disco (GB) |
---|---|---|---|
master | 2 | 4 | 16 |
node-0 | 1 | 3 | 24 |
node-1 | 1 | 3 | 24 |
node-2 | 1 | 3 | 24 |
haproxy | 1 | 1 | 8 |
Total | 6 | 14 | 96 |
- Documentación del proveedor de OpenNebula
- Cluster de Kubernetes con Vagrant
- Install and Set Up kubectl on Linux
- alpine-kubectl
- How to detect 386, amd64, arm, or arm64 OS architecture via shell/bash
- print terraform output from list of list to a list of strings
- How to Install Kubernetes on Ubuntu 22.04 / Ubuntu 20.04
- How to Install Kubernetes Cluster on Ubuntu 22.04
- Ubuntu 22.04 and Kubernetes recently Broke Compatibility with Each Other (and how to work around it)
- Ansible playbook to upgrade Ubuntu/Debian servers and reboot if needed
- Ansible Register
- How to Use Environment Variables on Terraform
- How can I manage keyring files in trusted.gpg.d with ansible playbook since apt-key is deprecated?
- Passing additional variables from command line to make
- JSON Output Format
- How to Parse JSON Files on the Linux Command Line with jq
- SSH Tunnel within docker container
- How can I make "Press any key to continue"
- Debian/Ubuntu HAProxy packages
- Install Calico with Kubernetes API datastore, 50 nodes or less
- Run the HAProxy Kubernetes Ingress Controller Outside of Your Kubernetes Cluster
- Enable external mode for an on-premises Kubernetes installation
- Install calicoctl
- Route traffic to an example app
- ingress-controller-external-example
- The Ultimate Guide To Using Calico, Flannel, Weave and Cilium
- HAProxy Kubernetes Ingress Controller
- Configure a TLS certificate for all services
- Rook
- Getting Started
- Quickstart
- Host Storage Cluster
- Troubleshooting
- Block Storage (RBD)
- Shared Filesystem (CephFS)