pods

package
v0.0.0-...-e58ac12 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Overview

nolint

nolint

nolint

nolint

Index

Constants

View Source
const (
	//DefaultKubeletAdminClusterRole default kubelet api admin cluster role name
	DefaultKubeletAdminClusterRole = "system:kubelet-api-admin"
	//DefaultAccount creates on namespace creating
	DefaultAccount = "default"
	// EnvForwardingPlane is the environment variable for configuring the forwarding plane
	EnvForwardingPlane = "FORWARDING_PLANE"
	// EnvForwardingPlaneVPP is the VPP forwarding plane
	EnvForwardingPlaneVPP = "vpp"
	// EnvForwardingPlaneKernel is the Kernel forwarding plane
	EnvForwardingPlaneKernel = "kernel-forwarder"
	// EnvForwardingPlaneDefault is the default forwarding plane
	EnvForwardingPlaneDefault = EnvForwardingPlaneVPP
	// NSEServiceAccount service account for Network Service Endpoints
	NSEServiceAccount = "nse-acc"
	// NSCServiceAccount service account for Network Service Clients
	NSCServiceAccount = "nsc-acc"
	// NSMgrServiceAccount service account for Network Service Managers
	NSMgrServiceAccount = "nsmgr-acc"
	// NSMRSServiceAccount service account for Network Service Manager Registry Server
	NSMRSServiceAccount = "nsmrs-acc"
	// ForwardPlaneServiceAccount service account for Forwarding Plane
	ForwardPlaneServiceAccount = "forward-plane-acc"
)
View Source
const (
	NSMDHostSystemPath = "/go/src"
	NSMDHostRootEnv    = "NSMD_HOST_ROOT" // A host path for all sources.
)
View Source
const (
	NSMgrContainerNormal = 0
	NSMgrContainerRun    = 1
	NSMgrContainerDebug  = 2
)

Variables

View Source
var ZeroGraceTimeout int64 = 0

Functions

func AdmissionWebhookDeployment

func AdmissionWebhookDeployment(name, image string) *appsv1.Deployment

AdmissionWebhookDeployment returns deployment named `name` which starts container from `image`

func AlpinePod

func AlpinePod(name string, node *v1.Node) *v1.Pod

func CrossConnectMonitorDeployment

func CrossConnectMonitorDeployment(namespace string, image string) *appsv1.Deployment

CrossConnectMonitorDeployment creates a new 'crossconnect-monitor' deployment

func CrossConnectMonitorService

func CrossConnectMonitorService(namespace string) *v1.Service

CrossConnectMonitorService creates a new 'crossconnect-monitor-svc' service

func DefaultNSMD

func DefaultNSMD() map[string]string

DefaultNSMD creates default variables for NSMD.

func DefaultNSMRS

func DefaultNSMRS() map[string]string

DefaultNSMRS creates default variables for NSMRS.

func DefaultProxyNSMD

func DefaultProxyNSMD() map[string]string

DefaultProxyNSMD creates default variables for NSMD.

func ForwardingPlane

func ForwardingPlane(name string, node *v1.Node, plane string) *v1.Pod

ForwardingPlane - Wrapper for getting a forwarding plane pod

func ForwardingPlaneWithConfig

func ForwardingPlaneWithConfig(name string, node *v1.Node, variables map[string]string, plane string) *v1.Pod

ForwardingPlaneWithConfig - Wrapper for getting a forwarding plane pod

func ForwardingPlaneWithLiveCheck

func ForwardingPlaneWithLiveCheck(name string, node *v1.Node, plane string) *v1.Pod

ForwardingPlaneWithLiveCheck - Wrapper for getting a forwarding plane pod with liveness/readiness probes

func InjectCoredns

func InjectCoredns(pod *v1.Pod, corednsConfigName string) *v1.Pod

InjectCoredns - Injects coredns container and configure the DnsConfig for template.

func InjectCorednsWithSharedFolder

func InjectCorednsWithSharedFolder(template *v1.Pod)

InjectCorednsWithSharedFolder - Injects coredns container and configure the DnsConfig for template. Also makes shared folder between coredns container and first container of template

func Jaeger

func Jaeger() *v1.Pod

func JaegerService

func JaegerService(pod *v1.Pod) *v1.Service

func KernelForwarderPod

func KernelForwarderPod(name string, node *v1.Node) *v1.Pod

KernelForwarderPod creates a pod

func KernelForwarderPodConfig

func KernelForwarderPodConfig(name string, node *v1.Node, variables map[string]string) *v1.Pod

KernelForwarderPodConfig creates a pod with config

func KernelForwarderPodLiveCheck

func KernelForwarderPodLiveCheck(name string, node *v1.Node) *v1.Pod

KernelForwarderPodLiveCheck creates a pod with live check

func NSCMonitorPod

func NSCMonitorPod(name string, node *v1.Node, env map[string]string) *v1.Pod

NSCMonitorPod - creates client with nsm-init and nsm-monitor as side-car

func NSCPod

func NSCPod(name string, node *v1.Node, env map[string]string) *v1.Pod

NSCPod creates a new 'nsc' pod with init container

func NSCPodWebhook

func NSCPodWebhook(name string, node *v1.Node) *v1.Pod

NSCPodWebhook creates a new 'nsc' pod without init container

func NSMRSPod

func NSMRSPod(name string, node *v1.Node, variables map[string]string) *v1.Pod

NSMRSPod - create NSMRS pod with default config

func NSMRSPodWithConfig

func NSMRSPodWithConfig(name string, node *v1.Node, config *NSMgrPodConfig) *v1.Pod

NSMRSPodWithConfig - create NSMRS pod with custom config

func NSMgrPod

func NSMgrPod(name string, node *v1.Node, namespace string) *v1.Pod

func NSMgrPodLiveCheck

func NSMgrPodLiveCheck(name string, node *v1.Node, namespace string) *v1.Pod

func NSMgrPodWithConfig

func NSMgrPodWithConfig(name string, node *v1.Node, config *NSMgrPodConfig) *v1.Pod

func PrefixServicePod

func PrefixServicePod(nmsp string) *v1.Pod

PrefixServicePod creates pod that collects cluster network prefixes and stores them to ConfigMap

func PrometheusConfigMap

func PrometheusConfigMap(namespace string) *v1.ConfigMap

PrometheusConfigMap creates a new 'prometheus-server' config map

func PrometheusDeployment

func PrometheusDeployment(namespace string) *appsv1.Deployment

PrometheusDeployment creates a new 'prometheus-server' deployment

func PrometheusService

func PrometheusService(namespace string) *v1.Service

PrometheusService creates a new 'prometheus-server' service

func ProxyNSMgrPod

func ProxyNSMgrPod(name string, node *v1.Node, namespace string) *v1.Pod

ProxyNSMgrPod - Proxy NSMgr pod with default configuration

func ProxyNSMgrPodLiveCheck

func ProxyNSMgrPodLiveCheck(name string, node *v1.Node, namespace string) *v1.Pod

ProxyNSMgrPodLiveCheck - Proxy NSMgr pod with default configuration and liveness/readiness probes

func ProxyNSMgrPodWithConfig

func ProxyNSMgrPodWithConfig(name string, node *v1.Node, config *NSMgrPodConfig) *v1.Pod

ProxyNSMgrPodWithConfig - Proxy NSMgr pod

func ProxyNSMgrSvc

func ProxyNSMgrSvc() *v1.Service

ProxyNSMgrSvc - Proxy NSMgr Service pod configuration

func SpireProxyPod

func SpireProxyPod() *v1.Pod

SpireProxyPod creates pod that proxy certificate channel from spire-agent

func TestCommonPod

func TestCommonPod(name string, command []string, node *v1.Node, env map[string]string, sa string) *v1.Pod

TestCommonPod creates a new alpine-based testing pod

func VPNGatewayNSEPod

func VPNGatewayNSEPod(name string, node *v1.Node, env map[string]string) *v1.Pod

VPNGatewayNSEPod creates a new 'vpn-gateway-nse' pod

func VPPForwarderPod

func VPPForwarderPod(name string, node *v1.Node) *v1.Pod

func VPPForwarderPodConfig

func VPPForwarderPodConfig(name string, node *v1.Node, variables map[string]string) *v1.Pod

func VPPForwarderPodLiveCheck

func VPPForwarderPodLiveCheck(name string, node *v1.Node) *v1.Pod

func VppAgentFirewallNSEConfigMapICMPHTTP

func VppAgentFirewallNSEConfigMapICMPHTTP(name, namespace string) *v1.ConfigMap

VppAgentFirewallNSEConfigMapICMPHTTP creates a new 'vppagent-firewall-nse' config map

func VppAgentFirewallNSEPod

func VppAgentFirewallNSEPod(name string, node *v1.Node, env map[string]string) *v1.Pod

VppAgentFirewallNSEPod creates a new 'vppagent-firewall-nse' pod

func VppAgentFirewallNSEPodWithConfigMap

func VppAgentFirewallNSEPodWithConfigMap(name string, node *v1.Node, env map[string]string) *v1.Pod

VppAgentFirewallNSEPodWithConfigMap creates a new 'vppagent-firewall-nse' pod with config map set

func VppTestCommonPod

func VppTestCommonPod(app, name, container string, node *v1.Node, env map[string]string, sa string) *v1.Pod

VppTestCommonPod creates a new vpp-based testing pod

func WrongNSCPodWebhook

func WrongNSCPodWebhook(name string, node *v1.Node) *v1.Pod

WrongNSCPodWebhook creates a new 'nsc' pod with init container and nsm-annotation

Types

type NSMRSPodConfig

type NSMRSPodConfig struct {
	Variables map[string]string
}

NSMRSPodConfig - configuration required for NSMRS Pod creating (environment variables)

type NSMgrContainerMode

type NSMgrContainerMode int8

type NSMgrPodConfig

type NSMgrPodConfig struct {
	Nsmd               NSMgrContainerMode // nsmd launch options - debug - for debug.sh, run - for run.sh
	NsmdK8s            NSMgrContainerMode // nsmd-k8s launch options - debug - for debug.sh, run - for run.sh
	NsmdP              NSMgrContainerMode // nsmdp launch options - debug - for debug.sh, run - for run.sh
	Variables          map[string]string
	ForwarderVariables map[string]string

	Namespace string
	// contains filtered or unexported fields
}

func NSMgrDevConfig

func NSMgrDevConfig(nsmd NSMgrContainerMode, nsmdp NSMgrContainerMode, nsmdk8s NSMgrContainerMode, namespace string) *NSMgrPodConfig

Jump to

Keyboard shortcuts

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