Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "lib/kubernetes/service"

Index

Functions

serviceTemplate

  • Create service spec to front a Kubernetes application. If the request has a serviceSpec, it is merged into the spec created by this function using lodash.merge(default, req.serviceSpec).

    It is possible to override the service name using the KubernetesApplication.serviceSpec. If you do this, make sure you know what you are doing.

    Parameters

    Returns Promise<V1Service>

    service resource specification

upsertService

  • If req.port is truthy, create a service if it does not exist and patch it if it does. Any provided req.serviceSpec is merged using serviceTemplate before creating/patching.

    Parameters

    Returns Promise<V1Service | undefined>

    Kubernetes resource spec used to create/patch resource, or undefined if port not defined

Generated using TypeDoc