How to deploy pods described in yaml files using client-go?

8/16/2019

Without using kubectl, I want to use client-go to deploy deployment/services described in yaml files. Which approach is the best: clientset, rest or dynamic? I do not want to parse yaml file and set every attributes of Deployment objects in clientset. So is there a way just load yaml config(maybe convert to json format) and apply it directly ?

-- kyleqian
client-go
go
kubernetes

0 Answers