kubectl -n <your-namespace> apply -f nginx.yaml
Enable port forwarding:
kubectl -n <your-namespace> port-forward svc/nginx 18080:80
Generate load:
python3 generate_load.py
kubectl -n <your-namespace> patch deployment nginx --patch-file nginx_patch.yaml
To undo the patch:
kubectl -n user1 rollout undo deployment nginx