How to restart a deployment in kubernetes using go-client

4/21/2020

Is there a way to restart a kubernetes deployment using go-client .I have no idea how to achieve this ,help me!

-- Pattapu Sai
kubernetes
kubernetes-go-client

1 Answer

4/21/2020

Using Go client you can use Kubernetes API and perform operation like Create, Delete & Update the deployment.

here go client - https://github.com/kubernetes/client-go/tree/master/examples/create-update-delete-deployment

Example code file : https://github.com/kubernetes/client-go/blob/master/examples/create-update-delete-deployment/main.go

-- Harsh Manvar
Source: StackOverflow