projectcontour.v1alpha1.contourDeployment
"ContourDeployment is the schema for a Contour Deployment."
Index
fn new(name)
obj metadata
fn withAnnotations(annotations)
fn withAnnotationsMixin(annotations)
fn withClusterName(clusterName)
fn withCreationTimestamp(creationTimestamp)
fn withDeletionGracePeriodSeconds(deletionGracePeriodSeconds)
fn withDeletionTimestamp(deletionTimestamp)
fn withFinalizers(finalizers)
fn withFinalizersMixin(finalizers)
fn withGenerateName(generateName)
fn withGeneration(generation)
fn withLabels(labels)
fn withLabelsMixin(labels)
fn withName(name)
fn withNamespace(namespace)
fn withOwnerReferences(ownerReferences)
fn withOwnerReferencesMixin(ownerReferences)
fn withResourceVersion(resourceVersion)
fn withSelfLink(selfLink)
fn withUid(uid)
obj spec
fn withResourceLabels(resourceLabels)
fn withResourceLabelsMixin(resourceLabels)
obj spec.contour
fn withDisabledFeatures(disabledFeatures)
fn withDisabledFeaturesMixin(disabledFeatures)
fn withKubernetesLogLevel(kubernetesLogLevel)
fn withLogLevel(logLevel)
fn withPodAnnotations(podAnnotations)
fn withPodAnnotationsMixin(podAnnotations)
fn withReplicas(replicas)
fn withWatchNamespaces(watchNamespaces)
fn withWatchNamespacesMixin(watchNamespaces)
obj spec.contour.deployment
obj spec.contour.nodePlacement
obj spec.contour.resources
obj spec.envoy
fn withBaseID(baseID)
fn withExtraVolumeMounts(extraVolumeMounts)
fn withExtraVolumeMountsMixin(extraVolumeMounts)
fn withExtraVolumes(extraVolumes)
fn withExtraVolumesMixin(extraVolumes)
fn withLogLevel(logLevel)
fn withOverloadMaxHeapSize(overloadMaxHeapSize)
fn withPodAnnotations(podAnnotations)
fn withPodAnnotationsMixin(podAnnotations)
fn withReplicas(replicas)
fn withWorkloadType(workloadType)
obj spec.envoy.daemonSet
obj spec.envoy.deployment
obj spec.envoy.extraVolumeMounts
obj spec.envoy.extraVolumes
fn withName(name)
obj spec.envoy.extraVolumes.awsElasticBlockStore
obj spec.envoy.extraVolumes.azureDisk
obj spec.envoy.extraVolumes.azureFile
obj spec.envoy.extraVolumes.cephfs
obj spec.envoy.extraVolumes.cinder
obj spec.envoy.extraVolumes.configMap
obj spec.envoy.extraVolumes.csi
obj spec.envoy.extraVolumes.downwardAPI
obj spec.envoy.extraVolumes.emptyDir
obj spec.envoy.extraVolumes.ephemeral
obj spec.envoy.extraVolumes.ephemeral.volumeClaimTemplate
fn withMetadata(metadata)
fn withMetadataMixin(metadata)
obj spec.envoy.extraVolumes.ephemeral.volumeClaimTemplate.spec
fn withAccessModes(accessModes)
fn withAccessModesMixin(accessModes)
fn withStorageClassName(storageClassName)
fn withVolumeAttributesClassName(volumeAttributesClassName)
fn withVolumeMode(volumeMode)
fn withVolumeName(volumeName)
obj spec.envoy.extraVolumes.ephemeral.volumeClaimTemplate.spec.dataSource
obj spec.envoy.extraVolumes.ephemeral.volumeClaimTemplate.spec.dataSourceRef
obj spec.envoy.extraVolumes.ephemeral.volumeClaimTemplate.spec.resources
obj spec.envoy.extraVolumes.ephemeral.volumeClaimTemplate.spec.selector
obj spec.envoy.extraVolumes.fc
obj spec.envoy.extraVolumes.flexVolume
obj spec.envoy.extraVolumes.flocker
obj spec.envoy.extraVolumes.gcePersistentDisk
obj spec.envoy.extraVolumes.gitRepo
obj spec.envoy.extraVolumes.glusterfs
obj spec.envoy.extraVolumes.hostPath
obj spec.envoy.extraVolumes.iscsi
fn withChapAuthDiscovery(chapAuthDiscovery)
fn withChapAuthSession(chapAuthSession)
fn withFsType(fsType)
fn withInitiatorName(initiatorName)
fn withIqn(iqn)
fn withIscsiInterface(iscsiInterface)
fn withLun(lun)
fn withPortals(portals)
fn withPortalsMixin(portals)
fn withReadOnly(readOnly)
fn withTargetPortal(targetPortal)
obj spec.envoy.extraVolumes.iscsi.secretRef
obj spec.envoy.extraVolumes.nfs
obj spec.envoy.extraVolumes.persistentVolumeClaim
obj spec.envoy.extraVolumes.photonPersistentDisk
obj spec.envoy.extraVolumes.portworxVolume
obj spec.envoy.extraVolumes.projected
fn withDefaultMode(defaultMode)
fn withSources(sources)
fn withSourcesMixin(sources)
obj spec.envoy.extraVolumes.projected.sources
obj spec.envoy.extraVolumes.projected.sources.clusterTrustBundle
fn withName(name)
fn withOptional(optional)
fn withPath(path)
fn withSignerName(signerName)
obj spec.envoy.extraVolumes.projected.sources.clusterTrustBundle.labelSelector
obj spec.envoy.extraVolumes.projected.sources.configMap
obj spec.envoy.extraVolumes.projected.sources.downwardAPI
obj spec.envoy.extraVolumes.projected.sources.secret
obj spec.envoy.extraVolumes.projected.sources.serviceAccountToken
obj spec.envoy.extraVolumes.quobyte
obj spec.envoy.extraVolumes.rbd
obj spec.envoy.extraVolumes.scaleIO
fn withFsType(fsType)
fn withGateway(gateway)
fn withProtectionDomain(protectionDomain)
fn withReadOnly(readOnly)
fn withSslEnabled(sslEnabled)
fn withStorageMode(storageMode)
fn withStoragePool(storagePool)
fn withSystem(system)
fn withVolumeName(volumeName)
obj spec.envoy.extraVolumes.scaleIO.secretRef
obj spec.envoy.extraVolumes.secret
obj spec.envoy.extraVolumes.storageos
obj spec.envoy.extraVolumes.vsphereVolume
obj spec.envoy.networkPublishing
obj spec.envoy.nodePlacement
obj spec.envoy.resources
obj spec.runtimeSettings
fn withEnableExternalNameService(enableExternalNameService)
fn withFeatureFlags(featureFlags)
fn withFeatureFlagsMixin(featureFlags)
obj spec.runtimeSettings.debug
obj spec.runtimeSettings.envoy
fn withDefaultHTTPVersions(defaultHTTPVersions)
fn withDefaultHTTPVersionsMixin(defaultHTTPVersions)
obj spec.runtimeSettings.envoy.clientCertificate
obj spec.runtimeSettings.envoy.cluster
obj spec.runtimeSettings.envoy.health
obj spec.runtimeSettings.envoy.http
obj spec.runtimeSettings.envoy.https
obj spec.runtimeSettings.envoy.listener
fn withConnectionBalancer(connectionBalancer)
fn withDisableAllowChunkedLength(disableAllowChunkedLength)
fn withDisableMergeSlashes(disableMergeSlashes)
fn withHttpMaxConcurrentStreams(httpMaxConcurrentStreams)
fn withMaxConnectionsPerListener(maxConnectionsPerListener)
fn withMaxRequestsPerConnection(maxRequestsPerConnection)
fn withMaxRequestsPerIOCycle(maxRequestsPerIOCycle)
fn withPer-Connection-Buffer-Limit-Bytes(per_connection_buffer_limit_bytes)
fn withServerHeaderTransformation(serverHeaderTransformation)
fn withUseProxyProtocol(useProxyProtocol)
obj spec.runtimeSettings.envoy.listener.socketOptions
obj spec.runtimeSettings.envoy.listener.tls
obj spec.runtimeSettings.envoy.logging
obj spec.runtimeSettings.envoy.metrics
obj spec.runtimeSettings.envoy.network
obj spec.runtimeSettings.envoy.service
obj spec.runtimeSettings.envoy.timeouts
fn withConnectTimeout(connectTimeout)
fn withConnectionIdleTimeout(connectionIdleTimeout)
fn withConnectionShutdownGracePeriod(connectionShutdownGracePeriod)
fn withDelayedCloseTimeout(delayedCloseTimeout)
fn withMaxConnectionDuration(maxConnectionDuration)
fn withRequestTimeout(requestTimeout)
fn withStreamIdleTimeout(streamIdleTimeout)
obj spec.runtimeSettings.gateway
obj spec.runtimeSettings.globalExtAuth
obj spec.runtimeSettings.health
obj spec.runtimeSettings.httpproxy
obj spec.runtimeSettings.ingress
obj spec.runtimeSettings.metrics
obj spec.runtimeSettings.policy
obj spec.runtimeSettings.rateLimitService
fn withDomain(domain)
fn withEnableResourceExhaustedCode(enableResourceExhaustedCode)
fn withEnableXRateLimitHeaders(enableXRateLimitHeaders)
fn withFailOpen(failOpen)
obj spec.runtimeSettings.rateLimitService.defaultGlobalRateLimitPolicy
fn withDescriptors(descriptors)
fn withDescriptorsMixin(descriptors)
fn withDisabled(disabled)
obj spec.runtimeSettings.rateLimitService.defaultGlobalRateLimitPolicy.descriptors
fn withEntries(entries)
fn withEntriesMixin(entries)
obj spec.runtimeSettings.rateLimitService.defaultGlobalRateLimitPolicy.descriptors.entries
fn withRemoteAddress(remoteAddress)
fn withRemoteAddressMixin(remoteAddress)
obj spec.runtimeSettings.rateLimitService.defaultGlobalRateLimitPolicy.descriptors.entries.genericKey
obj spec.runtimeSettings.rateLimitService.defaultGlobalRateLimitPolicy.descriptors.entries.requestHeader
obj spec.runtimeSettings.rateLimitService.defaultGlobalRateLimitPolicy.descriptors.entries.requestHeaderValueMatch
obj spec.runtimeSettings.rateLimitService.extensionService
obj spec.runtimeSettings.tracing
fn withCustomTags(customTags)
fn withCustomTagsMixin(customTags)
fn withIncludePodDetail(includePodDetail)
fn withMaxPathTagLength(maxPathTagLength)
fn withOverallSampling(overallSampling)
fn withServiceName(serviceName)
obj spec.runtimeSettings.tracing.customTags
obj spec.runtimeSettings.tracing.extensionService
obj spec.runtimeSettings.xdsServer
Fields
fn new
new(name)
new returns an instance of ContourDeployment
obj metadata
"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."
fn metadata.withAnnotations
withAnnotations(annotations)
"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations"
fn metadata.withAnnotationsMixin
withAnnotationsMixin(annotations)
"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations"
Note: This function appends passed data to existing values
fn metadata.withClusterName
withClusterName(clusterName)
"The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request."
fn metadata.withCreationTimestamp
withCreationTimestamp(creationTimestamp)
"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."
fn metadata.withDeletionGracePeriodSeconds
withDeletionGracePeriodSeconds(deletionGracePeriodSeconds)
"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."
fn metadata.withDeletionTimestamp
withDeletionTimestamp(deletionTimestamp)
"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."
fn metadata.withFinalizers
withFinalizers(finalizers)
"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."
fn metadata.withFinalizersMixin
withFinalizersMixin(finalizers)
"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."
Note: This function appends passed data to existing values
fn metadata.withGenerateName
withGenerateName(generateName)
"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"
fn metadata.withGeneration
withGeneration(generation)
"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."
fn metadata.withLabels
withLabels(labels)
"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels"
fn metadata.withLabelsMixin
withLabelsMixin(labels)
"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels"
Note: This function appends passed data to existing values
fn metadata.withName
withName(name)
"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names"
fn metadata.withNamespace
withNamespace(namespace)
"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces"
fn metadata.withOwnerReferences
withOwnerReferences(ownerReferences)
"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."
fn metadata.withOwnerReferencesMixin
withOwnerReferencesMixin(ownerReferences)
"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."
Note: This function appends passed data to existing values
fn metadata.withResourceVersion
withResourceVersion(resourceVersion)
"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"
fn metadata.withSelfLink
withSelfLink(selfLink)
"SelfLink is a URL representing this object. Populated by the system. Read-only.\n\nDEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release."
fn metadata.withUid
withUid(uid)
"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids"
obj spec
"ContourDeploymentSpec specifies options for how a Contour\ninstance should be provisioned."
fn spec.withResourceLabels
withResourceLabels(resourceLabels)
"ResourceLabels is a set of labels to add to the provisioned Contour resources.\nDeprecated: use Gateway.Spec.Infrastructure.Labels instead. This field will be\nremoved in a future release."
fn spec.withResourceLabelsMixin
withResourceLabelsMixin(resourceLabels)
"ResourceLabels is a set of labels to add to the provisioned Contour resources.\nDeprecated: use Gateway.Spec.Infrastructure.Labels instead. This field will be\nremoved in a future release."
Note: This function appends passed data to existing values
obj spec.contour
"Contour specifies deployment-time settings for the Contour\npart of the installation, i.e. the xDS server/control plane\nand associated resources, including things like replica count\nfor the Deployment, and node placement constraints for the pods."
fn spec.contour.withDisabledFeatures
withDisabledFeatures(disabledFeatures)
"DisabledFeatures defines an array of resources that will be ignored by\ncontour reconciler."
fn spec.contour.withDisabledFeaturesMixin
withDisabledFeaturesMixin(disabledFeatures)
"DisabledFeatures defines an array of resources that will be ignored by\ncontour reconciler."
Note: This function appends passed data to existing values
fn spec.contour.withKubernetesLogLevel
withKubernetesLogLevel(kubernetesLogLevel)
"KubernetesLogLevel Enable Kubernetes client debug logging with log level. If unset,\ndefaults to 0."
fn spec.contour.withLogLevel
withLogLevel(logLevel)
"LogLevel sets the log level for Contour\nAllowed values are \"info\", \"debug\"."
fn spec.contour.withPodAnnotations
withPodAnnotations(podAnnotations)
"PodAnnotations defines annotations to add to the Contour pods.\nthe annotations for Prometheus will be appended or overwritten with predefined value."
fn spec.contour.withPodAnnotationsMixin
withPodAnnotationsMixin(podAnnotations)
"PodAnnotations defines annotations to add to the Contour pods.\nthe annotations for Prometheus will be appended or overwritten with predefined value."
Note: This function appends passed data to existing values
fn spec.contour.withReplicas
withReplicas(replicas)
"Deprecated: Use DeploymentSettings.Replicas
instead.\nReplicas is the desired number of Contour replicas. If if unset,\ndefaults to 2.\nif both DeploymentSettings.Replicas
and this one is set, use DeploymentSettings.Replicas
."
fn spec.contour.withWatchNamespaces
withWatchNamespaces(watchNamespaces)
"WatchNamespaces is an array of namespaces. Setting it will instruct the contour instance\nto only watch this subset of namespaces."
fn spec.contour.withWatchNamespacesMixin
withWatchNamespacesMixin(watchNamespaces)
"WatchNamespaces is an array of namespaces. Setting it will instruct the contour instance\nto only watch this subset of namespaces."
Note: This function appends passed data to existing values
obj spec.contour.deployment
"Deployment describes the settings for running contour as a Deployment
."
fn spec.contour.deployment.withReplicas
withReplicas(replicas)
"Replicas is the desired number of replicas."
obj spec.contour.deployment.strategy
"Strategy describes the deployment strategy to use to replace existing pods with new pods."
fn spec.contour.deployment.strategy.withType
withType(type)
"Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate."
obj spec.contour.deployment.strategy.rollingUpdate
"Rolling update config params. Present only if DeploymentStrategyType =\nRollingUpdate.\n---\nTODO: Update this to follow our convention for oneOf, whatever we decide it\nto be."
fn spec.contour.deployment.strategy.rollingUpdate.withMaxSurge
withMaxSurge(maxSurge)
"The maximum number of pods that can be scheduled above the desired number of\npods.\nValue can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).\nThis can not be 0 if MaxUnavailable is 0.\nAbsolute number is calculated from percentage by rounding up.\nDefaults to 25%.\nExample: when this is set to 30%, the new ReplicaSet can be scaled up immediately when\nthe rolling update starts, such that the total number of old and new pods do not exceed\n130% of desired pods. Once old pods have been killed,\nnew ReplicaSet can be scaled up further, ensuring that total number of pods running\nat any time during the update is at most 130% of desired pods."
fn spec.contour.deployment.strategy.rollingUpdate.withMaxUnavailable
withMaxUnavailable(maxUnavailable)
"The maximum number of pods that can be unavailable during the update.\nValue can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).\nAbsolute number is calculated from percentage by rounding down.\nThis can not be 0 if MaxSurge is 0.\nDefaults to 25%.\nExample: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods\nimmediately when the rolling update starts. Once new pods are ready, old ReplicaSet\ncan be scaled down further, followed by scaling up the new ReplicaSet, ensuring\nthat the total number of pods available at all times during the update is at\nleast 70% of desired pods."
obj spec.contour.nodePlacement
"NodePlacement describes node scheduling configuration of Contour pods."
fn spec.contour.nodePlacement.withNodeSelector
withNodeSelector(nodeSelector)
"NodeSelector is the simplest recommended form of node selection constraint\nand specifies a map of key-value pairs. For the pod to be eligible\nto run on a node, the node must have each of the indicated key-value pairs\nas labels (it can have additional labels as well).\nIf unset, the pod(s) will be scheduled to any available node."
fn spec.contour.nodePlacement.withNodeSelectorMixin
withNodeSelectorMixin(nodeSelector)
"NodeSelector is the simplest recommended form of node selection constraint\nand specifies a map of key-value pairs. For the pod to be eligible\nto run on a node, the node must have each of the indicated key-value pairs\nas labels (it can have additional labels as well).\nIf unset, the pod(s) will be scheduled to any available node."
Note: This function appends passed data to existing values
fn spec.contour.nodePlacement.withTolerations
withTolerations(tolerations)
"Tolerations work with taints to ensure that pods are not scheduled\nonto inappropriate nodes. One or more taints are applied to a node; this\nmarks that the node should not accept any pods that do not tolerate the\ntaints.\nThe default is an empty list.\nSee https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/\nfor additional details."
fn spec.contour.nodePlacement.withTolerationsMixin
withTolerationsMixin(tolerations)
"Tolerations work with taints to ensure that pods are not scheduled\nonto inappropriate nodes. One or more taints are applied to a node; this\nmarks that the node should not accept any pods that do not tolerate the\ntaints.\nThe default is an empty list.\nSee https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/\nfor additional details."
Note: This function appends passed data to existing values
obj spec.contour.nodePlacement.tolerations
"Tolerations work with taints to ensure that pods are not scheduled\nonto inappropriate nodes. One or more taints are applied to a node; this\nmarks that the node should not accept any pods that do not tolerate the\ntaints.\nThe default is an empty list.\nSee https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/\nfor additional details."
fn spec.contour.nodePlacement.tolerations.withEffect
withEffect(effect)
"Effect indicates the taint effect to match. Empty means match all taint effects.\nWhen specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute."
fn spec.contour.nodePlacement.tolerations.withKey
withKey(key)
"Key is the taint key that the toleration applies to. Empty means match all taint keys.\nIf the key is empty, operator must be Exists; this combination means to match all values and all keys."
fn spec.contour.nodePlacement.tolerations.withOperator
withOperator(operator)
"Operator represents a key's relationship to the value.\nValid operators are Exists and Equal. Defaults to Equal.\nExists is equivalent to wildcard for value, so that a pod can\ntolerate all taints of a particular category."
fn spec.contour.nodePlacement.tolerations.withTolerationSeconds
withTolerationSeconds(tolerationSeconds)
"TolerationSeconds represents the period of time the toleration (which must be\nof effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,\nit is not set, which means tolerate the taint forever (do not evict). Zero and\nnegative values will be treated as 0 (evict immediately) by the system."
fn spec.contour.nodePlacement.tolerations.withValue
withValue(value)
"Value is the taint value the toleration matches to.\nIf the operator is Exists, the value should be empty, otherwise just a regular string."
obj spec.contour.resources
"Compute Resources required by contour container.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
fn spec.contour.resources.withClaims
withClaims(claims)
"Claims lists the names of resources, defined in spec.resourceClaims,\nthat are used by this container.\nThis is an alpha field and requires enabling the\nDynamicResourceAllocation feature gate.\nThis field is immutable. It can only be set for containers."
fn spec.contour.resources.withClaimsMixin
withClaimsMixin(claims)
"Claims lists the names of resources, defined in spec.resourceClaims,\nthat are used by this container.\nThis is an alpha field and requires enabling the\nDynamicResourceAllocation feature gate.\nThis field is immutable. It can only be set for containers."
Note: This function appends passed data to existing values
fn spec.contour.resources.withLimits
withLimits(limits)
"Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
fn spec.contour.resources.withLimitsMixin
withLimitsMixin(limits)
"Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
Note: This function appends passed data to existing values
fn spec.contour.resources.withRequests
withRequests(requests)
"Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
fn spec.contour.resources.withRequestsMixin
withRequestsMixin(requests)
"Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
Note: This function appends passed data to existing values
obj spec.contour.resources.claims
"Claims lists the names of resources, defined in spec.resourceClaims,\nthat are used by this container.\nThis is an alpha field and requires enabling the\nDynamicResourceAllocation feature gate.\nThis field is immutable. It can only be set for containers."
fn spec.contour.resources.claims.withName
withName(name)
"Name must match the name of one entry in pod.spec.resourceClaims of\nthe Pod where this field is used. It makes that resource available\ninside a container."
obj spec.envoy
"Envoy specifies deployment-time settings for the Envoy\npart of the installation, i.e. the xDS client/data plane\nand associated resources, including things like the workload\ntype to use (DaemonSet or Deployment), node placement constraints\nfor the pods, and various options for the Envoy service."
fn spec.envoy.withBaseID
withBaseID(baseID)
"The base ID to use when allocating shared memory regions.\nif Envoy needs to be run multiple times on the same machine, each running Envoy will need a unique base ID\nso that the shared memory regions do not conflict.\ndefaults to 0."
fn spec.envoy.withExtraVolumeMounts
withExtraVolumeMounts(extraVolumeMounts)
"ExtraVolumeMounts holds the extra volume mounts to add (normally used with extraVolumes)."
fn spec.envoy.withExtraVolumeMountsMixin
withExtraVolumeMountsMixin(extraVolumeMounts)
"ExtraVolumeMounts holds the extra volume mounts to add (normally used with extraVolumes)."
Note: This function appends passed data to existing values
fn spec.envoy.withExtraVolumes
withExtraVolumes(extraVolumes)
"ExtraVolumes holds the extra volumes to add."
fn spec.envoy.withExtraVolumesMixin
withExtraVolumesMixin(extraVolumes)
"ExtraVolumes holds the extra volumes to add."
Note: This function appends passed data to existing values
fn spec.envoy.withLogLevel
withLogLevel(logLevel)
"LogLevel sets the log level for Envoy.\nAllowed values are \"trace\", \"debug\", \"info\", \"warn\", \"error\", \"critical\", \"off\"."
fn spec.envoy.withOverloadMaxHeapSize
withOverloadMaxHeapSize(overloadMaxHeapSize)
"OverloadMaxHeapSize defines the maximum heap memory of the envoy controlled by the overload manager.\nWhen the value is greater than 0, the overload manager is enabled,\nand when envoy reaches 95% of the maximum heap size, it performs a shrink heap operation,\nWhen it reaches 98% of the maximum heap size, Envoy Will stop accepting requests.\nMore info: https://projectcontour.io/docs/main/config/overload-manager/"
fn spec.envoy.withPodAnnotations
withPodAnnotations(podAnnotations)
"PodAnnotations defines annotations to add to the Envoy pods.\nthe annotations for Prometheus will be appended or overwritten with predefined value."
fn spec.envoy.withPodAnnotationsMixin
withPodAnnotationsMixin(podAnnotations)
"PodAnnotations defines annotations to add to the Envoy pods.\nthe annotations for Prometheus will be appended or overwritten with predefined value."
Note: This function appends passed data to existing values
fn spec.envoy.withReplicas
withReplicas(replicas)
"Deprecated: Use DeploymentSettings.Replicas
instead.\nReplicas is the desired number of Envoy replicas. If WorkloadType\nis not \"Deployment\", this field is ignored. Otherwise, if unset,\ndefaults to 2.\nif both DeploymentSettings.Replicas
and this one is set, use DeploymentSettings.Replicas
."
fn spec.envoy.withWorkloadType
withWorkloadType(workloadType)
"WorkloadType is the type of workload to install Envoy\nas. Choices are DaemonSet and Deployment. If unset, defaults\nto DaemonSet."
obj spec.envoy.daemonSet
"DaemonSet describes the settings for running envoy as a DaemonSet
.\nif WorkloadType
is Deployment
,it's must be nil"
obj spec.envoy.daemonSet.updateStrategy
"Strategy describes the deployment strategy to use to replace existing DaemonSet pods with new pods."
fn spec.envoy.daemonSet.updateStrategy.withType
withType(type)
"Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate."
obj spec.envoy.daemonSet.updateStrategy.rollingUpdate
"Rolling update config params. Present only if type = \"RollingUpdate\".\n---\nTODO: Update this to follow our convention for oneOf, whatever we decide it\nto be. Same as Deployment strategy.rollingUpdate
.\nSee https://github.com/kubernetes/kubernetes/issues/35345"
fn spec.envoy.daemonSet.updateStrategy.rollingUpdate.withMaxSurge
withMaxSurge(maxSurge)
"The maximum number of nodes with an existing available DaemonSet pod that\ncan have an updated DaemonSet pod during during an update.\nValue can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).\nThis can not be 0 if MaxUnavailable is 0.\nAbsolute number is calculated from percentage by rounding up to a minimum of 1.\nDefault value is 0.\nExample: when this is set to 30%, at most 30% of the total number of nodes\nthat should be running the daemon pod (i.e. status.desiredNumberScheduled)\ncan have their a new pod created before the old pod is marked as deleted.\nThe update starts by launching new pods on 30% of nodes. Once an updated\npod is available (Ready for at least minReadySeconds) the old DaemonSet pod\non that node is marked deleted. If the old pod becomes unavailable for any\nreason (Ready transitions to false, is evicted, or is drained) an updated\npod is immediatedly created on that node without considering surge limits.\nAllowing surge implies the possibility that the resources consumed by the\ndaemonset on any given node can double if the readiness check fails, and\nso resource intensive daemonsets should take into account that they may\ncause evictions during disruption."
fn spec.envoy.daemonSet.updateStrategy.rollingUpdate.withMaxUnavailable
withMaxUnavailable(maxUnavailable)
"The maximum number of DaemonSet pods that can be unavailable during the\nupdate. Value can be an absolute number (ex: 5) or a percentage of total\nnumber of DaemonSet pods at the start of the update (ex: 10%). Absolute\nnumber is calculated from percentage by rounding up.\nThis cannot be 0 if MaxSurge is 0\nDefault value is 1.\nExample: when this is set to 30%, at most 30% of the total number of nodes\nthat should be running the daemon pod (i.e. status.desiredNumberScheduled)\ncan have their pods stopped for an update at any given time. The update\nstarts by stopping at most 30% of those DaemonSet pods and then brings\nup new DaemonSet pods in their place. Once the new pods are available,\nit then proceeds onto other DaemonSet pods, thus ensuring that at least\n70% of original number of DaemonSet pods are available at all times during\nthe update."
obj spec.envoy.deployment
"Deployment describes the settings for running envoy as a Deployment
.\nif WorkloadType
is DaemonSet
,it's must be nil"
fn spec.envoy.deployment.withReplicas
withReplicas(replicas)
"Replicas is the desired number of replicas."
obj spec.envoy.deployment.strategy
"Strategy describes the deployment strategy to use to replace existing pods with new pods."
fn spec.envoy.deployment.strategy.withType
withType(type)
"Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate."
obj spec.envoy.deployment.strategy.rollingUpdate
"Rolling update config params. Present only if DeploymentStrategyType =\nRollingUpdate.\n---\nTODO: Update this to follow our convention for oneOf, whatever we decide it\nto be."
fn spec.envoy.deployment.strategy.rollingUpdate.withMaxSurge
withMaxSurge(maxSurge)
"The maximum number of pods that can be scheduled above the desired number of\npods.\nValue can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).\nThis can not be 0 if MaxUnavailable is 0.\nAbsolute number is calculated from percentage by rounding up.\nDefaults to 25%.\nExample: when this is set to 30%, the new ReplicaSet can be scaled up immediately when\nthe rolling update starts, such that the total number of old and new pods do not exceed\n130% of desired pods. Once old pods have been killed,\nnew ReplicaSet can be scaled up further, ensuring that total number of pods running\nat any time during the update is at most 130% of desired pods."
fn spec.envoy.deployment.strategy.rollingUpdate.withMaxUnavailable
withMaxUnavailable(maxUnavailable)
"The maximum number of pods that can be unavailable during the update.\nValue can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).\nAbsolute number is calculated from percentage by rounding down.\nThis can not be 0 if MaxSurge is 0.\nDefaults to 25%.\nExample: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods\nimmediately when the rolling update starts. Once new pods are ready, old ReplicaSet\ncan be scaled down further, followed by scaling up the new ReplicaSet, ensuring\nthat the total number of pods available at all times during the update is at\nleast 70% of desired pods."
obj spec.envoy.extraVolumeMounts
"ExtraVolumeMounts holds the extra volume mounts to add (normally used with extraVolumes)."
fn spec.envoy.extraVolumeMounts.withMountPath
withMountPath(mountPath)
"Path within the container at which the volume should be mounted. Must\nnot contain ':'."
fn spec.envoy.extraVolumeMounts.withMountPropagation
withMountPropagation(mountPropagation)
"mountPropagation determines how mounts are propagated from the host\nto container and the other way around.\nWhen not set, MountPropagationNone is used.\nThis field is beta in 1.10."
fn spec.envoy.extraVolumeMounts.withName
withName(name)
"This must match the Name of a Volume."
fn spec.envoy.extraVolumeMounts.withReadOnly
withReadOnly(readOnly)
"Mounted read-only if true, read-write otherwise (false or unspecified).\nDefaults to false."
fn spec.envoy.extraVolumeMounts.withSubPath
withSubPath(subPath)
"Path within the volume from which the container's volume should be mounted.\nDefaults to \"\" (volume's root)."
fn spec.envoy.extraVolumeMounts.withSubPathExpr
withSubPathExpr(subPathExpr)
"Expanded path within the volume from which the container's volume should be mounted.\nBehaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.\nDefaults to \"\" (volume's root).\nSubPathExpr and SubPath are mutually exclusive."
obj spec.envoy.extraVolumes
"ExtraVolumes holds the extra volumes to add."
fn spec.envoy.extraVolumes.withName
withName(name)
"name of the volume.\nMust be a DNS_LABEL and unique within the pod.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"
obj spec.envoy.extraVolumes.awsElasticBlockStore
"awsElasticBlockStore represents an AWS Disk resource that is attached to a\nkubelet's host machine and then exposed to the pod.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore"
fn spec.envoy.extraVolumes.awsElasticBlockStore.withFsType
withFsType(fsType)
"fsType is the filesystem type of the volume that you want to mount.\nTip: Ensure that the filesystem type is supported by the host operating system.\nExamples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore\nTODO: how do we prevent errors in the filesystem from compromising the machine"
fn spec.envoy.extraVolumes.awsElasticBlockStore.withPartition
withPartition(partition)
"partition is the partition in the volume that you want to mount.\nIf omitted, the default is to mount by volume name.\nExamples: For volume /dev/sda1, you specify the partition as \"1\".\nSimilarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty)."
fn spec.envoy.extraVolumes.awsElasticBlockStore.withReadOnly
withReadOnly(readOnly)
"readOnly value true will force the readOnly setting in VolumeMounts.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore"
fn spec.envoy.extraVolumes.awsElasticBlockStore.withVolumeID
withVolumeID(volumeID)
"volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume).\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore"
obj spec.envoy.extraVolumes.azureDisk
"azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod."
fn spec.envoy.extraVolumes.azureDisk.withCachingMode
withCachingMode(cachingMode)
"cachingMode is the Host Caching mode: None, Read Only, Read Write."
fn spec.envoy.extraVolumes.azureDisk.withDiskName
withDiskName(diskName)
"diskName is the Name of the data disk in the blob storage"
fn spec.envoy.extraVolumes.azureDisk.withDiskURI
withDiskURI(diskURI)
"diskURI is the URI of data disk in the blob storage"
fn spec.envoy.extraVolumes.azureDisk.withFsType
withFsType(fsType)
"fsType is Filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified."
fn spec.envoy.extraVolumes.azureDisk.withKind
withKind(kind)
"kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared"
fn spec.envoy.extraVolumes.azureDisk.withReadOnly
withReadOnly(readOnly)
"readOnly Defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts."
obj spec.envoy.extraVolumes.azureFile
"azureFile represents an Azure File Service mount on the host and bind mount to the pod."
fn spec.envoy.extraVolumes.azureFile.withReadOnly
withReadOnly(readOnly)
"readOnly defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts."
fn spec.envoy.extraVolumes.azureFile.withSecretName
withSecretName(secretName)
"secretName is the name of secret that contains Azure Storage Account Name and Key"
fn spec.envoy.extraVolumes.azureFile.withShareName
withShareName(shareName)
"shareName is the azure share Name"
obj spec.envoy.extraVolumes.cephfs
"cephFS represents a Ceph FS mount on the host that shares a pod's lifetime"
fn spec.envoy.extraVolumes.cephfs.withMonitors
withMonitors(monitors)
"monitors is Required: Monitors is a collection of Ceph monitors\nMore info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"
fn spec.envoy.extraVolumes.cephfs.withMonitorsMixin
withMonitorsMixin(monitors)
"monitors is Required: Monitors is a collection of Ceph monitors\nMore info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"
Note: This function appends passed data to existing values
fn spec.envoy.extraVolumes.cephfs.withPath
withPath(path)
"path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /"
fn spec.envoy.extraVolumes.cephfs.withReadOnly
withReadOnly(readOnly)
"readOnly is Optional: Defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.\nMore info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"
fn spec.envoy.extraVolumes.cephfs.withSecretFile
withSecretFile(secretFile)
"secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret\nMore info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"
fn spec.envoy.extraVolumes.cephfs.withUser
withUser(user)
"user is optional: User is the rados user name, default is admin\nMore info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"
obj spec.envoy.extraVolumes.cephfs.secretRef
"secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty.\nMore info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"
fn spec.envoy.extraVolumes.cephfs.secretRef.withName
withName(name)
"Name of the referent.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Add other useful fields. apiVersion, kind, uid?"
obj spec.envoy.extraVolumes.cinder
"cinder represents a cinder volume attached and mounted on kubelets host machine.\nMore info: https://examples.k8s.io/mysql-cinder-pd/README.md"
fn spec.envoy.extraVolumes.cinder.withFsType
withFsType(fsType)
"fsType is the filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nExamples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\nMore info: https://examples.k8s.io/mysql-cinder-pd/README.md"
fn spec.envoy.extraVolumes.cinder.withReadOnly
withReadOnly(readOnly)
"readOnly defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.\nMore info: https://examples.k8s.io/mysql-cinder-pd/README.md"
fn spec.envoy.extraVolumes.cinder.withVolumeID
withVolumeID(volumeID)
"volumeID used to identify the volume in cinder.\nMore info: https://examples.k8s.io/mysql-cinder-pd/README.md"
obj spec.envoy.extraVolumes.cinder.secretRef
"secretRef is optional: points to a secret object containing parameters used to connect\nto OpenStack."
fn spec.envoy.extraVolumes.cinder.secretRef.withName
withName(name)
"Name of the referent.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Add other useful fields. apiVersion, kind, uid?"
obj spec.envoy.extraVolumes.configMap
"configMap represents a configMap that should populate this volume"
fn spec.envoy.extraVolumes.configMap.withDefaultMode
withDefaultMode(defaultMode)
"defaultMode is optional: mode bits used to set permissions on created files by default.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nDefaults to 0644.\nDirectories within the path are not affected by this setting.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set."
fn spec.envoy.extraVolumes.configMap.withItems
withItems(items)
"items if unspecified, each key-value pair in the Data field of the referenced\nConfigMap will be projected into the volume as a file whose name is the\nkey and content is the value. If specified, the listed keys will be\nprojected into the specified paths, and unlisted keys will not be\npresent. If a key is specified which is not present in the ConfigMap,\nthe volume setup will error unless it is marked optional. Paths must be\nrelative and may not contain the '..' path or start with '..'."
fn spec.envoy.extraVolumes.configMap.withItemsMixin
withItemsMixin(items)
"items if unspecified, each key-value pair in the Data field of the referenced\nConfigMap will be projected into the volume as a file whose name is the\nkey and content is the value. If specified, the listed keys will be\nprojected into the specified paths, and unlisted keys will not be\npresent. If a key is specified which is not present in the ConfigMap,\nthe volume setup will error unless it is marked optional. Paths must be\nrelative and may not contain the '..' path or start with '..'."
Note: This function appends passed data to existing values
fn spec.envoy.extraVolumes.configMap.withName
withName(name)
"Name of the referent.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Add other useful fields. apiVersion, kind, uid?"
fn spec.envoy.extraVolumes.configMap.withOptional
withOptional(optional)
"optional specify whether the ConfigMap or its keys must be defined"
obj spec.envoy.extraVolumes.configMap.items
"items if unspecified, each key-value pair in the Data field of the referenced\nConfigMap will be projected into the volume as a file whose name is the\nkey and content is the value. If specified, the listed keys will be\nprojected into the specified paths, and unlisted keys will not be\npresent. If a key is specified which is not present in the ConfigMap,\nthe volume setup will error unless it is marked optional. Paths must be\nrelative and may not contain the '..' path or start with '..'."
fn spec.envoy.extraVolumes.configMap.items.withKey
withKey(key)
"key is the key to project."
fn spec.envoy.extraVolumes.configMap.items.withMode
withMode(mode)
"mode is Optional: mode bits used to set permissions on this file.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nIf not specified, the volume defaultMode will be used.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set."
fn spec.envoy.extraVolumes.configMap.items.withPath
withPath(path)
"path is the relative path of the file to map the key to.\nMay not be an absolute path.\nMay not contain the path element '..'.\nMay not start with the string '..'."
obj spec.envoy.extraVolumes.csi
"csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature)."
fn spec.envoy.extraVolumes.csi.withDriver
withDriver(driver)
"driver is the name of the CSI driver that handles this volume.\nConsult with your admin for the correct name as registered in the cluster."
fn spec.envoy.extraVolumes.csi.withFsType
withFsType(fsType)
"fsType to mount. Ex. \"ext4\", \"xfs\", \"ntfs\".\nIf not provided, the empty value is passed to the associated CSI driver\nwhich will determine the default filesystem to apply."
fn spec.envoy.extraVolumes.csi.withReadOnly
withReadOnly(readOnly)
"readOnly specifies a read-only configuration for the volume.\nDefaults to false (read/write)."
fn spec.envoy.extraVolumes.csi.withVolumeAttributes
withVolumeAttributes(volumeAttributes)
"volumeAttributes stores driver-specific properties that are passed to the CSI\ndriver. Consult your driver's documentation for supported values."
fn spec.envoy.extraVolumes.csi.withVolumeAttributesMixin
withVolumeAttributesMixin(volumeAttributes)
"volumeAttributes stores driver-specific properties that are passed to the CSI\ndriver. Consult your driver's documentation for supported values."
Note: This function appends passed data to existing values
obj spec.envoy.extraVolumes.csi.nodePublishSecretRef
"nodePublishSecretRef is a reference to the secret object containing\nsensitive information to pass to the CSI driver to complete the CSI\nNodePublishVolume and NodeUnpublishVolume calls.\nThis field is optional, and may be empty if no secret is required. If the\nsecret object contains more than one secret, all secret references are passed."
fn spec.envoy.extraVolumes.csi.nodePublishSecretRef.withName
withName(name)
"Name of the referent.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Add other useful fields. apiVersion, kind, uid?"
obj spec.envoy.extraVolumes.downwardAPI
"downwardAPI represents downward API about the pod that should populate this volume"
fn spec.envoy.extraVolumes.downwardAPI.withDefaultMode
withDefaultMode(defaultMode)
"Optional: mode bits to use on created files by default. Must be a\nOptional: mode bits used to set permissions on created files by default.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nDefaults to 0644.\nDirectories within the path are not affected by this setting.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set."
fn spec.envoy.extraVolumes.downwardAPI.withItems
withItems(items)
"Items is a list of downward API volume file"
fn spec.envoy.extraVolumes.downwardAPI.withItemsMixin
withItemsMixin(items)
"Items is a list of downward API volume file"
Note: This function appends passed data to existing values
obj spec.envoy.extraVolumes.downwardAPI.items
"Items is a list of downward API volume file"
fn spec.envoy.extraVolumes.downwardAPI.items.withMode
withMode(mode)
"Optional: mode bits used to set permissions on this file, must be an octal value\nbetween 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nIf not specified, the volume defaultMode will be used.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set."
fn spec.envoy.extraVolumes.downwardAPI.items.withPath
withPath(path)
"Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'"
obj spec.envoy.extraVolumes.downwardAPI.items.fieldRef
"Required: Selects a field of the pod: only annotations, labels, name and namespace are supported."
fn spec.envoy.extraVolumes.downwardAPI.items.fieldRef.withApiVersion
withApiVersion(apiVersion)
"Version of the schema the FieldPath is written in terms of, defaults to \"v1\"."
fn spec.envoy.extraVolumes.downwardAPI.items.fieldRef.withFieldPath
withFieldPath(fieldPath)
"Path of the field to select in the specified API version."
obj spec.envoy.extraVolumes.downwardAPI.items.resourceFieldRef
"Selects a resource of the container: only resources limits and requests\n(limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported."
fn spec.envoy.extraVolumes.downwardAPI.items.resourceFieldRef.withContainerName
withContainerName(containerName)
"Container name: required for volumes, optional for env vars"
fn spec.envoy.extraVolumes.downwardAPI.items.resourceFieldRef.withDivisor
withDivisor(divisor)
"Specifies the output format of the exposed resources, defaults to \"1\
fn spec.envoy.extraVolumes.downwardAPI.items.resourceFieldRef.withResource
withResource(resource)
"Required: resource to select"
obj spec.envoy.extraVolumes.emptyDir
"emptyDir represents a temporary directory that shares a pod's lifetime.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir"
fn spec.envoy.extraVolumes.emptyDir.withMedium
withMedium(medium)
"medium represents what type of storage medium should back this directory.\nThe default is \"\" which means to use the node's default medium.\nMust be an empty string (default) or Memory.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir"
fn spec.envoy.extraVolumes.emptyDir.withSizeLimit
withSizeLimit(sizeLimit)
"sizeLimit is the total amount of local storage required for this EmptyDir volume.\nThe size limit is also applicable for memory medium.\nThe maximum usage on memory medium EmptyDir would be the minimum value between\nthe SizeLimit specified here and the sum of memory limits of all containers in a pod.\nThe default is nil which means that the limit is undefined.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir"
obj spec.envoy.extraVolumes.ephemeral
"ephemeral represents a volume that is handled by a cluster storage driver.\nThe volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts,\nand deleted when the pod is removed.\nUse this if:\na) the volume is only needed while the pod runs,\nb) features of normal volumes like restoring from snapshot or capacity\n tracking are needed,\nc) the storage driver is specified through a storage class, and\nd) the storage driver supports dynamic volume provisioning through\n a PersistentVolumeClaim (see EphemeralVolumeSource for more\n information on the connection between this volume type\n and PersistentVolumeClaim).\nUse PersistentVolumeClaim or one of the vendor-specific\nAPIs for volumes that persist for longer than the lifecycle\nof an individual pod.\nUse CSI for light-weight local ephemeral volumes if the CSI driver is meant to\nbe used that way - see the documentation of the driver for\nmore information.\nA pod can use both types of ephemeral volumes and\npersistent volumes at the same time."
obj spec.envoy.extraVolumes.ephemeral.volumeClaimTemplate
"Will be used to create a stand-alone PVC to provision the volume.\nThe pod in which this EphemeralVolumeSource is embedded will be the\nowner of the PVC, i.e. the PVC will be deleted together with the\npod. The name of the PVC will be <pod name>-<volume name>
where\n<volume name>
is the name from the PodSpec.Volumes
array\nentry. Pod validation will reject the pod if the concatenated name\nis not valid for a PVC (for example, too long).\nAn existing PVC with that name that is not owned by the pod\nwill not be used for the pod to avoid using an unrelated\nvolume by mistake. Starting the pod is then blocked until\nthe unrelated PVC is removed. If such a pre-created PVC is\nmeant to be used by the pod, the PVC has to updated with an\nowner reference to the pod once the pod exists. Normally\nthis should not be necessary, but it may be useful when\nmanually reconstructing a broken cluster.\nThis field is read-only and no changes will be made by Kubernetes\nto the PVC after it has been created.\nRequired, must not be nil."
fn spec.envoy.extraVolumes.ephemeral.volumeClaimTemplate.withMetadata
withMetadata(metadata)
"May contain labels and annotations that will be copied into the PVC\nwhen creating it. No other fields are allowed and will be rejected during\nvalidation."
fn spec.envoy.extraVolumes.ephemeral.volumeClaimTemplate.withMetadataMixin
withMetadataMixin(metadata)
"May contain labels and annotations that will be copied into the PVC\nwhen creating it. No other fields are allowed and will be rejected during\nvalidation."
Note: This function appends passed data to existing values
obj spec.envoy.extraVolumes.ephemeral.volumeClaimTemplate.spec
"The specification for the PersistentVolumeClaim. The entire content is\ncopied unchanged into the PVC that gets created from this\ntemplate. The same fields as in a PersistentVolumeClaim\nare also valid here."
fn spec.envoy.extraVolumes.ephemeral.volumeClaimTemplate.spec.withAccessModes
withAccessModes(accessModes)
"accessModes contains the desired access modes the volume should have.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1"
fn spec.envoy.extraVolumes.ephemeral.volumeClaimTemplate.spec.withAccessModesMixin
withAccessModesMixin(accessModes)
"accessModes contains the desired access modes the volume should have.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1"
Note: This function appends passed data to existing values
fn spec.envoy.extraVolumes.ephemeral.volumeClaimTemplate.spec.withStorageClassName
withStorageClassName(storageClassName)
"storageClassName is the name of the StorageClass required by the claim.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1"
fn spec.envoy.extraVolumes.ephemeral.volumeClaimTemplate.spec.withVolumeAttributesClassName
withVolumeAttributesClassName(volumeAttributesClassName)
"volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim.\nIf specified, the CSI driver will create or update the volume with the attributes defined\nin the corresponding VolumeAttributesClass. This has a different purpose than storageClassName,\nit can be changed after the claim is created. An empty string value means that no VolumeAttributesClass\nwill be applied to the claim but it's not allowed to reset this field to empty string once it is set.\nIf unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass\nwill be set by the persistentvolume controller if it exists.\nIf the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be\nset to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource\nexists.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#volumeattributesclass\n(Alpha) Using this field requires the VolumeAttributesClass feature gate to be enabled."
fn spec.envoy.extraVolumes.ephemeral.volumeClaimTemplate.spec.withVolumeMode
withVolumeMode(volumeMode)
"volumeMode defines what type of volume is required by the claim.\nValue of Filesystem is implied when not included in claim spec."
fn spec.envoy.extraVolumes.ephemeral.volumeClaimTemplate.spec.withVolumeName
withVolumeName(volumeName)
"volumeName is the binding reference to the PersistentVolume backing this claim."
obj spec.envoy.extraVolumes.ephemeral.volumeClaimTemplate.spec.dataSource
"dataSource field can be used to specify either:\n An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)\n An existing PVC (PersistentVolumeClaim)\nIf the provisioner or an external controller can support the specified data source,\nit will create a new volume based on the contents of the specified data source.\nWhen the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef,\nand dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified.\nIf the namespace is specified, then dataSourceRef will not be copied to dataSource."
fn spec.envoy.extraVolumes.ephemeral.volumeClaimTemplate.spec.dataSource.withApiGroup
withApiGroup(apiGroup)
"APIGroup is the group for the resource being referenced.\nIf APIGroup is not specified, the specified Kind must be in the core API group.\nFor any other third-party types, APIGroup is required."
fn spec.envoy.extraVolumes.ephemeral.volumeClaimTemplate.spec.dataSource.withKind
withKind(kind)
"Kind is the type of resource being referenced"
fn spec.envoy.extraVolumes.ephemeral.volumeClaimTemplate.spec.dataSource.withName
withName(name)
"Name is the name of resource being referenced"
obj spec.envoy.extraVolumes.ephemeral.volumeClaimTemplate.spec.dataSourceRef
"dataSourceRef specifies the object from which to populate the volume with data, if a non-empty\nvolume is desired. This may be any object from a non-empty API group (non\ncore object) or a PersistentVolumeClaim object.\nWhen this field is specified, volume binding will only succeed if the type of\nthe specified object matches some installed volume populator or dynamic\nprovisioner.\nThis field will replace the functionality of the dataSource field and as such\nif both fields are non-empty, they must have the same value. For backwards\ncompatibility, when namespace isn't specified in dataSourceRef,\nboth fields (dataSource and dataSourceRef) will be set to the same\nvalue automatically if one of them is empty and the other is non-empty.\nWhen namespace is specified in dataSourceRef,\ndataSource isn't set to the same value and must be empty.\nThere are three important differences between dataSource and dataSourceRef:\n While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled.\n(Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled."
fn spec.envoy.extraVolumes.ephemeral.volumeClaimTemplate.spec.dataSourceRef.withApiGroup
withApiGroup(apiGroup)
"APIGroup is the group for the resource being referenced.\nIf APIGroup is not specified, the specified Kind must be in the core API group.\nFor any other third-party types, APIGroup is required."
fn spec.envoy.extraVolumes.ephemeral.volumeClaimTemplate.spec.dataSourceRef.withKind
withKind(kind)
"Kind is the type of resource being referenced"
fn spec.envoy.extraVolumes.ephemeral.volumeClaimTemplate.spec.dataSourceRef.withName
withName(name)
"Name is the name of resource being referenced"
fn spec.envoy.extraVolumes.ephemeral.volumeClaimTemplate.spec.dataSourceRef.withNamespace
withNamespace(namespace)
"Namespace is the namespace of resource being referenced\nNote that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details.\n(Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled."
obj spec.envoy.extraVolumes.ephemeral.volumeClaimTemplate.spec.resources
"resources represents the minimum resources the volume should have.\nIf RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements\nthat are lower than previous value but must still be higher than capacity recorded in the\nstatus field of the claim.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources"
fn spec.envoy.extraVolumes.ephemeral.volumeClaimTemplate.spec.resources.withLimits
withLimits(limits)
"Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
fn spec.envoy.extraVolumes.ephemeral.volumeClaimTemplate.spec.resources.withLimitsMixin
withLimitsMixin(limits)
"Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
Note: This function appends passed data to existing values
fn spec.envoy.extraVolumes.ephemeral.volumeClaimTemplate.spec.resources.withRequests
withRequests(requests)
"Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
fn spec.envoy.extraVolumes.ephemeral.volumeClaimTemplate.spec.resources.withRequestsMixin
withRequestsMixin(requests)
"Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
Note: This function appends passed data to existing values
obj spec.envoy.extraVolumes.ephemeral.volumeClaimTemplate.spec.selector
"selector is a label query over volumes to consider for binding."
fn spec.envoy.extraVolumes.ephemeral.volumeClaimTemplate.spec.selector.withMatchExpressions
withMatchExpressions(matchExpressions)
"matchExpressions is a list of label selector requirements. The requirements are ANDed."
fn spec.envoy.extraVolumes.ephemeral.volumeClaimTemplate.spec.selector.withMatchExpressionsMixin
withMatchExpressionsMixin(matchExpressions)
"matchExpressions is a list of label selector requirements. The requirements are ANDed."
Note: This function appends passed data to existing values
fn spec.envoy.extraVolumes.ephemeral.volumeClaimTemplate.spec.selector.withMatchLabels
withMatchLabels(matchLabels)
"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed."
fn spec.envoy.extraVolumes.ephemeral.volumeClaimTemplate.spec.selector.withMatchLabelsMixin
withMatchLabelsMixin(matchLabels)
"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed."
Note: This function appends passed data to existing values
obj spec.envoy.extraVolumes.ephemeral.volumeClaimTemplate.spec.selector.matchExpressions
"matchExpressions is a list of label selector requirements. The requirements are ANDed."
fn spec.envoy.extraVolumes.ephemeral.volumeClaimTemplate.spec.selector.matchExpressions.withKey
withKey(key)
"key is the label key that the selector applies to."
fn spec.envoy.extraVolumes.ephemeral.volumeClaimTemplate.spec.selector.matchExpressions.withOperator
withOperator(operator)
"operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist."
fn spec.envoy.extraVolumes.ephemeral.volumeClaimTemplate.spec.selector.matchExpressions.withValues
withValues(values)
"values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch."
fn spec.envoy.extraVolumes.ephemeral.volumeClaimTemplate.spec.selector.matchExpressions.withValuesMixin
withValuesMixin(values)
"values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch."
Note: This function appends passed data to existing values
obj spec.envoy.extraVolumes.fc
"fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod."
fn spec.envoy.extraVolumes.fc.withFsType
withFsType(fsType)
"fsType is the filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\nTODO: how do we prevent errors in the filesystem from compromising the machine"
fn spec.envoy.extraVolumes.fc.withLun
withLun(lun)
"lun is Optional: FC target lun number"
fn spec.envoy.extraVolumes.fc.withReadOnly
withReadOnly(readOnly)
"readOnly is Optional: Defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts."
fn spec.envoy.extraVolumes.fc.withTargetWWNs
withTargetWWNs(targetWWNs)
"targetWWNs is Optional: FC target worldwide names (WWNs)"
fn spec.envoy.extraVolumes.fc.withTargetWWNsMixin
withTargetWWNsMixin(targetWWNs)
"targetWWNs is Optional: FC target worldwide names (WWNs)"
Note: This function appends passed data to existing values
fn spec.envoy.extraVolumes.fc.withWwids
withWwids(wwids)
"wwids Optional: FC volume world wide identifiers (wwids)\nEither wwids or combination of targetWWNs and lun must be set, but not both simultaneously."
fn spec.envoy.extraVolumes.fc.withWwidsMixin
withWwidsMixin(wwids)
"wwids Optional: FC volume world wide identifiers (wwids)\nEither wwids or combination of targetWWNs and lun must be set, but not both simultaneously."
Note: This function appends passed data to existing values
obj spec.envoy.extraVolumes.flexVolume
"flexVolume represents a generic volume resource that is\nprovisioned/attached using an exec based plugin."
fn spec.envoy.extraVolumes.flexVolume.withDriver
withDriver(driver)
"driver is the name of the driver to use for this volume."
fn spec.envoy.extraVolumes.flexVolume.withFsType
withFsType(fsType)
"fsType is the filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script."
fn spec.envoy.extraVolumes.flexVolume.withOptions
withOptions(options)
"options is Optional: this field holds extra command options if any."
fn spec.envoy.extraVolumes.flexVolume.withOptionsMixin
withOptionsMixin(options)
"options is Optional: this field holds extra command options if any."
Note: This function appends passed data to existing values
fn spec.envoy.extraVolumes.flexVolume.withReadOnly
withReadOnly(readOnly)
"readOnly is Optional: defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts."
obj spec.envoy.extraVolumes.flexVolume.secretRef
"secretRef is Optional: secretRef is reference to the secret object containing\nsensitive information to pass to the plugin scripts. This may be\nempty if no secret object is specified. If the secret object\ncontains more than one secret, all secrets are passed to the plugin\nscripts."
fn spec.envoy.extraVolumes.flexVolume.secretRef.withName
withName(name)
"Name of the referent.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Add other useful fields. apiVersion, kind, uid?"
obj spec.envoy.extraVolumes.flocker
"flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running"
fn spec.envoy.extraVolumes.flocker.withDatasetName
withDatasetName(datasetName)
"datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker\nshould be considered as deprecated"
fn spec.envoy.extraVolumes.flocker.withDatasetUUID
withDatasetUUID(datasetUUID)
"datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset"
obj spec.envoy.extraVolumes.gcePersistentDisk
"gcePersistentDisk represents a GCE Disk resource that is attached to a\nkubelet's host machine and then exposed to the pod.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk"
fn spec.envoy.extraVolumes.gcePersistentDisk.withFsType
withFsType(fsType)
"fsType is filesystem type of the volume that you want to mount.\nTip: Ensure that the filesystem type is supported by the host operating system.\nExamples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk\nTODO: how do we prevent errors in the filesystem from compromising the machine"
fn spec.envoy.extraVolumes.gcePersistentDisk.withPartition
withPartition(partition)
"partition is the partition in the volume that you want to mount.\nIf omitted, the default is to mount by volume name.\nExamples: For volume /dev/sda1, you specify the partition as \"1\".\nSimilarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty).\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk"
fn spec.envoy.extraVolumes.gcePersistentDisk.withPdName
withPdName(pdName)
"pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk"
fn spec.envoy.extraVolumes.gcePersistentDisk.withReadOnly
withReadOnly(readOnly)
"readOnly here will force the ReadOnly setting in VolumeMounts.\nDefaults to false.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk"
obj spec.envoy.extraVolumes.gitRepo
"gitRepo represents a git repository at a particular revision.\nDEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an\nEmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir\ninto the Pod's container."
fn spec.envoy.extraVolumes.gitRepo.withDirectory
withDirectory(directory)
"directory is the target directory name.\nMust not contain or start with '..'. If '.' is supplied, the volume directory will be the\ngit repository. Otherwise, if specified, the volume will contain the git repository in\nthe subdirectory with the given name."
fn spec.envoy.extraVolumes.gitRepo.withRepository
withRepository(repository)
"repository is the URL"
fn spec.envoy.extraVolumes.gitRepo.withRevision
withRevision(revision)
"revision is the commit hash for the specified revision."
obj spec.envoy.extraVolumes.glusterfs
"glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime.\nMore info: https://examples.k8s.io/volumes/glusterfs/README.md"
fn spec.envoy.extraVolumes.glusterfs.withEndpoints
withEndpoints(endpoints)
"endpoints is the endpoint name that details Glusterfs topology.\nMore info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod"
fn spec.envoy.extraVolumes.glusterfs.withPath
withPath(path)
"path is the Glusterfs volume path.\nMore info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod"
fn spec.envoy.extraVolumes.glusterfs.withReadOnly
withReadOnly(readOnly)
"readOnly here will force the Glusterfs volume to be mounted with read-only permissions.\nDefaults to false.\nMore info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod"
obj spec.envoy.extraVolumes.hostPath
"hostPath represents a pre-existing file or directory on the host\nmachine that is directly exposed to the container. This is generally\nused for system agents or other privileged things that are allowed\nto see the host machine. Most containers will NOT need this.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath\n---\nTODO(jonesdl) We need to restrict who can use host directory mounts and who can/can not\nmount host directories as read/write."
fn spec.envoy.extraVolumes.hostPath.withPath
withPath(path)
"path of the directory on the host.\nIf the path is a symlink, it will follow the link to the real path.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath"
fn spec.envoy.extraVolumes.hostPath.withType
withType(type)
"type for HostPath Volume\nDefaults to \"\"\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath"
obj spec.envoy.extraVolumes.iscsi
"iscsi represents an ISCSI Disk resource that is attached to a\nkubelet's host machine and then exposed to the pod.\nMore info: https://examples.k8s.io/volumes/iscsi/README.md"
fn spec.envoy.extraVolumes.iscsi.withChapAuthDiscovery
withChapAuthDiscovery(chapAuthDiscovery)
"chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication"
fn spec.envoy.extraVolumes.iscsi.withChapAuthSession
withChapAuthSession(chapAuthSession)
"chapAuthSession defines whether support iSCSI Session CHAP authentication"
fn spec.envoy.extraVolumes.iscsi.withFsType
withFsType(fsType)
"fsType is the filesystem type of the volume that you want to mount.\nTip: Ensure that the filesystem type is supported by the host operating system.\nExamples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi\nTODO: how do we prevent errors in the filesystem from compromising the machine"
fn spec.envoy.extraVolumes.iscsi.withInitiatorName
withInitiatorName(initiatorName)
"initiatorName is the custom iSCSI Initiator Name.\nIf initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface\n
fn spec.envoy.extraVolumes.iscsi.withIqn
withIqn(iqn)
"iqn is the target iSCSI Qualified Name."
fn spec.envoy.extraVolumes.iscsi.withIscsiInterface
withIscsiInterface(iscsiInterface)
"iscsiInterface is the interface Name that uses an iSCSI transport.\nDefaults to 'default' (tcp)."
fn spec.envoy.extraVolumes.iscsi.withLun
withLun(lun)
"lun represents iSCSI Target Lun number."
fn spec.envoy.extraVolumes.iscsi.withPortals
withPortals(portals)
"portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port\nis other than default (typically TCP ports 860 and 3260)."
fn spec.envoy.extraVolumes.iscsi.withPortalsMixin
withPortalsMixin(portals)
"portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port\nis other than default (typically TCP ports 860 and 3260)."
Note: This function appends passed data to existing values
fn spec.envoy.extraVolumes.iscsi.withReadOnly
withReadOnly(readOnly)
"readOnly here will force the ReadOnly setting in VolumeMounts.\nDefaults to false."
fn spec.envoy.extraVolumes.iscsi.withTargetPortal
withTargetPortal(targetPortal)
"targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port\nis other than default (typically TCP ports 860 and 3260)."
obj spec.envoy.extraVolumes.iscsi.secretRef
"secretRef is the CHAP Secret for iSCSI target and initiator authentication"
fn spec.envoy.extraVolumes.iscsi.secretRef.withName
withName(name)
"Name of the referent.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Add other useful fields. apiVersion, kind, uid?"
obj spec.envoy.extraVolumes.nfs
"nfs represents an NFS mount on the host that shares a pod's lifetime\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#nfs"
fn spec.envoy.extraVolumes.nfs.withPath
withPath(path)
"path that is exported by the NFS server.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#nfs"
fn spec.envoy.extraVolumes.nfs.withReadOnly
withReadOnly(readOnly)
"readOnly here will force the NFS export to be mounted with read-only permissions.\nDefaults to false.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#nfs"
fn spec.envoy.extraVolumes.nfs.withServer
withServer(server)
"server is the hostname or IP address of the NFS server.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#nfs"
obj spec.envoy.extraVolumes.persistentVolumeClaim
"persistentVolumeClaimVolumeSource represents a reference to a\nPersistentVolumeClaim in the same namespace.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims"
fn spec.envoy.extraVolumes.persistentVolumeClaim.withClaimName
withClaimName(claimName)
"claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims"
fn spec.envoy.extraVolumes.persistentVolumeClaim.withReadOnly
withReadOnly(readOnly)
"readOnly Will force the ReadOnly setting in VolumeMounts.\nDefault false."
obj spec.envoy.extraVolumes.photonPersistentDisk
"photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine"
fn spec.envoy.extraVolumes.photonPersistentDisk.withFsType
withFsType(fsType)
"fsType is the filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified."
fn spec.envoy.extraVolumes.photonPersistentDisk.withPdID
withPdID(pdID)
"pdID is the ID that identifies Photon Controller persistent disk"
obj spec.envoy.extraVolumes.portworxVolume
"portworxVolume represents a portworx volume attached and mounted on kubelets host machine"
fn spec.envoy.extraVolumes.portworxVolume.withFsType
withFsType(fsType)
"fSType represents the filesystem type to mount\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified."
fn spec.envoy.extraVolumes.portworxVolume.withReadOnly
withReadOnly(readOnly)
"readOnly defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts."
fn spec.envoy.extraVolumes.portworxVolume.withVolumeID
withVolumeID(volumeID)
"volumeID uniquely identifies a Portworx volume"
obj spec.envoy.extraVolumes.projected
"projected items for all in one resources secrets, configmaps, and downward API"
fn spec.envoy.extraVolumes.projected.withDefaultMode
withDefaultMode(defaultMode)
"defaultMode are the mode bits used to set permissions on created files by default.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nDirectories within the path are not affected by this setting.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set."
fn spec.envoy.extraVolumes.projected.withSources
withSources(sources)
"sources is the list of volume projections"
fn spec.envoy.extraVolumes.projected.withSourcesMixin
withSourcesMixin(sources)
"sources is the list of volume projections"
Note: This function appends passed data to existing values
obj spec.envoy.extraVolumes.projected.sources
"sources is the list of volume projections"
obj spec.envoy.extraVolumes.projected.sources.clusterTrustBundle
"ClusterTrustBundle allows a pod to access the .spec.trustBundle
field\nof ClusterTrustBundle objects in an auto-updating file.\nAlpha, gated by the ClusterTrustBundleProjection feature gate.\nClusterTrustBundle objects can either be selected by name, or by the\ncombination of signer name and a label selector.\nKubelet performs aggressive normalization of the PEM contents written\ninto the pod filesystem. Esoteric PEM features such as inter-block\ncomments and block headers are stripped. Certificates are deduplicated.\nThe ordering of certificates within the file is arbitrary, and Kubelet\nmay change the order over time."
fn spec.envoy.extraVolumes.projected.sources.clusterTrustBundle.withName
withName(name)
"Select a single ClusterTrustBundle by object name. Mutually-exclusive\nwith signerName and labelSelector."
fn spec.envoy.extraVolumes.projected.sources.clusterTrustBundle.withOptional
withOptional(optional)
"If true, don't block pod startup if the referenced ClusterTrustBundle(s)\naren't available. If using name, then the named ClusterTrustBundle is\nallowed not to exist. If using signerName, then the combination of\nsignerName and labelSelector is allowed to match zero\nClusterTrustBundles."
fn spec.envoy.extraVolumes.projected.sources.clusterTrustBundle.withPath
withPath(path)
"Relative path from the volume root to write the bundle."
fn spec.envoy.extraVolumes.projected.sources.clusterTrustBundle.withSignerName
withSignerName(signerName)
"Select all ClusterTrustBundles that match this signer name.\nMutually-exclusive with name. The contents of all selected\nClusterTrustBundles will be unified and deduplicated."
obj spec.envoy.extraVolumes.projected.sources.clusterTrustBundle.labelSelector
"Select all ClusterTrustBundles that match this label selector. Only has\neffect if signerName is set. Mutually-exclusive with name. If unset,\ninterpreted as \"match nothing\". If set but empty, interpreted as \"match\neverything\"."
fn spec.envoy.extraVolumes.projected.sources.clusterTrustBundle.labelSelector.withMatchExpressions
withMatchExpressions(matchExpressions)
"matchExpressions is a list of label selector requirements. The requirements are ANDed."
fn spec.envoy.extraVolumes.projected.sources.clusterTrustBundle.labelSelector.withMatchExpressionsMixin
withMatchExpressionsMixin(matchExpressions)
"matchExpressions is a list of label selector requirements. The requirements are ANDed."
Note: This function appends passed data to existing values
fn spec.envoy.extraVolumes.projected.sources.clusterTrustBundle.labelSelector.withMatchLabels
withMatchLabels(matchLabels)
"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed."
fn spec.envoy.extraVolumes.projected.sources.clusterTrustBundle.labelSelector.withMatchLabelsMixin
withMatchLabelsMixin(matchLabels)
"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed."
Note: This function appends passed data to existing values
obj spec.envoy.extraVolumes.projected.sources.clusterTrustBundle.labelSelector.matchExpressions
"matchExpressions is a list of label selector requirements. The requirements are ANDed."
fn spec.envoy.extraVolumes.projected.sources.clusterTrustBundle.labelSelector.matchExpressions.withKey
withKey(key)
"key is the label key that the selector applies to."
fn spec.envoy.extraVolumes.projected.sources.clusterTrustBundle.labelSelector.matchExpressions.withOperator
withOperator(operator)
"operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist."
fn spec.envoy.extraVolumes.projected.sources.clusterTrustBundle.labelSelector.matchExpressions.withValues
withValues(values)
"values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch."
fn spec.envoy.extraVolumes.projected.sources.clusterTrustBundle.labelSelector.matchExpressions.withValuesMixin
withValuesMixin(values)
"values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch."
Note: This function appends passed data to existing values
obj spec.envoy.extraVolumes.projected.sources.configMap
"configMap information about the configMap data to project"
fn spec.envoy.extraVolumes.projected.sources.configMap.withItems
withItems(items)
"items if unspecified, each key-value pair in the Data field of the referenced\nConfigMap will be projected into the volume as a file whose name is the\nkey and content is the value. If specified, the listed keys will be\nprojected into the specified paths, and unlisted keys will not be\npresent. If a key is specified which is not present in the ConfigMap,\nthe volume setup will error unless it is marked optional. Paths must be\nrelative and may not contain the '..' path or start with '..'."
fn spec.envoy.extraVolumes.projected.sources.configMap.withItemsMixin
withItemsMixin(items)
"items if unspecified, each key-value pair in the Data field of the referenced\nConfigMap will be projected into the volume as a file whose name is the\nkey and content is the value. If specified, the listed keys will be\nprojected into the specified paths, and unlisted keys will not be\npresent. If a key is specified which is not present in the ConfigMap,\nthe volume setup will error unless it is marked optional. Paths must be\nrelative and may not contain the '..' path or start with '..'."
Note: This function appends passed data to existing values
fn spec.envoy.extraVolumes.projected.sources.configMap.withName
withName(name)
"Name of the referent.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Add other useful fields. apiVersion, kind, uid?"
fn spec.envoy.extraVolumes.projected.sources.configMap.withOptional
withOptional(optional)
"optional specify whether the ConfigMap or its keys must be defined"
obj spec.envoy.extraVolumes.projected.sources.configMap.items
"items if unspecified, each key-value pair in the Data field of the referenced\nConfigMap will be projected into the volume as a file whose name is the\nkey and content is the value. If specified, the listed keys will be\nprojected into the specified paths, and unlisted keys will not be\npresent. If a key is specified which is not present in the ConfigMap,\nthe volume setup will error unless it is marked optional. Paths must be\nrelative and may not contain the '..' path or start with '..'."
fn spec.envoy.extraVolumes.projected.sources.configMap.items.withKey
withKey(key)
"key is the key to project."
fn spec.envoy.extraVolumes.projected.sources.configMap.items.withMode
withMode(mode)
"mode is Optional: mode bits used to set permissions on this file.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nIf not specified, the volume defaultMode will be used.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set."
fn spec.envoy.extraVolumes.projected.sources.configMap.items.withPath
withPath(path)
"path is the relative path of the file to map the key to.\nMay not be an absolute path.\nMay not contain the path element '..'.\nMay not start with the string '..'."
obj spec.envoy.extraVolumes.projected.sources.downwardAPI
"downwardAPI information about the downwardAPI data to project"
fn spec.envoy.extraVolumes.projected.sources.downwardAPI.withItems
withItems(items)
"Items is a list of DownwardAPIVolume file"
fn spec.envoy.extraVolumes.projected.sources.downwardAPI.withItemsMixin
withItemsMixin(items)
"Items is a list of DownwardAPIVolume file"
Note: This function appends passed data to existing values
obj spec.envoy.extraVolumes.projected.sources.downwardAPI.items
"Items is a list of DownwardAPIVolume file"
fn spec.envoy.extraVolumes.projected.sources.downwardAPI.items.withMode
withMode(mode)
"Optional: mode bits used to set permissions on this file, must be an octal value\nbetween 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nIf not specified, the volume defaultMode will be used.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set."
fn spec.envoy.extraVolumes.projected.sources.downwardAPI.items.withPath
withPath(path)
"Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'"
obj spec.envoy.extraVolumes.projected.sources.downwardAPI.items.fieldRef
"Required: Selects a field of the pod: only annotations, labels, name and namespace are supported."
fn spec.envoy.extraVolumes.projected.sources.downwardAPI.items.fieldRef.withApiVersion
withApiVersion(apiVersion)
"Version of the schema the FieldPath is written in terms of, defaults to \"v1\"."
fn spec.envoy.extraVolumes.projected.sources.downwardAPI.items.fieldRef.withFieldPath
withFieldPath(fieldPath)
"Path of the field to select in the specified API version."
obj spec.envoy.extraVolumes.projected.sources.downwardAPI.items.resourceFieldRef
"Selects a resource of the container: only resources limits and requests\n(limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported."
fn spec.envoy.extraVolumes.projected.sources.downwardAPI.items.resourceFieldRef.withContainerName
withContainerName(containerName)
"Container name: required for volumes, optional for env vars"
fn spec.envoy.extraVolumes.projected.sources.downwardAPI.items.resourceFieldRef.withDivisor
withDivisor(divisor)
"Specifies the output format of the exposed resources, defaults to \"1\
fn spec.envoy.extraVolumes.projected.sources.downwardAPI.items.resourceFieldRef.withResource
withResource(resource)
"Required: resource to select"
obj spec.envoy.extraVolumes.projected.sources.secret
"secret information about the secret data to project"
fn spec.envoy.extraVolumes.projected.sources.secret.withItems
withItems(items)
"items if unspecified, each key-value pair in the Data field of the referenced\nSecret will be projected into the volume as a file whose name is the\nkey and content is the value. If specified, the listed keys will be\nprojected into the specified paths, and unlisted keys will not be\npresent. If a key is specified which is not present in the Secret,\nthe volume setup will error unless it is marked optional. Paths must be\nrelative and may not contain the '..' path or start with '..'."
fn spec.envoy.extraVolumes.projected.sources.secret.withItemsMixin
withItemsMixin(items)
"items if unspecified, each key-value pair in the Data field of the referenced\nSecret will be projected into the volume as a file whose name is the\nkey and content is the value. If specified, the listed keys will be\nprojected into the specified paths, and unlisted keys will not be\npresent. If a key is specified which is not present in the Secret,\nthe volume setup will error unless it is marked optional. Paths must be\nrelative and may not contain the '..' path or start with '..'."
Note: This function appends passed data to existing values
fn spec.envoy.extraVolumes.projected.sources.secret.withName
withName(name)
"Name of the referent.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Add other useful fields. apiVersion, kind, uid?"
fn spec.envoy.extraVolumes.projected.sources.secret.withOptional
withOptional(optional)
"optional field specify whether the Secret or its key must be defined"
obj spec.envoy.extraVolumes.projected.sources.secret.items
"items if unspecified, each key-value pair in the Data field of the referenced\nSecret will be projected into the volume as a file whose name is the\nkey and content is the value. If specified, the listed keys will be\nprojected into the specified paths, and unlisted keys will not be\npresent. If a key is specified which is not present in the Secret,\nthe volume setup will error unless it is marked optional. Paths must be\nrelative and may not contain the '..' path or start with '..'."
fn spec.envoy.extraVolumes.projected.sources.secret.items.withKey
withKey(key)
"key is the key to project."
fn spec.envoy.extraVolumes.projected.sources.secret.items.withMode
withMode(mode)
"mode is Optional: mode bits used to set permissions on this file.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nIf not specified, the volume defaultMode will be used.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set."
fn spec.envoy.extraVolumes.projected.sources.secret.items.withPath
withPath(path)
"path is the relative path of the file to map the key to.\nMay not be an absolute path.\nMay not contain the path element '..'.\nMay not start with the string '..'."
obj spec.envoy.extraVolumes.projected.sources.serviceAccountToken
"serviceAccountToken is information about the serviceAccountToken data to project"
fn spec.envoy.extraVolumes.projected.sources.serviceAccountToken.withAudience
withAudience(audience)
"audience is the intended audience of the token. A recipient of a token\nmust identify itself with an identifier specified in the audience of the\ntoken, and otherwise should reject the token. The audience defaults to the\nidentifier of the apiserver."
fn spec.envoy.extraVolumes.projected.sources.serviceAccountToken.withExpirationSeconds
withExpirationSeconds(expirationSeconds)
"expirationSeconds is the requested duration of validity of the service\naccount token. As the token approaches expiration, the kubelet volume\nplugin will proactively rotate the service account token. The kubelet will\nstart trying to rotate the token if the token is older than 80 percent of\nits time to live or if the token is older than 24 hours.Defaults to 1 hour\nand must be at least 10 minutes."
fn spec.envoy.extraVolumes.projected.sources.serviceAccountToken.withPath
withPath(path)
"path is the path relative to the mount point of the file to project the\ntoken into."
obj spec.envoy.extraVolumes.quobyte
"quobyte represents a Quobyte mount on the host that shares a pod's lifetime"
fn spec.envoy.extraVolumes.quobyte.withGroup
withGroup(group)
"group to map volume access to\nDefault is no group"
fn spec.envoy.extraVolumes.quobyte.withReadOnly
withReadOnly(readOnly)
"readOnly here will force the Quobyte volume to be mounted with read-only permissions.\nDefaults to false."
fn spec.envoy.extraVolumes.quobyte.withRegistry
withRegistry(registry)
"registry represents a single or multiple Quobyte Registry services\nspecified as a string as host:port pair (multiple entries are separated with commas)\nwhich acts as the central registry for volumes"
fn spec.envoy.extraVolumes.quobyte.withTenant
withTenant(tenant)
"tenant owning the given Quobyte volume in the Backend\nUsed with dynamically provisioned Quobyte volumes, value is set by the plugin"
fn spec.envoy.extraVolumes.quobyte.withUser
withUser(user)
"user to map volume access to\nDefaults to serivceaccount user"
fn spec.envoy.extraVolumes.quobyte.withVolume
withVolume(volume)
"volume is a string that references an already created Quobyte volume by name."
obj spec.envoy.extraVolumes.rbd
"rbd represents a Rados Block Device mount on the host that shares a pod's lifetime.\nMore info: https://examples.k8s.io/volumes/rbd/README.md"
fn spec.envoy.extraVolumes.rbd.withFsType
withFsType(fsType)
"fsType is the filesystem type of the volume that you want to mount.\nTip: Ensure that the filesystem type is supported by the host operating system.\nExamples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#rbd\nTODO: how do we prevent errors in the filesystem from compromising the machine"
fn spec.envoy.extraVolumes.rbd.withImage
withImage(image)
"image is the rados image name.\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"
fn spec.envoy.extraVolumes.rbd.withKeyring
withKeyring(keyring)
"keyring is the path to key ring for RBDUser.\nDefault is /etc/ceph/keyring.\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"
fn spec.envoy.extraVolumes.rbd.withMonitors
withMonitors(monitors)
"monitors is a collection of Ceph monitors.\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"
fn spec.envoy.extraVolumes.rbd.withMonitorsMixin
withMonitorsMixin(monitors)
"monitors is a collection of Ceph monitors.\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"
Note: This function appends passed data to existing values
fn spec.envoy.extraVolumes.rbd.withPool
withPool(pool)
"pool is the rados pool name.\nDefault is rbd.\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"
fn spec.envoy.extraVolumes.rbd.withReadOnly
withReadOnly(readOnly)
"readOnly here will force the ReadOnly setting in VolumeMounts.\nDefaults to false.\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"
fn spec.envoy.extraVolumes.rbd.withUser
withUser(user)
"user is the rados user name.\nDefault is admin.\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"
obj spec.envoy.extraVolumes.rbd.secretRef
"secretRef is name of the authentication secret for RBDUser. If provided\noverrides keyring.\nDefault is nil.\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"
fn spec.envoy.extraVolumes.rbd.secretRef.withName
withName(name)
"Name of the referent.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Add other useful fields. apiVersion, kind, uid?"
obj spec.envoy.extraVolumes.scaleIO
"scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes."
fn spec.envoy.extraVolumes.scaleIO.withFsType
withFsType(fsType)
"fsType is the filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\", \"ntfs\".\nDefault is \"xfs\"."
fn spec.envoy.extraVolumes.scaleIO.withGateway
withGateway(gateway)
"gateway is the host address of the ScaleIO API Gateway."
fn spec.envoy.extraVolumes.scaleIO.withProtectionDomain
withProtectionDomain(protectionDomain)
"protectionDomain is the name of the ScaleIO Protection Domain for the configured storage."
fn spec.envoy.extraVolumes.scaleIO.withReadOnly
withReadOnly(readOnly)
"readOnly Defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts."
fn spec.envoy.extraVolumes.scaleIO.withSslEnabled
withSslEnabled(sslEnabled)
"sslEnabled Flag enable/disable SSL communication with Gateway, default false"
fn spec.envoy.extraVolumes.scaleIO.withStorageMode
withStorageMode(storageMode)
"storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.\nDefault is ThinProvisioned."
fn spec.envoy.extraVolumes.scaleIO.withStoragePool
withStoragePool(storagePool)
"storagePool is the ScaleIO Storage Pool associated with the protection domain."
fn spec.envoy.extraVolumes.scaleIO.withSystem
withSystem(system)
"system is the name of the storage system as configured in ScaleIO."
fn spec.envoy.extraVolumes.scaleIO.withVolumeName
withVolumeName(volumeName)
"volumeName is the name of a volume already created in the ScaleIO system\nthat is associated with this volume source."
obj spec.envoy.extraVolumes.scaleIO.secretRef
"secretRef references to the secret for ScaleIO user and other\nsensitive information. If this is not provided, Login operation will fail."
fn spec.envoy.extraVolumes.scaleIO.secretRef.withName
withName(name)
"Name of the referent.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Add other useful fields. apiVersion, kind, uid?"
obj spec.envoy.extraVolumes.secret
"secret represents a secret that should populate this volume.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#secret"
fn spec.envoy.extraVolumes.secret.withDefaultMode
withDefaultMode(defaultMode)
"defaultMode is Optional: mode bits used to set permissions on created files by default.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values\nfor mode bits. Defaults to 0644.\nDirectories within the path are not affected by this setting.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set."
fn spec.envoy.extraVolumes.secret.withItems
withItems(items)
"items If unspecified, each key-value pair in the Data field of the referenced\nSecret will be projected into the volume as a file whose name is the\nkey and content is the value. If specified, the listed keys will be\nprojected into the specified paths, and unlisted keys will not be\npresent. If a key is specified which is not present in the Secret,\nthe volume setup will error unless it is marked optional. Paths must be\nrelative and may not contain the '..' path or start with '..'."
fn spec.envoy.extraVolumes.secret.withItemsMixin
withItemsMixin(items)
"items If unspecified, each key-value pair in the Data field of the referenced\nSecret will be projected into the volume as a file whose name is the\nkey and content is the value. If specified, the listed keys will be\nprojected into the specified paths, and unlisted keys will not be\npresent. If a key is specified which is not present in the Secret,\nthe volume setup will error unless it is marked optional. Paths must be\nrelative and may not contain the '..' path or start with '..'."
Note: This function appends passed data to existing values
fn spec.envoy.extraVolumes.secret.withOptional
withOptional(optional)
"optional field specify whether the Secret or its keys must be defined"
fn spec.envoy.extraVolumes.secret.withSecretName
withSecretName(secretName)
"secretName is the name of the secret in the pod's namespace to use.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#secret"
obj spec.envoy.extraVolumes.secret.items
"items If unspecified, each key-value pair in the Data field of the referenced\nSecret will be projected into the volume as a file whose name is the\nkey and content is the value. If specified, the listed keys will be\nprojected into the specified paths, and unlisted keys will not be\npresent. If a key is specified which is not present in the Secret,\nthe volume setup will error unless it is marked optional. Paths must be\nrelative and may not contain the '..' path or start with '..'."
fn spec.envoy.extraVolumes.secret.items.withKey
withKey(key)
"key is the key to project."
fn spec.envoy.extraVolumes.secret.items.withMode
withMode(mode)
"mode is Optional: mode bits used to set permissions on this file.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nIf not specified, the volume defaultMode will be used.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set."
fn spec.envoy.extraVolumes.secret.items.withPath
withPath(path)
"path is the relative path of the file to map the key to.\nMay not be an absolute path.\nMay not contain the path element '..'.\nMay not start with the string '..'."
obj spec.envoy.extraVolumes.storageos
"storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes."
fn spec.envoy.extraVolumes.storageos.withFsType
withFsType(fsType)
"fsType is the filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified."
fn spec.envoy.extraVolumes.storageos.withReadOnly
withReadOnly(readOnly)
"readOnly defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts."
fn spec.envoy.extraVolumes.storageos.withVolumeName
withVolumeName(volumeName)
"volumeName is the human-readable name of the StorageOS volume. Volume\nnames are only unique within a namespace."
fn spec.envoy.extraVolumes.storageos.withVolumeNamespace
withVolumeNamespace(volumeNamespace)
"volumeNamespace specifies the scope of the volume within StorageOS. If no\nnamespace is specified then the Pod's namespace will be used. This allows the\nKubernetes name scoping to be mirrored within StorageOS for tighter integration.\nSet VolumeName to any name to override the default behaviour.\nSet to \"default\" if you are not using namespaces within StorageOS.\nNamespaces that do not pre-exist within StorageOS will be created."
obj spec.envoy.extraVolumes.storageos.secretRef
"secretRef specifies the secret to use for obtaining the StorageOS API\ncredentials. If not specified, default values will be attempted."
fn spec.envoy.extraVolumes.storageos.secretRef.withName
withName(name)
"Name of the referent.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Add other useful fields. apiVersion, kind, uid?"
obj spec.envoy.extraVolumes.vsphereVolume
"vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine"
fn spec.envoy.extraVolumes.vsphereVolume.withFsType
withFsType(fsType)
"fsType is filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified."
fn spec.envoy.extraVolumes.vsphereVolume.withStoragePolicyID
withStoragePolicyID(storagePolicyID)
"storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName."
fn spec.envoy.extraVolumes.vsphereVolume.withStoragePolicyName
withStoragePolicyName(storagePolicyName)
"storagePolicyName is the storage Policy Based Management (SPBM) profile name."
fn spec.envoy.extraVolumes.vsphereVolume.withVolumePath
withVolumePath(volumePath)
"volumePath is the path that identifies vSphere volume vmdk"
obj spec.envoy.networkPublishing
"NetworkPublishing defines how to expose Envoy to a network."
fn spec.envoy.networkPublishing.withExternalTrafficPolicy
withExternalTrafficPolicy(externalTrafficPolicy)
"ExternalTrafficPolicy describes how nodes distribute service traffic they\nreceive on one of the Service's \"externally-facing\" addresses (NodePorts, ExternalIPs,\nand LoadBalancer IPs).\nIf unset, defaults to \"Local\"."
fn spec.envoy.networkPublishing.withIpFamilyPolicy
withIpFamilyPolicy(ipFamilyPolicy)
"IPFamilyPolicy represents the dual-stack-ness requested or required by\nthis Service. If there is no value provided, then this field will be set\nto SingleStack. Services can be \"SingleStack\" (a single IP family),\n\"PreferDualStack\" (two IP families on dual-stack configured clusters or\na single IP family on single-stack clusters), or \"RequireDualStack\"\n(two IP families on dual-stack configured clusters, otherwise fail)."
fn spec.envoy.networkPublishing.withServiceAnnotations
withServiceAnnotations(serviceAnnotations)
"ServiceAnnotations is the annotations to add to\nthe provisioned Envoy service."
fn spec.envoy.networkPublishing.withServiceAnnotationsMixin
withServiceAnnotationsMixin(serviceAnnotations)
"ServiceAnnotations is the annotations to add to\nthe provisioned Envoy service."
Note: This function appends passed data to existing values
fn spec.envoy.networkPublishing.withType
withType(type)
"NetworkPublishingType is the type of publishing strategy to use. Valid values are:\n LoadBalancerService\nIn this configuration, network endpoints for Envoy use container networking.\nA Kubernetes LoadBalancer Service is created to publish Envoy network\nendpoints.\nSee: https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer\n NodePortService\nPublishes Envoy network endpoints using a Kubernetes NodePort Service.\nIn this configuration, Envoy network endpoints use container networking. A Kubernetes\nNodePort Service is created to publish the network endpoints.\nSee: https://kubernetes.io/docs/concepts/services-networking/service/#nodeport\nNOTE:\nWhen provisioning an Envoy NodePortService
, use Gateway Listeners' port numbers to populate\nthe Service's node port values, there's no way to auto-allocate them.\nSee: https://github.com/projectcontour/contour/issues/4499\n* ClusterIPService\nPublishes Envoy network endpoints using a Kubernetes ClusterIP Service.\nIn this configuration, Envoy network endpoints use container networking. A Kubernetes\nClusterIP Service is created to publish the network endpoints.\nSee: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types\nIf unset, defaults to LoadBalancerService."
obj spec.envoy.nodePlacement
"NodePlacement describes node scheduling configuration of Envoy pods."
fn spec.envoy.nodePlacement.withNodeSelector
withNodeSelector(nodeSelector)
"NodeSelector is the simplest recommended form of node selection constraint\nand specifies a map of key-value pairs. For the pod to be eligible\nto run on a node, the node must have each of the indicated key-value pairs\nas labels (it can have additional labels as well).\nIf unset, the pod(s) will be scheduled to any available node."
fn spec.envoy.nodePlacement.withNodeSelectorMixin
withNodeSelectorMixin(nodeSelector)
"NodeSelector is the simplest recommended form of node selection constraint\nand specifies a map of key-value pairs. For the pod to be eligible\nto run on a node, the node must have each of the indicated key-value pairs\nas labels (it can have additional labels as well).\nIf unset, the pod(s) will be scheduled to any available node."
Note: This function appends passed data to existing values
fn spec.envoy.nodePlacement.withTolerations
withTolerations(tolerations)
"Tolerations work with taints to ensure that pods are not scheduled\nonto inappropriate nodes. One or more taints are applied to a node; this\nmarks that the node should not accept any pods that do not tolerate the\ntaints.\nThe default is an empty list.\nSee https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/\nfor additional details."
fn spec.envoy.nodePlacement.withTolerationsMixin
withTolerationsMixin(tolerations)
"Tolerations work with taints to ensure that pods are not scheduled\nonto inappropriate nodes. One or more taints are applied to a node; this\nmarks that the node should not accept any pods that do not tolerate the\ntaints.\nThe default is an empty list.\nSee https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/\nfor additional details."
Note: This function appends passed data to existing values
obj spec.envoy.nodePlacement.tolerations
"Tolerations work with taints to ensure that pods are not scheduled\nonto inappropriate nodes. One or more taints are applied to a node; this\nmarks that the node should not accept any pods that do not tolerate the\ntaints.\nThe default is an empty list.\nSee https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/\nfor additional details."
fn spec.envoy.nodePlacement.tolerations.withEffect
withEffect(effect)
"Effect indicates the taint effect to match. Empty means match all taint effects.\nWhen specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute."
fn spec.envoy.nodePlacement.tolerations.withKey
withKey(key)
"Key is the taint key that the toleration applies to. Empty means match all taint keys.\nIf the key is empty, operator must be Exists; this combination means to match all values and all keys."
fn spec.envoy.nodePlacement.tolerations.withOperator
withOperator(operator)
"Operator represents a key's relationship to the value.\nValid operators are Exists and Equal. Defaults to Equal.\nExists is equivalent to wildcard for value, so that a pod can\ntolerate all taints of a particular category."
fn spec.envoy.nodePlacement.tolerations.withTolerationSeconds
withTolerationSeconds(tolerationSeconds)
"TolerationSeconds represents the period of time the toleration (which must be\nof effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,\nit is not set, which means tolerate the taint forever (do not evict). Zero and\nnegative values will be treated as 0 (evict immediately) by the system."
fn spec.envoy.nodePlacement.tolerations.withValue
withValue(value)
"Value is the taint value the toleration matches to.\nIf the operator is Exists, the value should be empty, otherwise just a regular string."
obj spec.envoy.resources
"Compute Resources required by envoy container.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
fn spec.envoy.resources.withClaims
withClaims(claims)
"Claims lists the names of resources, defined in spec.resourceClaims,\nthat are used by this container.\nThis is an alpha field and requires enabling the\nDynamicResourceAllocation feature gate.\nThis field is immutable. It can only be set for containers."
fn spec.envoy.resources.withClaimsMixin
withClaimsMixin(claims)
"Claims lists the names of resources, defined in spec.resourceClaims,\nthat are used by this container.\nThis is an alpha field and requires enabling the\nDynamicResourceAllocation feature gate.\nThis field is immutable. It can only be set for containers."
Note: This function appends passed data to existing values
fn spec.envoy.resources.withLimits
withLimits(limits)
"Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
fn spec.envoy.resources.withLimitsMixin
withLimitsMixin(limits)
"Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
Note: This function appends passed data to existing values
fn spec.envoy.resources.withRequests
withRequests(requests)
"Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
fn spec.envoy.resources.withRequestsMixin
withRequestsMixin(requests)
"Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"
Note: This function appends passed data to existing values
obj spec.envoy.resources.claims
"Claims lists the names of resources, defined in spec.resourceClaims,\nthat are used by this container.\nThis is an alpha field and requires enabling the\nDynamicResourceAllocation feature gate.\nThis field is immutable. It can only be set for containers."
fn spec.envoy.resources.claims.withName
withName(name)
"Name must match the name of one entry in pod.spec.resourceClaims of\nthe Pod where this field is used. It makes that resource available\ninside a container."
obj spec.runtimeSettings
"RuntimeSettings is a ContourConfiguration spec to be used when\nprovisioning a Contour instance that will influence aspects of\nthe Contour instance's runtime behavior."
fn spec.runtimeSettings.withEnableExternalNameService
withEnableExternalNameService(enableExternalNameService)
"EnableExternalNameService allows processing of ExternalNameServices\nContour's default is false for security reasons."
fn spec.runtimeSettings.withFeatureFlags
withFeatureFlags(featureFlags)
"FeatureFlags defines toggle to enable new contour features.\nAvailable toggles are:\nuseEndpointSlices - configures contour to fetch endpoint data\nfrom k8s endpoint slices. defaults to false and reading endpoint\ndata from the k8s endpoints."
fn spec.runtimeSettings.withFeatureFlagsMixin
withFeatureFlagsMixin(featureFlags)
"FeatureFlags defines toggle to enable new contour features.\nAvailable toggles are:\nuseEndpointSlices - configures contour to fetch endpoint data\nfrom k8s endpoint slices. defaults to false and reading endpoint\ndata from the k8s endpoints."
Note: This function appends passed data to existing values
obj spec.runtimeSettings.debug
"Debug contains parameters to enable debug logging\nand debug interfaces inside Contour."
fn spec.runtimeSettings.debug.withAddress
withAddress(address)
"Defines the Contour debug address interface.\nContour's default is \"127.0.0.1\"."
fn spec.runtimeSettings.debug.withPort
withPort(port)
"Defines the Contour debug address port.\nContour's default is 6060."
obj spec.runtimeSettings.envoy
"Envoy contains parameters for Envoy as well\nas how to optionally configure a managed Envoy fleet."
fn spec.runtimeSettings.envoy.withDefaultHTTPVersions
withDefaultHTTPVersions(defaultHTTPVersions)
"DefaultHTTPVersions defines the default set of HTTPS\nversions the proxy should accept. HTTP versions are\nstrings of the form \"HTTP/xx\". Supported versions are\n\"HTTP/1.1\" and \"HTTP/2\".\nValues: HTTP/1.1
, HTTP/2
(default: both).\nOther values will produce an error."
fn spec.runtimeSettings.envoy.withDefaultHTTPVersionsMixin
withDefaultHTTPVersionsMixin(defaultHTTPVersions)
"DefaultHTTPVersions defines the default set of HTTPS\nversions the proxy should accept. HTTP versions are\nstrings of the form \"HTTP/xx\". Supported versions are\n\"HTTP/1.1\" and \"HTTP/2\".\nValues: HTTP/1.1
, HTTP/2
(default: both).\nOther values will produce an error."
Note: This function appends passed data to existing values
obj spec.runtimeSettings.envoy.clientCertificate
"ClientCertificate defines the namespace/name of the Kubernetes\nsecret containing the client certificate and private key\nto be used when establishing TLS connection to upstream\ncluster."
fn spec.runtimeSettings.envoy.clientCertificate.withName
withName(name)
fn spec.runtimeSettings.envoy.clientCertificate.withNamespace
withNamespace(namespace)
obj spec.runtimeSettings.envoy.cluster
"Cluster holds various configurable Envoy cluster values that can\nbe set in the config file."
fn spec.runtimeSettings.envoy.cluster.withDnsLookupFamily
withDnsLookupFamily(dnsLookupFamily)
"DNSLookupFamily defines how external names are looked up\nWhen configured as V4, the DNS resolver will only perform a lookup\nfor addresses in the IPv4 family. If V6 is configured, the DNS resolver\nwill only perform a lookup for addresses in the IPv6 family.\nIf AUTO is configured, the DNS resolver will first perform a lookup\nfor addresses in the IPv6 family and fallback to a lookup for addresses\nin the IPv4 family. If ALL is specified, the DNS resolver will perform a lookup for\nboth IPv4 and IPv6 families, and return all resolved addresses.\nWhen this is used, Happy Eyeballs will be enabled for upstream connections.\nRefer to Happy Eyeballs Support for more information.\nNote: This only applies to externalName clusters.\nSee https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/cluster/v3/cluster.proto.html#envoy-v3-api-enum-config-cluster-v3-cluster-dnslookupfamily\nfor more information.\nValues: auto
(default), v4
, v6
, all
.\nOther values will produce an error."
fn spec.runtimeSettings.envoy.cluster.withMaxRequestsPerConnection
withMaxRequestsPerConnection(maxRequestsPerConnection)
"Defines the maximum requests for upstream connections. If not specified, there is no limit.\nsee https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/core/v3/protocol.proto#envoy-v3-api-msg-config-core-v3-httpprotocoloptions\nfor more information."
fn spec.runtimeSettings.envoy.cluster.withPer-Connection-Buffer-Limit-Bytes
withPer-Connection-Buffer-Limit-Bytes(per_connection_buffer_limit_bytes)
"Defines the soft limit on size of the cluster’s new connection read and write buffers in bytes.\nIf unspecified, an implementation defined default is applied (1MiB).\nsee https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/cluster/v3/cluster.proto#envoy-v3-api-field-config-cluster-v3-cluster-per-connection-buffer-limit-bytes\nfor more information."
obj spec.runtimeSettings.envoy.cluster.circuitBreakers
"GlobalCircuitBreakerDefaults specifies default circuit breaker budget across all services.\nIf defined, this will be used as the default for all services."
fn spec.runtimeSettings.envoy.cluster.circuitBreakers.withMaxConnections
withMaxConnections(maxConnections)
"The maximum number of connections that a single Envoy instance allows to the Kubernetes Service; defaults to 1024."
fn spec.runtimeSettings.envoy.cluster.circuitBreakers.withMaxPendingRequests
withMaxPendingRequests(maxPendingRequests)
"The maximum number of pending requests that a single Envoy instance allows to the Kubernetes Service; defaults to 1024."
fn spec.runtimeSettings.envoy.cluster.circuitBreakers.withMaxRequests
withMaxRequests(maxRequests)
"The maximum parallel requests a single Envoy instance allows to the Kubernetes Service; defaults to 1024"
fn spec.runtimeSettings.envoy.cluster.circuitBreakers.withMaxRetries
withMaxRetries(maxRetries)
"The maximum number of parallel retries a single Envoy instance allows to the Kubernetes Service; defaults to 3."
obj spec.runtimeSettings.envoy.cluster.upstreamTLS
"UpstreamTLS contains the TLS policy parameters for upstream connections"
fn spec.runtimeSettings.envoy.cluster.upstreamTLS.withCipherSuites
withCipherSuites(cipherSuites)
"CipherSuites defines the TLS ciphers to be supported by Envoy TLS\nlisteners when negotiating TLS 1.2. Ciphers are validated against the\nset that Envoy supports by default. This parameter should only be used\nby advanced users. Note that these will be ignored when TLS 1.3 is in\nuse.\nThis field is optional; when it is undefined, a Contour-managed ciphersuite list\nwill be used, which may be updated to keep it secure.\nContour's default list is:\n - \"[ECDHE-ECDSA-AES128-GCM-SHA256|ECDHE-ECDSA-CHACHA20-POLY1305]\"\n - \"[ECDHE-RSA-AES128-GCM-SHA256|ECDHE-RSA-CHACHA20-POLY1305]\"\n - \"ECDHE-ECDSA-AES256-GCM-SHA384\"\n - \"ECDHE-RSA-AES256-GCM-SHA384\"\nCiphers provided are validated against the following list:\n - \"[ECDHE-ECDSA-AES128-GCM-SHA256|ECDHE-ECDSA-CHACHA20-POLY1305]\"\n - \"[ECDHE-RSA-AES128-GCM-SHA256|ECDHE-RSA-CHACHA20-POLY1305]\"\n - \"ECDHE-ECDSA-AES128-GCM-SHA256\"\n - \"ECDHE-RSA-AES128-GCM-SHA256\"\n - \"ECDHE-ECDSA-AES128-SHA\"\n - \"ECDHE-RSA-AES128-SHA\"\n - \"AES128-GCM-SHA256\"\n - \"AES128-SHA\"\n - \"ECDHE-ECDSA-AES256-GCM-SHA384\"\n - \"ECDHE-RSA-AES256-GCM-SHA384\"\n - \"ECDHE-ECDSA-AES256-SHA\"\n - \"ECDHE-RSA-AES256-SHA\"\n - \"AES256-GCM-SHA384\"\n - \"AES256-SHA\"\nContour recommends leaving this undefined unless you are sure you must.\nSee: https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/transport_sockets/tls/v3/common.proto#extensions-transport-sockets-tls-v3-tlsparameters\nNote: This list is a superset of what is valid for stock Envoy builds and those using BoringSSL FIPS."
fn spec.runtimeSettings.envoy.cluster.upstreamTLS.withCipherSuitesMixin
withCipherSuitesMixin(cipherSuites)
"CipherSuites defines the TLS ciphers to be supported by Envoy TLS\nlisteners when negotiating TLS 1.2. Ciphers are validated against the\nset that Envoy supports by default. This parameter should only be used\nby advanced users. Note that these will be ignored when TLS 1.3 is in\nuse.\nThis field is optional; when it is undefined, a Contour-managed ciphersuite list\nwill be used, which may be updated to keep it secure.\nContour's default list is:\n - \"[ECDHE-ECDSA-AES128-GCM-SHA256|ECDHE-ECDSA-CHACHA20-POLY1305]\"\n - \"[ECDHE-RSA-AES128-GCM-SHA256|ECDHE-RSA-CHACHA20-POLY1305]\"\n - \"ECDHE-ECDSA-AES256-GCM-SHA384\"\n - \"ECDHE-RSA-AES256-GCM-SHA384\"\nCiphers provided are validated against the following list:\n - \"[ECDHE-ECDSA-AES128-GCM-SHA256|ECDHE-ECDSA-CHACHA20-POLY1305]\"\n - \"[ECDHE-RSA-AES128-GCM-SHA256|ECDHE-RSA-CHACHA20-POLY1305]\"\n - \"ECDHE-ECDSA-AES128-GCM-SHA256\"\n - \"ECDHE-RSA-AES128-GCM-SHA256\"\n - \"ECDHE-ECDSA-AES128-SHA\"\n - \"ECDHE-RSA-AES128-SHA\"\n - \"AES128-GCM-SHA256\"\n - \"AES128-SHA\"\n - \"ECDHE-ECDSA-AES256-GCM-SHA384\"\n - \"ECDHE-RSA-AES256-GCM-SHA384\"\n - \"ECDHE-ECDSA-AES256-SHA\"\n - \"ECDHE-RSA-AES256-SHA\"\n - \"AES256-GCM-SHA384\"\n - \"AES256-SHA\"\nContour recommends leaving this undefined unless you are sure you must.\nSee: https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/transport_sockets/tls/v3/common.proto#extensions-transport-sockets-tls-v3-tlsparameters\nNote: This list is a superset of what is valid for stock Envoy builds and those using BoringSSL FIPS."
Note: This function appends passed data to existing values
fn spec.runtimeSettings.envoy.cluster.upstreamTLS.withMaximumProtocolVersion
withMaximumProtocolVersion(maximumProtocolVersion)
"MaximumProtocolVersion is the maximum TLS version this vhost should\nnegotiate.\nValues: 1.2
, 1.3
(default).\nOther values will produce an error."
fn spec.runtimeSettings.envoy.cluster.upstreamTLS.withMinimumProtocolVersion
withMinimumProtocolVersion(minimumProtocolVersion)
"MinimumProtocolVersion is the minimum TLS version this vhost should\nnegotiate.\nValues: 1.2
(default), 1.3
.\nOther values will produce an error."
obj spec.runtimeSettings.envoy.health
"Health defines the endpoint Envoy uses to serve health checks.\nContour's default is { address: \"0.0.0.0\", port: 8002 }."
fn spec.runtimeSettings.envoy.health.withAddress
withAddress(address)
"Defines the health address interface."
fn spec.runtimeSettings.envoy.health.withPort
withPort(port)
"Defines the health port."
obj spec.runtimeSettings.envoy.http
"Defines the HTTP Listener for Envoy.\nContour's default is { address: \"0.0.0.0\", port: 8080, accessLog: \"/dev/stdout\" }."
fn spec.runtimeSettings.envoy.http.withAccessLog
withAccessLog(accessLog)
"AccessLog defines where Envoy logs are outputted for this listener."
fn spec.runtimeSettings.envoy.http.withAddress
withAddress(address)
"Defines an Envoy Listener Address."
fn spec.runtimeSettings.envoy.http.withPort
withPort(port)
"Defines an Envoy listener Port."
obj spec.runtimeSettings.envoy.https
"Defines the HTTPS Listener for Envoy.\nContour's default is { address: \"0.0.0.0\", port: 8443, accessLog: \"/dev/stdout\" }."
fn spec.runtimeSettings.envoy.https.withAccessLog
withAccessLog(accessLog)
"AccessLog defines where Envoy logs are outputted for this listener."
fn spec.runtimeSettings.envoy.https.withAddress
withAddress(address)
"Defines an Envoy Listener Address."
fn spec.runtimeSettings.envoy.https.withPort
withPort(port)
"Defines an Envoy listener Port."
obj spec.runtimeSettings.envoy.listener
"Listener hold various configurable Envoy listener values."
fn spec.runtimeSettings.envoy.listener.withConnectionBalancer
withConnectionBalancer(connectionBalancer)
"ConnectionBalancer. If the value is exact, the listener will use the exact connection balancer\nSee https://www.envoyproxy.io/docs/envoy/latest/api-v2/api/v2/listener.proto#envoy-api-msg-listener-connectionbalanceconfig\nfor more information.\nValues: (empty string): use the default ConnectionBalancer, exact
: use the Exact ConnectionBalancer.\nOther values will produce an error."
fn spec.runtimeSettings.envoy.listener.withDisableAllowChunkedLength
withDisableAllowChunkedLength(disableAllowChunkedLength)
"DisableAllowChunkedLength disables the RFC-compliant Envoy behavior to\nstrip the \"Content-Length\" header if \"Transfer-Encoding: chunked\" is\nalso set. This is an emergency off-switch to revert back to Envoy's\ndefault behavior in case of failures. Please file an issue if failures\nare encountered.\nSee: https://github.com/projectcontour/contour/issues/3221\nContour's default is false."
fn spec.runtimeSettings.envoy.listener.withDisableMergeSlashes
withDisableMergeSlashes(disableMergeSlashes)
"DisableMergeSlashes disables Envoy's non-standard merge_slashes path transformation option\nwhich strips duplicate slashes from request URL paths.\nContour's default is false."
fn spec.runtimeSettings.envoy.listener.withHttpMaxConcurrentStreams
withHttpMaxConcurrentStreams(httpMaxConcurrentStreams)
"Defines the value for SETTINGS_MAX_CONCURRENT_STREAMS Envoy will advertise in the\nSETTINGS frame in HTTP/2 connections and the limit for concurrent streams allowed\nfor a peer on a single HTTP/2 connection. It is recommended to not set this lower\nthan 100 but this field can be used to bound resource usage by HTTP/2 connections\nand mitigate attacks like CVE-2023-44487. The default value when this is not set is\nunlimited."
fn spec.runtimeSettings.envoy.listener.withMaxConnectionsPerListener
withMaxConnectionsPerListener(maxConnectionsPerListener)
"Defines the limit on number of active connections to a listener. The limit is applied\nper listener. The default value when this is not set is unlimited."
fn spec.runtimeSettings.envoy.listener.withMaxRequestsPerConnection
withMaxRequestsPerConnection(maxRequestsPerConnection)
"Defines the maximum requests for downstream connections. If not specified, there is no limit.\nsee https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/core/v3/protocol.proto#envoy-v3-api-msg-config-core-v3-httpprotocoloptions\nfor more information."
fn spec.runtimeSettings.envoy.listener.withMaxRequestsPerIOCycle
withMaxRequestsPerIOCycle(maxRequestsPerIOCycle)
"Defines the limit on number of HTTP requests that Envoy will process from a single\nconnection in a single I/O cycle. Requests over this limit are processed in subsequent\nI/O cycles. Can be used as a mitigation for CVE-2023-44487 when abusive traffic is\ndetected. Configures the http.max_requests_per_io_cycle Envoy runtime setting. The default\nvalue when this is not set is no limit."
fn spec.runtimeSettings.envoy.listener.withPer-Connection-Buffer-Limit-Bytes
withPer-Connection-Buffer-Limit-Bytes(per_connection_buffer_limit_bytes)
"Defines the soft limit on size of the listener’s new connection read and write buffers in bytes.\nIf unspecified, an implementation defined default is applied (1MiB).\nsee https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/listener/v3/listener.proto#envoy-v3-api-field-config-listener-v3-listener-per-connection-buffer-limit-bytes\nfor more information."
fn spec.runtimeSettings.envoy.listener.withServerHeaderTransformation
withServerHeaderTransformation(serverHeaderTransformation)
"Defines the action to be applied to the Server header on the response path.\nWhen configured as overwrite, overwrites any Server header with \"envoy\".\nWhen configured as append_if_absent, if a Server header is present, pass it through, otherwise set it to \"envoy\".\nWhen configured as pass_through, pass through the value of the Server header, and do not append a header if none is present.\nValues: overwrite
(default), append_if_absent
, pass_through
\nOther values will produce an error.\nContour's default is overwrite."
fn spec.runtimeSettings.envoy.listener.withUseProxyProtocol
withUseProxyProtocol(useProxyProtocol)
"Use PROXY protocol for all listeners.\nContour's default is false."
obj spec.runtimeSettings.envoy.listener.socketOptions
"SocketOptions defines configurable socket options for the listeners.\nSingle set of options are applied to all listeners."
fn spec.runtimeSettings.envoy.listener.socketOptions.withTos
withTos(tos)
"Defines the value for IPv4 TOS field (including 6 bit DSCP field) for IP packets originating from Envoy listeners.\nSingle value is applied to all listeners.\nIf listeners are bound to IPv6-only addresses, setting this option will cause an error."
fn spec.runtimeSettings.envoy.listener.socketOptions.withTrafficClass
withTrafficClass(trafficClass)
"Defines the value for IPv6 Traffic Class field (including 6 bit DSCP field) for IP packets originating from the Envoy listeners.\nSingle value is applied to all listeners.\nIf listeners are bound to IPv4-only addresses, setting this option will cause an error."
obj spec.runtimeSettings.envoy.listener.tls
"TLS holds various configurable Envoy TLS listener values."
fn spec.runtimeSettings.envoy.listener.tls.withCipherSuites
withCipherSuites(cipherSuites)
"CipherSuites defines the TLS ciphers to be supported by Envoy TLS\nlisteners when negotiating TLS 1.2. Ciphers are validated against the\nset that Envoy supports by default. This parameter should only be used\nby advanced users. Note that these will be ignored when TLS 1.3 is in\nuse.\nThis field is optional; when it is undefined, a Contour-managed ciphersuite list\nwill be used, which may be updated to keep it secure.\nContour's default list is:\n - \"[ECDHE-ECDSA-AES128-GCM-SHA256|ECDHE-ECDSA-CHACHA20-POLY1305]\"\n - \"[ECDHE-RSA-AES128-GCM-SHA256|ECDHE-RSA-CHACHA20-POLY1305]\"\n - \"ECDHE-ECDSA-AES256-GCM-SHA384\"\n - \"ECDHE-RSA-AES256-GCM-SHA384\"\nCiphers provided are validated against the following list:\n - \"[ECDHE-ECDSA-AES128-GCM-SHA256|ECDHE-ECDSA-CHACHA20-POLY1305]\"\n - \"[ECDHE-RSA-AES128-GCM-SHA256|ECDHE-RSA-CHACHA20-POLY1305]\"\n - \"ECDHE-ECDSA-AES128-GCM-SHA256\"\n - \"ECDHE-RSA-AES128-GCM-SHA256\"\n - \"ECDHE-ECDSA-AES128-SHA\"\n - \"ECDHE-RSA-AES128-SHA\"\n - \"AES128-GCM-SHA256\"\n - \"AES128-SHA\"\n - \"ECDHE-ECDSA-AES256-GCM-SHA384\"\n - \"ECDHE-RSA-AES256-GCM-SHA384\"\n - \"ECDHE-ECDSA-AES256-SHA\"\n - \"ECDHE-RSA-AES256-SHA\"\n - \"AES256-GCM-SHA384\"\n - \"AES256-SHA\"\nContour recommends leaving this undefined unless you are sure you must.\nSee: https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/transport_sockets/tls/v3/common.proto#extensions-transport-sockets-tls-v3-tlsparameters\nNote: This list is a superset of what is valid for stock Envoy builds and those using BoringSSL FIPS."
fn spec.runtimeSettings.envoy.listener.tls.withCipherSuitesMixin
withCipherSuitesMixin(cipherSuites)
"CipherSuites defines the TLS ciphers to be supported by Envoy TLS\nlisteners when negotiating TLS 1.2. Ciphers are validated against the\nset that Envoy supports by default. This parameter should only be used\nby advanced users. Note that these will be ignored when TLS 1.3 is in\nuse.\nThis field is optional; when it is undefined, a Contour-managed ciphersuite list\nwill be used, which may be updated to keep it secure.\nContour's default list is:\n - \"[ECDHE-ECDSA-AES128-GCM-SHA256|ECDHE-ECDSA-CHACHA20-POLY1305]\"\n - \"[ECDHE-RSA-AES128-GCM-SHA256|ECDHE-RSA-CHACHA20-POLY1305]\"\n - \"ECDHE-ECDSA-AES256-GCM-SHA384\"\n - \"ECDHE-RSA-AES256-GCM-SHA384\"\nCiphers provided are validated against the following list:\n - \"[ECDHE-ECDSA-AES128-GCM-SHA256|ECDHE-ECDSA-CHACHA20-POLY1305]\"\n - \"[ECDHE-RSA-AES128-GCM-SHA256|ECDHE-RSA-CHACHA20-POLY1305]\"\n - \"ECDHE-ECDSA-AES128-GCM-SHA256\"\n - \"ECDHE-RSA-AES128-GCM-SHA256\"\n - \"ECDHE-ECDSA-AES128-SHA\"\n - \"ECDHE-RSA-AES128-SHA\"\n - \"AES128-GCM-SHA256\"\n - \"AES128-SHA\"\n - \"ECDHE-ECDSA-AES256-GCM-SHA384\"\n - \"ECDHE-RSA-AES256-GCM-SHA384\"\n - \"ECDHE-ECDSA-AES256-SHA\"\n - \"ECDHE-RSA-AES256-SHA\"\n - \"AES256-GCM-SHA384\"\n - \"AES256-SHA\"\nContour recommends leaving this undefined unless you are sure you must.\nSee: https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/transport_sockets/tls/v3/common.proto#extensions-transport-sockets-tls-v3-tlsparameters\nNote: This list is a superset of what is valid for stock Envoy builds and those using BoringSSL FIPS."
Note: This function appends passed data to existing values
fn spec.runtimeSettings.envoy.listener.tls.withMaximumProtocolVersion
withMaximumProtocolVersion(maximumProtocolVersion)
"MaximumProtocolVersion is the maximum TLS version this vhost should\nnegotiate.\nValues: 1.2
, 1.3
(default).\nOther values will produce an error."
fn spec.runtimeSettings.envoy.listener.tls.withMinimumProtocolVersion
withMinimumProtocolVersion(minimumProtocolVersion)
"MinimumProtocolVersion is the minimum TLS version this vhost should\nnegotiate.\nValues: 1.2
(default), 1.3
.\nOther values will produce an error."
obj spec.runtimeSettings.envoy.logging
"Logging defines how Envoy's logs can be configured."
fn spec.runtimeSettings.envoy.logging.withAccessLogFormat
withAccessLogFormat(accessLogFormat)
"AccessLogFormat sets the global access log format.\nValues: envoy
(default), json
.\nOther values will produce an error."
fn spec.runtimeSettings.envoy.logging.withAccessLogFormatString
withAccessLogFormatString(accessLogFormatString)
"AccessLogFormatString sets the access log format when format is set to envoy
.\nWhen empty, Envoy's default format is used."
fn spec.runtimeSettings.envoy.logging.withAccessLogJSONFields
withAccessLogJSONFields(accessLogJSONFields)
"AccessLogJSONFields sets the fields that JSON logging will\noutput when AccessLogFormat is json."
fn spec.runtimeSettings.envoy.logging.withAccessLogJSONFieldsMixin
withAccessLogJSONFieldsMixin(accessLogJSONFields)
"AccessLogJSONFields sets the fields that JSON logging will\noutput when AccessLogFormat is json."
Note: This function appends passed data to existing values
fn spec.runtimeSettings.envoy.logging.withAccessLogLevel
withAccessLogLevel(accessLogLevel)
"AccessLogLevel sets the verbosity level of the access log.\nValues: info
(default, all requests are logged), error
(all non-success requests, i.e. 300+ response code, are logged), critical
(all 5xx requests are logged) and disabled
.\nOther values will produce an error."
obj spec.runtimeSettings.envoy.metrics
"Metrics defines the endpoint Envoy uses to serve metrics.\nContour's default is { address: \"0.0.0.0\", port: 8002 }."
fn spec.runtimeSettings.envoy.metrics.withAddress
withAddress(address)
"Defines the metrics address interface."
fn spec.runtimeSettings.envoy.metrics.withPort
withPort(port)
"Defines the metrics port."
obj spec.runtimeSettings.envoy.metrics.tls
"TLS holds TLS file config details.\nMetrics and health endpoints cannot have same port number when metrics is served over HTTPS."
fn spec.runtimeSettings.envoy.metrics.tls.withCaFile
withCaFile(caFile)
"CA filename."
fn spec.runtimeSettings.envoy.metrics.tls.withCertFile
withCertFile(certFile)
"Client certificate filename."
fn spec.runtimeSettings.envoy.metrics.tls.withKeyFile
withKeyFile(keyFile)
"Client key filename."
obj spec.runtimeSettings.envoy.network
"Network holds various configurable Envoy network values."
fn spec.runtimeSettings.envoy.network.withAdminPort
withAdminPort(adminPort)
"Configure the port used to access the Envoy Admin interface.\nIf configured to port \"0\" then the admin interface is disabled.\nContour's default is 9001."
fn spec.runtimeSettings.envoy.network.withNumTrustedHops
withNumTrustedHops(numTrustedHops)
"XffNumTrustedHops defines the number of additional ingress proxy hops from the\nright side of the x-forwarded-for HTTP header to trust when determining the origin\nclient’s IP address.\nSee https://www.envoyproxy.io/docs/envoy/v1.17.0/api-v3/extensions/filters/network/http_connection_manager/v3/http_connection_manager.proto?highlight=xff_num_trusted_hops\nfor more information.\nContour's default is 0."
obj spec.runtimeSettings.envoy.service
"Service holds Envoy service parameters for setting Ingress status.\nContour's default is { namespace: \"projectcontour\", name: \"envoy\" }."
fn spec.runtimeSettings.envoy.service.withName
withName(name)
fn spec.runtimeSettings.envoy.service.withNamespace
withNamespace(namespace)
obj spec.runtimeSettings.envoy.timeouts
"Timeouts holds various configurable timeouts that can\nbe set in the config file."
fn spec.runtimeSettings.envoy.timeouts.withConnectTimeout
withConnectTimeout(connectTimeout)
"ConnectTimeout defines how long the proxy should wait when establishing connection to upstream service.\nIf not set, a default value of 2 seconds will be used.\nSee https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/cluster/v3/cluster.proto#envoy-v3-api-field-config-cluster-v3-cluster-connect-timeout\nfor more information."
fn spec.runtimeSettings.envoy.timeouts.withConnectionIdleTimeout
withConnectionIdleTimeout(connectionIdleTimeout)
"ConnectionIdleTimeout defines how long the proxy should wait while there are\nno active requests (for HTTP/1.1) or streams (for HTTP/2) before terminating\nan HTTP connection. Set to \"infinity\" to disable the timeout entirely.\nSee https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/core/v3/protocol.proto#envoy-v3-api-field-config-core-v3-httpprotocoloptions-idle-timeout\nfor more information."
fn spec.runtimeSettings.envoy.timeouts.withConnectionShutdownGracePeriod
withConnectionShutdownGracePeriod(connectionShutdownGracePeriod)
"ConnectionShutdownGracePeriod defines how long the proxy will wait between sending an\ninitial GOAWAY frame and a second, final GOAWAY frame when terminating an HTTP/2 connection.\nDuring this grace period, the proxy will continue to respond to new streams. After the final\nGOAWAY frame has been sent, the proxy will refuse new streams.\nSee https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/filters/network/http_connection_manager/v3/http_connection_manager.proto#envoy-v3-api-field-extensions-filters-network-http-connection-manager-v3-httpconnectionmanager-drain-timeout\nfor more information."
fn spec.runtimeSettings.envoy.timeouts.withDelayedCloseTimeout
withDelayedCloseTimeout(delayedCloseTimeout)
"DelayedCloseTimeout defines how long envoy will wait, once connection\nclose processing has been initiated, for the downstream peer to close\nthe connection before Envoy closes the socket associated with the connection.\nSetting this timeout to 'infinity' will disable it, equivalent to setting it to '0'\nin Envoy. Leaving it unset will result in the Envoy default value being used.\nSee https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/filters/network/http_connection_manager/v3/http_connection_manager.proto#envoy-v3-api-field-extensions-filters-network-http-connection-manager-v3-httpconnectionmanager-delayed-close-timeout\nfor more information."
fn spec.runtimeSettings.envoy.timeouts.withMaxConnectionDuration
withMaxConnectionDuration(maxConnectionDuration)
"MaxConnectionDuration defines the maximum period of time after an HTTP connection\nhas been established from the client to the proxy before it is closed by the proxy,\nregardless of whether there has been activity or not. Omit or set to \"infinity\" for\nno max duration.\nSee https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/core/v3/protocol.proto#envoy-v3-api-field-config-core-v3-httpprotocoloptions-max-connection-duration\nfor more information."
fn spec.runtimeSettings.envoy.timeouts.withRequestTimeout
withRequestTimeout(requestTimeout)
"RequestTimeout sets the client request timeout globally for Contour. Note that\nthis is a timeout for the entire request, not an idle timeout. Omit or set to\n\"infinity\" to disable the timeout entirely.\nSee https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/filters/network/http_connection_manager/v3/http_connection_manager.proto#envoy-v3-api-field-extensions-filters-network-http-connection-manager-v3-httpconnectionmanager-request-timeout\nfor more information."
fn spec.runtimeSettings.envoy.timeouts.withStreamIdleTimeout
withStreamIdleTimeout(streamIdleTimeout)
"StreamIdleTimeout defines how long the proxy should wait while there is no\nrequest activity (for HTTP/1.1) or stream activity (for HTTP/2) before\nterminating the HTTP request or stream. Set to \"infinity\" to disable the\ntimeout entirely.\nSee https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/filters/network/http_connection_manager/v3/http_connection_manager.proto#envoy-v3-api-field-extensions-filters-network-http-connection-manager-v3-httpconnectionmanager-stream-idle-timeout\nfor more information."
obj spec.runtimeSettings.gateway
"Gateway contains parameters for the gateway-api Gateway that Contour\nis configured to serve traffic."
fn spec.runtimeSettings.gateway.withControllerName
withControllerName(controllerName)
"ControllerName is used to determine whether Contour should reconcile a\nGatewayClass. The string takes the form of \"projectcontour.io/
obj spec.runtimeSettings.gateway.gatewayRef
"GatewayRef defines a specific Gateway that this Contour\ninstance corresponds to. If set, Contour will reconcile\nonly this gateway, and will not reconcile any gateway\nclasses.\nExactly one of ControllerName or GatewayRef must be set."
fn spec.runtimeSettings.gateway.gatewayRef.withName
withName(name)
fn spec.runtimeSettings.gateway.gatewayRef.withNamespace
withNamespace(namespace)
obj spec.runtimeSettings.globalExtAuth
"GlobalExternalAuthorization allows envoys external authorization filter\nto be enabled for all virtual hosts."
fn spec.runtimeSettings.globalExtAuth.withFailOpen
withFailOpen(failOpen)
"If FailOpen is true, the client request is forwarded to the upstream service\neven if the authorization server fails to respond. This field should not be\nset in most cases. It is intended for use only while migrating applications\nfrom internal authorization to Contour external authorization."
fn spec.runtimeSettings.globalExtAuth.withResponseTimeout
withResponseTimeout(responseTimeout)
"ResponseTimeout configures maximum time to wait for a check response from the authorization server.\nTimeout durations are expressed in the Go Duration format.\nValid time units are \"ns\", \"us\" (or \"µs\"), \"ms\", \"s\", \"m\", \"h\".\nThe string \"infinity\" is also a valid input and specifies no timeout."
obj spec.runtimeSettings.globalExtAuth.authPolicy
"AuthPolicy sets a default authorization policy for client requests.\nThis policy will be used unless overridden by individual routes."
fn spec.runtimeSettings.globalExtAuth.authPolicy.withContext
withContext(context)
"Context is a set of key/value pairs that are sent to the\nauthentication server in the check request. If a context\nis provided at an enclosing scope, the entries are merged\nsuch that the inner scope overrides matching keys from the\nouter scope."
fn spec.runtimeSettings.globalExtAuth.authPolicy.withContextMixin
withContextMixin(context)
"Context is a set of key/value pairs that are sent to the\nauthentication server in the check request. If a context\nis provided at an enclosing scope, the entries are merged\nsuch that the inner scope overrides matching keys from the\nouter scope."
Note: This function appends passed data to existing values
fn spec.runtimeSettings.globalExtAuth.authPolicy.withDisabled
withDisabled(disabled)
"When true, this field disables client request authentication\nfor the scope of the policy."
obj spec.runtimeSettings.globalExtAuth.extensionRef
"ExtensionServiceRef specifies the extension resource that will authorize client requests."
fn spec.runtimeSettings.globalExtAuth.extensionRef.withApiVersion
withApiVersion(apiVersion)
"API version of the referent.\nIf this field is not specified, the default \"projectcontour.io/v1alpha1\" will be used"
fn spec.runtimeSettings.globalExtAuth.extensionRef.withName
withName(name)
"Name of the referent.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"
fn spec.runtimeSettings.globalExtAuth.extensionRef.withNamespace
withNamespace(namespace)
"Namespace of the referent.\nIf this field is not specifies, the namespace of the resource that targets the referent will be used.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"
obj spec.runtimeSettings.globalExtAuth.withRequestBody
"WithRequestBody specifies configuration for sending the client request's body to authorization server."
fn spec.runtimeSettings.globalExtAuth.withRequestBody.withAllowPartialMessage
withAllowPartialMessage(allowPartialMessage)
"If AllowPartialMessage is true, then Envoy will buffer the body until MaxRequestBytes are reached."
fn spec.runtimeSettings.globalExtAuth.withRequestBody.withMaxRequestBytes
withMaxRequestBytes(maxRequestBytes)
"MaxRequestBytes sets the maximum size of message body ExtAuthz filter will hold in-memory."
fn spec.runtimeSettings.globalExtAuth.withRequestBody.withPackAsBytes
withPackAsBytes(packAsBytes)
"If PackAsBytes is true, the body sent to Authorization Server is in raw bytes."
obj spec.runtimeSettings.health
"Health defines the endpoints Contour uses to serve health checks.\nContour's default is { address: \"0.0.0.0\", port: 8000 }."
fn spec.runtimeSettings.health.withAddress
withAddress(address)
"Defines the health address interface."
fn spec.runtimeSettings.health.withPort
withPort(port)
"Defines the health port."
obj spec.runtimeSettings.httpproxy
"HTTPProxy defines parameters on HTTPProxy."
fn spec.runtimeSettings.httpproxy.withDisablePermitInsecure
withDisablePermitInsecure(disablePermitInsecure)
"DisablePermitInsecure disables the use of the\npermitInsecure field in HTTPProxy.\nContour's default is false."
fn spec.runtimeSettings.httpproxy.withRootNamespaces
withRootNamespaces(rootNamespaces)
"Restrict Contour to searching these namespaces for root ingress routes."
fn spec.runtimeSettings.httpproxy.withRootNamespacesMixin
withRootNamespacesMixin(rootNamespaces)
"Restrict Contour to searching these namespaces for root ingress routes."
Note: This function appends passed data to existing values
obj spec.runtimeSettings.httpproxy.fallbackCertificate
"FallbackCertificate defines the namespace/name of the Kubernetes secret to\nuse as fallback when a non-SNI request is received."
fn spec.runtimeSettings.httpproxy.fallbackCertificate.withName
withName(name)
fn spec.runtimeSettings.httpproxy.fallbackCertificate.withNamespace
withNamespace(namespace)
obj spec.runtimeSettings.ingress
"Ingress contains parameters for ingress options."
fn spec.runtimeSettings.ingress.withClassNames
withClassNames(classNames)
"Ingress Class Names Contour should use."
fn spec.runtimeSettings.ingress.withClassNamesMixin
withClassNamesMixin(classNames)
"Ingress Class Names Contour should use."
Note: This function appends passed data to existing values
fn spec.runtimeSettings.ingress.withStatusAddress
withStatusAddress(statusAddress)
"Address to set in Ingress object status."
obj spec.runtimeSettings.metrics
"Metrics defines the endpoint Contour uses to serve metrics.\nContour's default is { address: \"0.0.0.0\", port: 8000 }."
fn spec.runtimeSettings.metrics.withAddress
withAddress(address)
"Defines the metrics address interface."
fn spec.runtimeSettings.metrics.withPort
withPort(port)
"Defines the metrics port."
obj spec.runtimeSettings.metrics.tls
"TLS holds TLS file config details.\nMetrics and health endpoints cannot have same port number when metrics is served over HTTPS."
fn spec.runtimeSettings.metrics.tls.withCaFile
withCaFile(caFile)
"CA filename."
fn spec.runtimeSettings.metrics.tls.withCertFile
withCertFile(certFile)
"Client certificate filename."
fn spec.runtimeSettings.metrics.tls.withKeyFile
withKeyFile(keyFile)
"Client key filename."
obj spec.runtimeSettings.policy
"Policy specifies default policy applied if not overridden by the user"
fn spec.runtimeSettings.policy.withApplyToIngress
withApplyToIngress(applyToIngress)
"ApplyToIngress determines if the Policies will apply to ingress objects\nContour's default is false."
obj spec.runtimeSettings.policy.requestHeaders
"RequestHeadersPolicy defines the request headers set/removed on all routes"
fn spec.runtimeSettings.policy.requestHeaders.withRemove
withRemove(remove)
fn spec.runtimeSettings.policy.requestHeaders.withRemoveMixin
withRemoveMixin(remove)
Note: This function appends passed data to existing values
fn spec.runtimeSettings.policy.requestHeaders.withSet
withSet(set)
fn spec.runtimeSettings.policy.requestHeaders.withSetMixin
withSetMixin(set)
Note: This function appends passed data to existing values
obj spec.runtimeSettings.policy.responseHeaders
"ResponseHeadersPolicy defines the response headers set/removed on all routes"
fn spec.runtimeSettings.policy.responseHeaders.withRemove
withRemove(remove)
fn spec.runtimeSettings.policy.responseHeaders.withRemoveMixin
withRemoveMixin(remove)
Note: This function appends passed data to existing values
fn spec.runtimeSettings.policy.responseHeaders.withSet
withSet(set)
fn spec.runtimeSettings.policy.responseHeaders.withSetMixin
withSetMixin(set)
Note: This function appends passed data to existing values
obj spec.runtimeSettings.rateLimitService
"RateLimitService optionally holds properties of the Rate Limit Service\nto be used for global rate limiting."
fn spec.runtimeSettings.rateLimitService.withDomain
withDomain(domain)
"Domain is passed to the Rate Limit Service."
fn spec.runtimeSettings.rateLimitService.withEnableResourceExhaustedCode
withEnableResourceExhaustedCode(enableResourceExhaustedCode)
"EnableResourceExhaustedCode enables translating error code 429 to\ngrpc code RESOURCE_EXHAUSTED. When disabled it's translated to UNAVAILABLE"
fn spec.runtimeSettings.rateLimitService.withEnableXRateLimitHeaders
withEnableXRateLimitHeaders(enableXRateLimitHeaders)
"EnableXRateLimitHeaders defines whether to include the X-RateLimit\nheaders X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset\n(as defined by the IETF Internet-Draft linked below), on responses\nto clients when the Rate Limit Service is consulted for a request.\nref. https://tools.ietf.org/id/draft-polli-ratelimit-headers-03.html"
fn spec.runtimeSettings.rateLimitService.withFailOpen
withFailOpen(failOpen)
"FailOpen defines whether to allow requests to proceed when the\nRate Limit Service fails to respond with a valid rate limit\ndecision within the timeout defined on the extension service."
obj spec.runtimeSettings.rateLimitService.defaultGlobalRateLimitPolicy
"DefaultGlobalRateLimitPolicy allows setting a default global rate limit policy for every HTTPProxy.\nHTTPProxy can overwrite this configuration."
fn spec.runtimeSettings.rateLimitService.defaultGlobalRateLimitPolicy.withDescriptors
withDescriptors(descriptors)
"Descriptors defines the list of descriptors that will\nbe generated and sent to the rate limit service. Each\ndescriptor contains 1+ key-value pair entries."
fn spec.runtimeSettings.rateLimitService.defaultGlobalRateLimitPolicy.withDescriptorsMixin
withDescriptorsMixin(descriptors)
"Descriptors defines the list of descriptors that will\nbe generated and sent to the rate limit service. Each\ndescriptor contains 1+ key-value pair entries."
Note: This function appends passed data to existing values
fn spec.runtimeSettings.rateLimitService.defaultGlobalRateLimitPolicy.withDisabled
withDisabled(disabled)
"Disabled configures the HTTPProxy to not use\nthe default global rate limit policy defined by the Contour configuration."
obj spec.runtimeSettings.rateLimitService.defaultGlobalRateLimitPolicy.descriptors
"Descriptors defines the list of descriptors that will\nbe generated and sent to the rate limit service. Each\ndescriptor contains 1+ key-value pair entries."
fn spec.runtimeSettings.rateLimitService.defaultGlobalRateLimitPolicy.descriptors.withEntries
withEntries(entries)
"Entries is the list of key-value pair generators."
fn spec.runtimeSettings.rateLimitService.defaultGlobalRateLimitPolicy.descriptors.withEntriesMixin
withEntriesMixin(entries)
"Entries is the list of key-value pair generators."
Note: This function appends passed data to existing values
obj spec.runtimeSettings.rateLimitService.defaultGlobalRateLimitPolicy.descriptors.entries
"Entries is the list of key-value pair generators."
fn spec.runtimeSettings.rateLimitService.defaultGlobalRateLimitPolicy.descriptors.entries.withRemoteAddress
withRemoteAddress(remoteAddress)
"RemoteAddress defines a descriptor entry with a key of \"remote_address\"\nand a value equal to the client's IP address (from x-forwarded-for)."
fn spec.runtimeSettings.rateLimitService.defaultGlobalRateLimitPolicy.descriptors.entries.withRemoteAddressMixin
withRemoteAddressMixin(remoteAddress)
"RemoteAddress defines a descriptor entry with a key of \"remote_address\"\nand a value equal to the client's IP address (from x-forwarded-for)."
Note: This function appends passed data to existing values
obj spec.runtimeSettings.rateLimitService.defaultGlobalRateLimitPolicy.descriptors.entries.genericKey
"GenericKey defines a descriptor entry with a static key and value."
fn spec.runtimeSettings.rateLimitService.defaultGlobalRateLimitPolicy.descriptors.entries.genericKey.withKey
withKey(key)
"Key defines the key of the descriptor entry. If not set, the\nkey is set to \"generic_key\"."
fn spec.runtimeSettings.rateLimitService.defaultGlobalRateLimitPolicy.descriptors.entries.genericKey.withValue
withValue(value)
"Value defines the value of the descriptor entry."
obj spec.runtimeSettings.rateLimitService.defaultGlobalRateLimitPolicy.descriptors.entries.requestHeader
"RequestHeader defines a descriptor entry that's populated only if\na given header is present on the request. The descriptor key is static,\nand the descriptor value is equal to the value of the header."
fn spec.runtimeSettings.rateLimitService.defaultGlobalRateLimitPolicy.descriptors.entries.requestHeader.withDescriptorKey
withDescriptorKey(descriptorKey)
"DescriptorKey defines the key to use on the descriptor entry."
fn spec.runtimeSettings.rateLimitService.defaultGlobalRateLimitPolicy.descriptors.entries.requestHeader.withHeaderName
withHeaderName(headerName)
"HeaderName defines the name of the header to look for on the request."
obj spec.runtimeSettings.rateLimitService.defaultGlobalRateLimitPolicy.descriptors.entries.requestHeaderValueMatch
"RequestHeaderValueMatch defines a descriptor entry that's populated\nif the request's headers match a set of 1+ match criteria. The\ndescriptor key is \"header_match\", and the descriptor value is static."
fn spec.runtimeSettings.rateLimitService.defaultGlobalRateLimitPolicy.descriptors.entries.requestHeaderValueMatch.withExpectMatch
withExpectMatch(expectMatch)
"ExpectMatch defines whether the request must positively match the match\ncriteria in order to generate a descriptor entry (i.e. true), or not\nmatch the match criteria in order to generate a descriptor entry (i.e. false).\nThe default is true."
fn spec.runtimeSettings.rateLimitService.defaultGlobalRateLimitPolicy.descriptors.entries.requestHeaderValueMatch.withHeaders
withHeaders(headers)
"Headers is a list of 1+ match criteria to apply against the request\nto determine whether to populate the descriptor entry or not."
fn spec.runtimeSettings.rateLimitService.defaultGlobalRateLimitPolicy.descriptors.entries.requestHeaderValueMatch.withHeadersMixin
withHeadersMixin(headers)
"Headers is a list of 1+ match criteria to apply against the request\nto determine whether to populate the descriptor entry or not."
Note: This function appends passed data to existing values
fn spec.runtimeSettings.rateLimitService.defaultGlobalRateLimitPolicy.descriptors.entries.requestHeaderValueMatch.withValue
withValue(value)
"Value defines the value of the descriptor entry."
obj spec.runtimeSettings.rateLimitService.defaultGlobalRateLimitPolicy.descriptors.entries.requestHeaderValueMatch.headers
"Headers is a list of 1+ match criteria to apply against the request\nto determine whether to populate the descriptor entry or not."
fn spec.runtimeSettings.rateLimitService.defaultGlobalRateLimitPolicy.descriptors.entries.requestHeaderValueMatch.headers.withContains
withContains(contains)
"Contains specifies a substring that must be present in\nthe header value."
fn spec.runtimeSettings.rateLimitService.defaultGlobalRateLimitPolicy.descriptors.entries.requestHeaderValueMatch.headers.withExact
withExact(exact)
"Exact specifies a string that the header value must be equal to."
fn spec.runtimeSettings.rateLimitService.defaultGlobalRateLimitPolicy.descriptors.entries.requestHeaderValueMatch.headers.withIgnoreCase
withIgnoreCase(ignoreCase)
"IgnoreCase specifies that string matching should be case insensitive.\nNote that this has no effect on the Regex parameter."
fn spec.runtimeSettings.rateLimitService.defaultGlobalRateLimitPolicy.descriptors.entries.requestHeaderValueMatch.headers.withName
withName(name)
"Name is the name of the header to match against. Name is required.\nHeader names are case insensitive."
fn spec.runtimeSettings.rateLimitService.defaultGlobalRateLimitPolicy.descriptors.entries.requestHeaderValueMatch.headers.withNotcontains
withNotcontains(notcontains)
"NotContains specifies a substring that must not be present\nin the header value."
fn spec.runtimeSettings.rateLimitService.defaultGlobalRateLimitPolicy.descriptors.entries.requestHeaderValueMatch.headers.withNotexact
withNotexact(notexact)
"NoExact specifies a string that the header value must not be\nequal to. The condition is true if the header has any other value."
fn spec.runtimeSettings.rateLimitService.defaultGlobalRateLimitPolicy.descriptors.entries.requestHeaderValueMatch.headers.withNotpresent
withNotpresent(notpresent)
"NotPresent specifies that condition is true when the named header\nis not present. Note that setting NotPresent to false does not\nmake the condition true if the named header is present."
fn spec.runtimeSettings.rateLimitService.defaultGlobalRateLimitPolicy.descriptors.entries.requestHeaderValueMatch.headers.withPresent
withPresent(present)
"Present specifies that condition is true when the named header\nis present, regardless of its value. Note that setting Present\nto false does not make the condition true if the named header\nis absent."
fn spec.runtimeSettings.rateLimitService.defaultGlobalRateLimitPolicy.descriptors.entries.requestHeaderValueMatch.headers.withRegex
withRegex(regex)
"Regex specifies a regular expression pattern that must match the header\nvalue."
fn spec.runtimeSettings.rateLimitService.defaultGlobalRateLimitPolicy.descriptors.entries.requestHeaderValueMatch.headers.withTreatMissingAsEmpty
withTreatMissingAsEmpty(treatMissingAsEmpty)
"TreatMissingAsEmpty specifies if the header match rule specified header\ndoes not exist, this header value will be treated as empty. Defaults to false.\nUnlike the underlying Envoy implementation this is only supported for\nnegative matches (e.g. NotContains, NotExact)."
obj spec.runtimeSettings.rateLimitService.extensionService
"ExtensionService identifies the extension service defining the RLS."
fn spec.runtimeSettings.rateLimitService.extensionService.withName
withName(name)
fn spec.runtimeSettings.rateLimitService.extensionService.withNamespace
withNamespace(namespace)
obj spec.runtimeSettings.tracing
"Tracing defines properties for exporting trace data to OpenTelemetry."
fn spec.runtimeSettings.tracing.withCustomTags
withCustomTags(customTags)
"CustomTags defines a list of custom tags with unique tag name."
fn spec.runtimeSettings.tracing.withCustomTagsMixin
withCustomTagsMixin(customTags)
"CustomTags defines a list of custom tags with unique tag name."
Note: This function appends passed data to existing values
fn spec.runtimeSettings.tracing.withIncludePodDetail
withIncludePodDetail(includePodDetail)
"IncludePodDetail defines a flag.\nIf it is true, contour will add the pod name and namespace to the span of the trace.\nthe default is true.\nNote: The Envoy pods MUST have the HOSTNAME and CONTOUR_NAMESPACE environment variables set for this to work properly."
fn spec.runtimeSettings.tracing.withMaxPathTagLength
withMaxPathTagLength(maxPathTagLength)
"MaxPathTagLength defines maximum length of the request path\nto extract and include in the HttpUrl tag.\ncontour's default is 256."
fn spec.runtimeSettings.tracing.withOverallSampling
withOverallSampling(overallSampling)
"OverallSampling defines the sampling rate of trace data.\ncontour's default is 100."
fn spec.runtimeSettings.tracing.withServiceName
withServiceName(serviceName)
"ServiceName defines the name for the service.\ncontour's default is contour."
obj spec.runtimeSettings.tracing.customTags
"CustomTags defines a list of custom tags with unique tag name."
fn spec.runtimeSettings.tracing.customTags.withLiteral
withLiteral(literal)
"Literal is a static custom tag value.\nPrecisely one of Literal, RequestHeaderName must be set."
fn spec.runtimeSettings.tracing.customTags.withRequestHeaderName
withRequestHeaderName(requestHeaderName)
"RequestHeaderName indicates which request header\nthe label value is obtained from.\nPrecisely one of Literal, RequestHeaderName must be set."
fn spec.runtimeSettings.tracing.customTags.withTagName
withTagName(tagName)
"TagName is the unique name of the custom tag."
obj spec.runtimeSettings.tracing.extensionService
"ExtensionService identifies the extension service defining the otel-collector."
fn spec.runtimeSettings.tracing.extensionService.withName
withName(name)
fn spec.runtimeSettings.tracing.extensionService.withNamespace
withNamespace(namespace)
obj spec.runtimeSettings.xdsServer
"XDSServer contains parameters for the xDS server."
fn spec.runtimeSettings.xdsServer.withAddress
withAddress(address)
"Defines the xDS gRPC API address which Contour will serve.\nContour's default is \"0.0.0.0\"."
fn spec.runtimeSettings.xdsServer.withPort
withPort(port)
"Defines the xDS gRPC API port which Contour will serve.\nContour's default is 8001."
fn spec.runtimeSettings.xdsServer.withType
withType(type)
"Defines the XDSServer to use for contour serve
.\nValues: contour
(default), envoy
.\nOther values will produce an error."
obj spec.runtimeSettings.xdsServer.tls
"TLS holds TLS file config details.\nContour's default is { caFile: \"/certs/ca.crt\", certFile: \"/certs/tls.cert\", keyFile: \"/certs/tls.key\", insecure: false }."
fn spec.runtimeSettings.xdsServer.tls.withCaFile
withCaFile(caFile)
"CA filename."
fn spec.runtimeSettings.xdsServer.tls.withCertFile
withCertFile(certFile)
"Client certificate filename."
fn spec.runtimeSettings.xdsServer.tls.withInsecure
withInsecure(insecure)
"Allow serving the xDS gRPC API without TLS."
fn spec.runtimeSettings.xdsServer.tls.withKeyFile
withKeyFile(keyFile)
"Client key filename."