Documentation
¶
Overview ¶
Package kubernetes implements RuntimeAdapter using the Kubernetes API. Requires the platform Pod to have a ServiceAccount with the RBAC permissions documented in PLUGIN_RUNTIME.md.
This is a structural stub. To enable it:
- Add k8s.io/client-go and k8s.io/api to go.mod.
- Uncomment the import block and implement the methods below.
Index ¶
- type Runtime
- func (r *Runtime) Deploy(_ context.Context, spec runtime.ContainerSpec) error
- func (r *Runtime) Endpoint(_ context.Context, id string, port int) (string, error)
- func (r *Runtime) Logs(_ context.Context, _ string, _ int) ([]string, error)
- func (r *Runtime) Remove(_ context.Context, id string) error
- func (r *Runtime) Start(_ context.Context, id string) error
- func (r *Runtime) Status(_ context.Context, id string) (runtime.ContainerStatus, error)
- func (r *Runtime) Stop(_ context.Context, id string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
Runtime implements runtime.RuntimeAdapter for Kubernetes.
func New ¶
New creates a KubernetesRuntime. namespace is the k8s namespace plugins are deployed into (default: "kleff").
func (*Runtime) Endpoint ¶
Endpoint returns the ClusterIP Service DNS name for a plugin. Pattern: {id}.{namespace}.svc.cluster.local:{port}
Click to show internal directories.
Click to hide internal directories.