This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
| #!/bin/sh | |
| # Kube Admin Reset | |
| kubeadm reset -f | |
| # Remove all packages related to Kubernetes | |
| apt remove -y kubeadm kubectl kubelet kubernetes-cni | |
| apt purge -y kube* | |
| # Remove docker containers/ images ( optional if using docker) | |
| docker image prune -a |
| #!/bin/bash | |
| # Ask for VIP and Interface | |
| read -p "Enter the Virtual IP (VIP): " VIP | |
| read -p "Enter the network interface: " INTERFACE | |
| # Fetch Kube-vip version | |
| KVVERSION=$(curl -sL https://api.github.com/repos/kube-vip/kube-vip/releases | jq -r ".[0].name") | |
| if [ -z "$KVVERSION" ]; then | |
| echo "Failed to fetch Kube-vip version" |
| #!/bin/bash | |
| # Colors for echo statements | |
| GREEN='\033[0;32m' | |
| YELLOW='\033[1;33m' | |
| RED='\033[0;31m' | |
| NC='\033[0m' # No Color | |
| # Check for sudo privileges | |
| if [ "$(id -u)" -ne 0 ]; then |
| #!/bin/bash | |
| # Colors for echo statements | |
| GREEN='\033[0;32m' | |
| YELLOW='\033[1;33m' | |
| RED='\033[0;31m' | |
| NC='\033[0m' # No Color | |
| # Step 0: Check if the script is being run with sudo privileges | |
| if [ "$(id -u)" -ne 0 ]; then |
| { | |
| "compilerOptions": { | |
| "target": "es6", | |
| "module": "commonjs", | |
| "lib": ["dom", "es6", "es2017", "esnext.asynciterable"], | |
| "skipLibCheck": true, | |
| "sourceMap": true, | |
| "outDir": "./dist", | |
| "moduleResolution": "node", | |
| "removeComments": true, |
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).