resources

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2019 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package resources holds simple functions for synthesizing child resources from a Revision resource and any relevant Revision controller configuration.

Index

Constants

View Source
const (
	// UserContainerName is the name of the user-container in the PodSpec
	UserContainerName = "user-container"
	// FluentdContainerName is the name of the fluentd sidecar when enabled
	FluentdContainerName = "fluentd-proxy"
	// EnvoyContainerName is the name of the envoy sidecar when enabled
	EnvoyContainerName = "istio-proxy"
	// QueueContainerName is the name of the queue proxy side car
	QueueContainerName = "queue-proxy"

	// TODO(mattmoor): Make this private once we remove revision_test.go
	IstioOutboundIPRangeAnnotation = "traffic.sidecar.istio.io/includeOutboundIPRanges"

	// ServicePortName is the name of the external port of the service
	ServicePortNameHTTP1 = "http"
	ServicePortNameH2C   = "http2"

	// ServicePort is the external port of the service
	ServicePort = int32(80)
	// MetricsPortName is the name of the external port of the service for metrics
	MetricsPortName = "metrics"
	// MetricsPort is the external port of the service for metrics
	MetricsPort = int32(9090)
	AppLabelKey = "app"
)

Variables

View Source
var ProgressDeadlineSeconds int32 = 120

Functions

func MakeDeployment

func MakeDeployment(rev *v1alpha1.Revision,
	loggingConfig *logging.Config, networkConfig *network.Config, observabilityConfig *config.Observability,
	autoscalerConfig *autoscaler.Config, controllerConfig *config.Controller) *appsv1.Deployment

func MakeFluentdConfigMap

func MakeFluentdConfigMap(rev *v1alpha1.Revision, observabilityConfig *config.Observability) *corev1.ConfigMap

func MakeImageCache

func MakeImageCache(rev *v1alpha1.Revision, deploy *appsv1.Deployment) (*caching.Image, error)

func MakeK8sService

func MakeK8sService(rev *v1alpha1.Revision) *corev1.Service

MakeK8sService creates a Kubernetes Service that targets all pods with the same serving.RevisionLabelKey label. Traffic is routed to queue-proxy port.

func MakeKPA

func MakeKPA(rev *v1alpha1.Revision) *kpa.PodAutoscaler

func ServicePortName

func ServicePortName(rev *v1alpha1.Revision) string

Types

This section is empty.

Directories

Path Synopsis
Package names holds simple functions for synthesizing resource names.
Package names holds simple functions for synthesizing resource names.

Jump to

Keyboard shortcuts

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