This video will show you:
Install and config Nginx as Reverse Proxy on Microsoft Hyper-V server
Deploy NGINX Ingress and MetalLB load balancer
Deploy a sample app on Kubernetes cluster
✅ Install Nginx
Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/nvt... -OutFile 'C:\nginx.zip'
Expand-Archive -LiteralPath 'C:\nginx.zip' -DestinationPath C:\
Remove-Item 'C:\nginx.zip'
Invoke-WebRequest -Uri
✅ Install WinSW
https://github.com/winsw/winsw/releas... -OutFile 'C:\nginx\nginx-service.exe'
✅ Config and run nginx service
cd C:\nginx
.\nginx-service.exe install
net start nginx
✅ Create scheduled job
$trigger = New-JobTrigger -AtStartup -RandomDelay 00:00:30
Register-ScheduledJob -Trigger $trigger -FilePath C:\nginx\startup.ps1 -Name StartNginx
✅ Enable firewall
New-NetFirewallRule -DisplayName "Allow HTTP and HTTPs over Nginx" -Group "NGINX Reverse Proxy" -Direction Inbound -Action Allow -EdgeTraversalPolicy Allow -Protocol TCP -LocalPort 80,443 -Program "C:\nginx\nginx.exe"
✅ Deploy NGINX Ingress
kubectl apply -f https://raw.githubusercontent.com/kub...
✅ Deploy Cert Manager
kubectl apply -f https://github.com/jetstack/cert-mana...
✅ Deploy MetalLB
kubectl apply -f https://raw.githubusercontent.com/met...
kubectl apply -f https://raw.githubusercontent.com/met...
kubectl apply -f https://raw.githubusercontent.com/nvt...
✅ Deploy Example
kubectl create namespace example
kubectl -n example apply -f https://raw.githubusercontent.com/nvt...
kubectl -n example apply -f https://raw.githubusercontent.com/nvt...
kubectl -n example apply -f https://raw.githubusercontent.com/nvt...
For more details (Vietnamese): https://nvtienanh.info/devops/microso...