I`m trying to create replication controllers, services etc from the golang client. ("github.com/kubernetes/kubernetes/pkg/client/unversioned") However I cannot find any documentation on how to do so.
I found this:
r, err := c.ReplicationControllers(api.NamespaceDefault).Create(rep)
But I don`t know where to put the yml data etc. Anyone who found documentation or has some sample code that I could get started with ?