Problem:
Haans-MacBook-Pro:istio-1.0.6 haanmo$ kubectl run -it ubuntu --image ubuntu:18.04 bash
kubectl run --generator=deployment/apps.v1 is DEPRECATED and will be removed in a future version. Use kubectl run --generator=run-pod/v1 or kubectl create instead.
Error from server (AlreadyExists): deployments.apps "ubuntu" already exists
Solution:
1. remove ubuntu image
kubectl delete deployment ubuntu
2. Run kubectl run -it ubuntu --image ubuntu:18.04 bash again
Haans-MacBook-Pro:istio-1.0.6 haanmo$ kubectl run -it ubuntu --image ubuntu:18.04 bash
kubectl run --generator=deployment/apps.v1 is DEPRECATED and will be removed in a future version. Use kubectl run --generator=run-pod/v1 or kubectl create instead.
If you don't see a command prompt, try pressing enter.
root@ubuntu-6d97966568-v6twd:/#
Ubuntu is removed and redeployed.
check
kubectl get deployment
Following Problems:
Error from server (AlreadyExists): deployments.apps "ubuntu" already exists is removed.
However, The other errors are not removed.
댓글 없음:
댓글 쓰기