Is there a document to explain method of use, I don't know how to start锛寀rgent need to use锛孌oes anyone know锛宼hanks.
The top-level readme lists two examples:
https://github.com/kubernetes/client-go/blob/master/examples/in-cluster/main.go
https://github.com/kubernetes/client-go/blob/master/examples/out-of-cluster/main.go
Do those help?
others?example,create pods,create namespace,delete pods...@lavalamp
I don't think we have a great source. You can look at godoc, which isn't terrible, here:
https://godoc.org/k8s.io/client-go/kubernetes
Drill in for specific objects like Pods: https://godoc.org/k8s.io/client-go/kubernetes/typed/core/v1#PodInterface
Agreed that a few more examples would be extremely helpful.
E.g, I'm looking for how to create new jobs. I found the JobInterface docs, with a Create method, but have no clue how to even get started using that, as it in itself takes Job interface, which I don't know how to create, aso aso.
Everything is so dispersed, without no seemingly clear starting point. Thus, would really much hope to see a bunch of more examples.
UPDATE Feb 15, 2017: Managed to create a job now (with this code), by studying examples of 3rd party apps, like pachyderm. Still struggling to get the volume creation right, but progressing slowly.
Thanks for the feedback! #128 is tracking this now.
Most helpful comment
Agreed that a few more examples would be extremely helpful.
E.g, I'm looking for how to create new jobs. I found the JobInterface docs, with a
Createmethod, but have no clue how to even get started using that, as it in itself takes Job interface, which I don't know how to create, aso aso.Everything is so dispersed, without no seemingly clear starting point. Thus, would really much hope to see a bunch of more examples.
UPDATE Feb 15, 2017: Managed to create a job now (with this code), by studying examples of 3rd party apps, like pachyderm. Still struggling to get the volume creation right, but progressing slowly.