Posts

Showing posts from September, 2023

What is makefile and how to use it.

Image
A Makefile is a special file used in Unix and Unix-like operating systems to automate the building and compilation of programs or projects. It contains a set of rules and dependencies that specify how to build a target, typically an executable program or a collection of files. .SILENT : all : first second last # .DEFAULT_GOAL:= last first :     echo "hello world" second :     echo "hello Gaurav" last :     echo "hello world Gaurav"   Refer  here  for more details

Setup Minikube on Windows using WSL

Image
 curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 sudo install minikube-linux-amd64 /usr/local/bin/minikube Start a cluster -  minikube start Start second cluster - minikube start -p cluster2 List all minikube cluster running: minikube profile list Set second cluster as current profile- Kubectl: Set kubectl alias to run kubectl commands for minikube if kubectl is not installed locally: alias kubectl = "minikube kubectl --" View kubernetes config: kubectl config view To access minikube from windows command prompt -  Update kube config file as per config on WSL running minikube apiVersion : v1 clusters : - cluster :     certificate-authority : \\wsl.localhost\Ubuntu\home\gaugupta\.minikube\ca.crt     server : https://127.0.0.1:49159   name : cluster2 - cluster :     certificate-authority : \\wsl.localhost\Ubuntu\home\gaugupta\.minikube\ca.crt     server : https://127.0.0.1:49154   name :...