Kubernetes Dashboard Update Deployment Issue

2/14/2019

When I am trying to update the deployment by uploading an updated deployment.yaml, there is an error showing deployments.apps {my-app-name} already exists.

I know that I can update the image version from deployment, but I want to do all the work using yaml, so that I can keep track of what I am doing.

Thanks

p.s. I do not have console access to that machine, only the dashboard web interface.

-- Ray Tang
kubernetes
kubernetes-dashboard

2 Answers

2/14/2019

Didn't find the other way as to update deployment through the Dashboard WEB UI submenu: Deployments > View/edit YAML.Seems that POST request within https://Web_ui_dashboard_IP/api/v1/appdeploymentfromfile does not support deployment modification.

-- mk_sta
Source: StackOverflow

2/14/2019

please try following on command line :

kubectl apply -f deployment.yaml -n <namespace name>

To do this from dashboard by uploading the yaml file -

delete your existing deployment and upload the modified file. While your deployment is running, you cannot upload the file for the same deployment again.

-- user2510479
Source: StackOverflow