-
Notifications
You must be signed in to change notification settings - Fork 883
Examples of using golang bindings? #1506
Comments
@achanda would love to hear more about your use case. This is not something we've focused on as the intention is really for rkt to integrate tightly with other systems (like systemd, Kubernetes, etc) which expose their own APIs. The rkt API you reference (which will soon be available as a service - #1411) is intended for exposing read-only information about rkt pods/images only (see #1193, #1208); we want it to run as a non-privileged user, and for the foreseeable future @yifan-gu can you point @achanda towards how we programmatically use rkt from the kubelet? |
@jonboulle my use case is similar to kubelet. I was trying to add rkt support to https://github.com/hashicorp/nomad We were thinking if the integration will be more robust if we could use run rkt programatically. The PR is here: hashicorp/nomad#165 I was looking at the rkt package in kubernetes. The underlying implementation runs the rkt binary. Also, the rkt package seems to be pretty tightly integrated to kubernetes. I am not sure the package can be used in isolation. I am looking at: Thoughts? |
@achanda Had a glance at your PR, seems currently the driver only launches the rkt pod. If that's all you need, then you don't need the client library. However rkt has not planned to provide APIs for launching pods because it's daemonless. The suggested way is to use other daemon to invoke |
@jonboulle @yifan-gu thanks for the pointers guys. For now, I need to launch pods, thus a command invocation should be good enough. I will close this issue now. |
I am trying to run rkt programmatically from another application. Are there any official golang bindings? I am looking at https://github.com/coreos/rkt/blob/master/api/v1/api.pb.go and I assume I'd need to
go generate
code, but how do I vendor this in to another project? Are there any usage examples?The text was updated successfully, but these errors were encountered: