Documentation
¶
Index ¶
Constants ¶
const PodMetadataServiceName = "akash-provider-metadata"
PodMetadataServiceName is the canonical Service name pods resolve `AKASH_PROVIDER_METADATA_URL` against.
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.
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 ¶
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.)