kube

package
v0.1.0-beta.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2026 License: Apache-2.0 Imports: 56 Imported by: 0

Documentation

Index

Constants

View Source
const PodMetadataServiceName = "akash-provider-metadata"

PodMetadataServiceName is the canonical Service name pods resolve `AKASH_PROVIDER_METADATA_URL` against.

View Source
const PodMetadataServiceNamespace = "akash-services"

PodMetadataServiceNamespace is the default namespace for the metadata Service. Providers running multiple gateways on one cluster MUST override this in their helm values to avoid Service collisions.

View Source
const PodMetadataServicePort = 8443

PodMetadataServicePort is the cluster-internal port pods connect to. Must match the port the provider gateway listens on for the `/lease-metadata` sub-router.

Variables

This section is empty.

Functions

func PodMetadataServiceClusterDNS

func PodMetadataServiceClusterDNS() string

PodMetadataServiceClusterDNS returns the in-cluster DNS name pods use to reach the provider gateway. Construct with this helper rather than hard-coding so a future namespace change reflows everywhere.

func PodMetadataServiceDefaultURL

func PodMetadataServiceDefaultURL() string

PodMetadataServiceDefaultURL is the suggested value for `Settings.PodMetadataURL` in production. Providers wanting TLS should front the Service with a sidecar (e.g. linkerd) and pass `https://` instead.

func PodMetadataServiceManifest

func PodMetadataServiceManifest(gatewayPort int) string

PodMetadataServiceManifest returns the canonical k8s YAML for the ClusterIP Service + Endpoints used by the Phase 3 plumbing. Selector targets the provider gateway by the `akash.network/role` label the helm chart attaches to the provider deployment; ops teams running a custom selector must edit this in their values.

Apply with:

kubectl apply -f <(provider-services tools render-metadata-service)

(The provider CLI does not yet expose that subcommand — this helper is the building block.)

Types

type Client

type Client interface {
	cluster.Client
}

Client interface includes cluster client

func NewClient

func NewClient(ctx context.Context, log log.Logger, ns string) (Client, error)

NewClient returns new Kubernetes Client instance with provided logger, host and ns. Returns error in-case of failure configPath may be the empty string

Directories

Path Synopsis
operators

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL