On minikube for windows I created a deployment on the kubernetes cluster, then I tried to scape it by changing replicas from 1 to 2, and after that kubectl hangs and my disk usage is 100%. I only have one container in my deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: first-deployment
spec:
replicas: 1
selector:
matchLabels:
run: app
template:
metadata:
labels:
run: app
spec:
containers:
- name: demo
image: ner_app
imagePullPolicy: IfNotPresent
ports:
- containerPort: 5000all I did was run this after the pods were successfully deployed and running
kubectl scale --replicas=2 deployment first-deploymentIn another terminal I was watching the pods using
kubectl get pods --watchBut everything is unresponsive and I'm not sure how to recover from this.
When I run kubectl get pods again it gives the following message
PS D:\docker\ner> kubectl get pods
Unable to connect to the server: net/http: TLS handshake timeoutIs there a way to recover, or cancel whatever process is running?
Also my VM's are on Hyper-V for Windows 10 Pro (minikube and Docker Desktop) both have the default RAM allocated - 2048MB
The container in my pod is a machine learning process and the model it loads could be large, in the order of 200MB to 300MB
You can set up resource limits on deployments so that pods will not use the entire available resource in the node.
You may have some proxy problems. Try following commands:
$ unset http_proxy
$ unset https_proxyand repeat your kubectl call.