Hi@Aryan,
I think there is nothing wrong with your deployment script. I checked properly and test it in my system. It is working fine. There may be a network issue on your side.
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 2m56s default-scheduler Successfully assigned default/myreactapp-6b879bd58f-bg66p to minikube
Normal Started 101s (x4 over 2m50s) kubelet, minikube Started container myreactapp
Warning BackOff 68s (x6 over 2m31s) kubelet, minikube Back-off restarting failed container
Normal Pulling 54s (x5 over 2m54s) kubelet, minikube Pulling image "aryangupta4460/myreactapp:latest"
Normal Pulled 50s (x5 over 2m50s) kubelet, minikube Successfully pulled image "aryangupta4460/myreactapp:latest"
Normal Created 50s (x5 over 2m50s) kubelet, minikube Created container myreactapp