apt update
apt install software-properties-common -y
add-apt-repository --yes --update ppa:ansible/ansible
apt install -y ansible
apt install python3-pip -y
pip3 install kubernetes
echo "[inventory]" >> /etc/ansible/ansible.cfg
echo "enable_plugins = kubernetes.core.k8s" >> /etc/ansible/ansible.cfg
ansible-galaxy collection install kubernetes.core
apt update
apt install fontconfig openjdk-17-jre
minikube start --driver=virtualbox --cpus=4 --memory=4096
minikube addons enable ingress
minikube ip
echo "minikubeip hostname" | sudo tee -a /etc/hosts
https://app.vagrantup.com/boxes/search
touch Vagrantfile
vagrant box add ubuntu/bionic64
vagrant box list | grep bionic64
vagrant.exe init ubuntu/bionic64 --force
vagrant.exe up
vagrant.exe halt
vagrant plugin install vagrant-vbguest
vagrant.exe reload
vagrant.exe destroy
vagrant.exe ssh
snap install kubectl --classic
kubectl version --client
snap connect doctl:kube-config
apt update
apt install snapd
snap install doctl
doctl auth init
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.3.0/deploy/static/provider/cloud/deploy.yaml
kubectl get pods --namespace ingress-nginx
kubectl get service ingress-nginx-controller --namespace=ingress-nginx
openssl req -newkey rsa:2048 -nodes -keyout tls.key -out tls.csr
openssl x509 -req -sha256 -days 365 -in tls.csr -signkey tls.key -out tls.crt
cat /path/to/tls.crt | base64
cat /path/to/tls.key | base64
curl https://baltocdn.com/helm/signing.asc | gpg --dearmor | sudo tee /usr/share/keyrings/helm.gpg > /dev/null
sudo apt-get install apt-transport-https --yes
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/helm.gpg] https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list
sudo apt-get update
sudo apt-get install helm
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update
helm upgrade --install kube-prometheus-stack prometheus-community/kube-prometheus-stack -f kubernetes/helm/custom-values.yml -n ingress-nginx
helm delete kube-prometheus-stack -n ingress-nginx
http://<PUBLIC-IP or DOMAIN-NAME>:30090 -> Prometheus
http://<PUBLIC-IP or DOMAIN-NAME>:<Random-Port> -> Grafana
kubectl get secret --namespace ingress-nginx kube-prometheus-stack-grafana -o jsonpath="{.data.admin-user}" | base64 --decode ; echo admin
kubectl get secret --namespace ingress-nginx kube-prometheus-stack-grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo prom-operator