Documentation ¶
Overview ¶
Package proxyregistryserver - forwards k8s commands from local registry to remote one
Index ¶
Constants ¶
View Source
const ( ProxyNsmdAPIAddressEnv = "PROXY_NSMD_ADDRESS" ProxyNsmdAPIAddressDefaults = "pnsmgr-svc:5006" ProxyNsmdK8sRemotePortEnv = "PROXY_NSMD_K8S_REMOTE_PORT" ProxyNsmdK8sRemotePortDefaults = "80" )
Default values and environment variables of proxy connection
View Source
const ( // NSRegistryForwarderLogPrefix - log prefix NSRegistryForwarderLogPrefix = "Network Service Registry Forwarder" // NSMRSAddressEnv - environment variable - address of Network Service Registry Server to forward NSE registry requests NSMRSAddressEnv = "NSMRS_ADDRESS" // NSMRSReconnectInterval - reconnect interval to NSMRS if connection refused NSMRSReconnectInterval = 15 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(clientset *nsmClientset.Clientset, clusterInfoService clusterinfo.ClusterInfoServer) *grpc.Server
New starts proxy Network Service Discovery Server and Cluster Info Server
func NewK8sClusterInfoService ¶
func NewK8sClusterInfoService(config *rest.Config) (clusterinfo.ClusterInfoServer, error)
NewK8sClusterInfoService creates a ClusterInfoServer
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.