









Tại phần này thì sẽ dùng K8s Cluster với thông số là 2 Control Plane Nodes, 1 Worker Nodes cho việc demo


kubectl apply -f https://k8s.io/examples/application/php-apache.yaml

kubectl set resources deployment php-apache --requests=cpu=200m
kubectl autoscale deployment php-apache --cpu-percent=50 --min=1 --max=10

kubectl apply -f load-generator.yaml



kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.10.0/deploy/static/provider/cloud/deploy.yaml


Ingress Controller đã tự động giao tiếp với VNData Cloud để tạo Load Balancer và nhận Public IP
kubectl create deployment web-nginx --image=nginx
kubectl expose deployment web-nginx --port=80 --type=ClusterIP
kubectl create deployment web-apache --image=httpd
kubectl expose deployment web-apache --port=80 --type=ClusterIP

ingress.yaml


