Created
June 11, 2021 13:36
-
-
Save perithompson/c77f83336d87efb2e32ae038194386cb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: tanzu-system-ingress | |
annotations: | |
kapp.k14s.io/delete-strategy: orphan | |
--- | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: contour | |
namespace: tanzu-system-ingress | |
--- | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: envoy | |
namespace: tanzu-system-ingress | |
--- | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: contour | |
namespace: tanzu-system-ingress | |
annotations: | |
kapp.k14s.io/versioned: "" | |
data: | |
contour.yaml: | | |
disablePermitInsecure: false | |
tls: | |
fallback-certificate: {} | |
leaderelection: | |
configmap-name: leader-elect | |
configmap-namespace: tanzu-system-ingress | |
accesslog-format: envoy | |
--- | |
apiVersion: apiextensions.k8s.io/v1beta1 | |
kind: CustomResourceDefinition | |
metadata: | |
annotations: | |
controller-gen.kubebuilder.io/version: v0.2.9 | |
creationTimestamp: null | |
name: httpproxies.projectcontour.io | |
spec: | |
additionalPrinterColumns: | |
- JSONPath: .spec.virtualhost.fqdn | |
description: Fully qualified domain name | |
name: FQDN | |
type: string | |
- JSONPath: .spec.virtualhost.tls.secretName | |
description: Secret with TLS credentials | |
name: TLS Secret | |
type: string | |
- JSONPath: .status.currentStatus | |
description: The current status of the HTTPProxy | |
name: Status | |
type: string | |
- JSONPath: .status.description | |
description: Description of the current status | |
name: Status Description | |
type: string | |
group: projectcontour.io | |
names: | |
kind: HTTPProxy | |
listKind: HTTPProxyList | |
plural: httpproxies | |
shortNames: | |
- proxy | |
- proxies | |
singular: httpproxy | |
scope: Namespaced | |
subresources: | |
status: {} | |
validation: | |
openAPIV3Schema: | |
description: HTTPProxy is an Ingress CRD specification. | |
properties: | |
apiVersion: | |
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' | |
type: string | |
kind: | |
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' | |
type: string | |
metadata: | |
type: object | |
spec: | |
description: HTTPProxySpec defines the spec of the CRD. | |
properties: | |
includes: | |
description: Includes allow for specific routing configuration to be included from another HTTPProxy, possibly in another namespace. | |
items: | |
description: Include describes a set of policies that can be applied to an HTTPProxy in a namespace. | |
properties: | |
conditions: | |
description: 'Conditions are a set of rules that are applied to included HTTPProxies. In effect, they are added onto the Conditions of included HTTPProxy Route structs. When applied, they are merged using AND, with one exception: There can be only one Prefix MatchCondition per Conditions slice. More than one Prefix, or contradictory Conditions, will make the include invalid.' | |
items: | |
description: MatchCondition are a general holder for matching rules for HTTPProxies. One of Prefix or Header must be provided. | |
properties: | |
header: | |
description: Header specifies the header condition to match. | |
properties: | |
contains: | |
description: Contains specifies a substring that must be present in the header value. | |
type: string | |
exact: | |
description: Exact specifies a string that the header value must be equal to. | |
type: string | |
name: | |
description: Name is the name of the header to match against. Name is required. Header names are case insensitive. | |
type: string | |
notcontains: | |
description: NotContains specifies a substring that must not be present in the header value. | |
type: string | |
notexact: | |
description: NoExact specifies a string that the header value must not be equal to. The condition is true if the header has any other value. | |
type: string | |
present: | |
description: Present specifies that condition is true when the named header is present, regardless of its value. Note that setting Present to false does not make the condition true if the named header is absent. | |
type: boolean | |
required: | |
- name | |
type: object | |
prefix: | |
description: Prefix defines a prefix match for a request. | |
type: string | |
type: object | |
type: array | |
name: | |
description: Name of the HTTPProxy | |
type: string | |
namespace: | |
description: Namespace of the HTTPProxy to include. Defaults to the current namespace if not supplied. | |
type: string | |
required: | |
- name | |
type: object | |
type: array | |
routes: | |
description: Routes are the ingress routes. If TCPProxy is present, Routes is ignored. | |
items: | |
description: Route contains the set of routes for a virtual host. | |
properties: | |
conditions: | |
description: 'Conditions are a set of rules that are applied to a Route. When applied, they are merged using AND, with one exception: There can be only one Prefix MatchCondition per Conditions slice. More than one Prefix, or contradictory Conditions, will make the route invalid.' | |
items: | |
description: MatchCondition are a general holder for matching rules for HTTPProxies. One of Prefix or Header must be provided. | |
properties: | |
header: | |
description: Header specifies the header condition to match. | |
properties: | |
contains: | |
description: Contains specifies a substring that must be present in the header value. | |
type: string | |
exact: | |
description: Exact specifies a string that the header value must be equal to. | |
type: string | |
name: | |
description: Name is the name of the header to match against. Name is required. Header names are case insensitive. | |
type: string | |
notcontains: | |
description: NotContains specifies a substring that must not be present in the header value. | |
type: string | |
notexact: | |
description: NoExact specifies a string that the header value must not be equal to. The condition is true if the header has any other value. | |
type: string | |
present: | |
description: Present specifies that condition is true when the named header is present, regardless of its value. Note that setting Present to false does not make the condition true if the named header is absent. | |
type: boolean | |
required: | |
- name | |
type: object | |
prefix: | |
description: Prefix defines a prefix match for a request. | |
type: string | |
type: object | |
type: array | |
enableWebsockets: | |
description: Enables websocket support for the route. | |
type: boolean | |
healthCheckPolicy: | |
description: The health check policy for this route. | |
properties: | |
healthyThresholdCount: | |
description: The number of healthy health checks required before a host is marked healthy | |
format: int64 | |
minimum: 0 | |
type: integer | |
host: | |
description: The value of the host header in the HTTP health check request. If left empty (default value), the name "contour-envoy-healthcheck" will be used. | |
type: string | |
intervalSeconds: | |
description: The interval (seconds) between health checks | |
format: int64 | |
type: integer | |
path: | |
description: HTTP endpoint used to perform health checks on upstream service | |
type: string | |
timeoutSeconds: | |
description: The time to wait (seconds) for a health check response | |
format: int64 | |
type: integer | |
unhealthyThresholdCount: | |
description: The number of unhealthy health checks required before a host is marked unhealthy | |
format: int64 | |
minimum: 0 | |
type: integer | |
required: | |
- path | |
type: object | |
loadBalancerPolicy: | |
description: The load balancing policy for this route. | |
properties: | |
strategy: | |
description: Strategy specifies the policy used to balance requests across the pool of backend pods. Valid policy names are `Random`, `RoundRobin`, `WeightedLeastRequest`, `Random` and `Cookie`. If an unknown strategy name is specified or no policy is supplied, the default `RoundRobin` policy is used. | |
type: string | |
type: object | |
pathRewritePolicy: | |
description: The policy for rewriting the path of the request URL after the request has been routed to a Service. | |
properties: | |
replacePrefix: | |
description: ReplacePrefix describes how the path prefix should be replaced. | |
items: | |
description: ReplacePrefix describes a path prefix replacement. | |
properties: | |
prefix: | |
description: "Prefix specifies the URL path prefix to be replaced. \n If Prefix is specified, it must exactly match the MatchCondition prefix that is rendered by the chain of including HTTPProxies and only that path prefix will be replaced by Replacement. This allows HTTPProxies that are included through multiple roots to only replace specific path prefixes, leaving others unmodified. \n If Prefix is not specified, all routing prefixes rendered by the include chain will be replaced." | |
minLength: 1 | |
type: string | |
replacement: | |
description: Replacement is the string that the routing path prefix will be replaced with. This must not be empty. | |
minLength: 1 | |
type: string | |
required: | |
- replacement | |
type: object | |
type: array | |
type: object | |
permitInsecure: | |
description: Allow this path to respond to insecure requests over HTTP which are normally not permitted when a `virtualhost.tls` block is present. | |
type: boolean | |
requestHeadersPolicy: | |
description: The policy for managing request headers during proxying | |
properties: | |
remove: | |
description: Remove specifies a list of HTTP header names to remove. | |
items: | |
type: string | |
type: array | |
set: | |
description: Set specifies a list of HTTP header values that will be set in the HTTP header. If the header does not exist it will be added, otherwise it will be overwritten with the new value. | |
items: | |
description: HeaderValue represents a header name/value pair | |
properties: | |
name: | |
description: Name represents a key of a header | |
minLength: 1 | |
type: string | |
value: | |
description: Value represents the value of a header specified by a key | |
minLength: 1 | |
type: string | |
required: | |
- name | |
- value | |
type: object | |
type: array | |
type: object | |
responseHeadersPolicy: | |
description: The policy for managing response headers during proxying | |
properties: | |
remove: | |
description: Remove specifies a list of HTTP header names to remove. | |
items: | |
type: string | |
type: array | |
set: | |
description: Set specifies a list of HTTP header values that will be set in the HTTP header. If the header does not exist it will be added, otherwise it will be overwritten with the new value. | |
items: | |
description: HeaderValue represents a header name/value pair | |
properties: | |
name: | |
description: Name represents a key of a header | |
minLength: 1 | |
type: string | |
value: | |
description: Value represents the value of a header specified by a key | |
minLength: 1 | |
type: string | |
required: | |
- name | |
- value | |
type: object | |
type: array | |
type: object | |
retryPolicy: | |
description: The retry policy for this route. | |
properties: | |
count: | |
description: NumRetries is maximum allowed number of retries. If not supplied, the number of retries is one. | |
format: int64 | |
minimum: 0 | |
type: integer | |
perTryTimeout: | |
description: PerTryTimeout specifies the timeout per retry attempt. Ignored if NumRetries is not supplied. | |
type: string | |
retriableStatusCodes: | |
description: "RetriableStatusCodes specifies the HTTP status codes that should be retried. \n This field is only respected when you include `retriable-status-codes` in the `RetryOn` field." | |
items: | |
format: int32 | |
type: integer | |
type: array | |
retryOn: | |
description: "RetryOn specifies the conditions on which to retry a request. \n Supported [HTTP conditions](https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/router_filter#x-envoy-retry-on): \n - `5xx` - `gateway-error` - `reset` - `connect-failure` - `retriable-4xx` - `refused-stream` - `retriable-status-codes` - `retriable-headers` \n Supported [gRPC conditions](https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/router_filter#x-envoy-retry-grpc-on): \n - `cancelled` - `deadline-exceeded` - `internal` - `resource-exhausted` - `unavailable`" | |
items: | |
description: RetryOn is a string type alias with validation to ensure that the value is valid. | |
enum: | |
- 5xx | |
- gateway-error | |
- reset | |
- connect-failure | |
- retriable-4xx | |
- refused-stream | |
- retriable-status-codes | |
- retriable-headers | |
- cancelled | |
- deadline-exceeded | |
- internal | |
- resource-exhausted | |
- unavailable | |
type: string | |
type: array | |
type: object | |
services: | |
description: Services are the services to proxy traffic. | |
items: | |
description: Service defines an Kubernetes Service to proxy traffic. | |
properties: | |
mirror: | |
description: If Mirror is true the Service will receive a read only mirror of the traffic for this route. | |
type: boolean | |
name: | |
description: Name is the name of Kubernetes service to proxy traffic. Names defined here will be used to look up corresponding endpoints which contain the ips to route. | |
type: string | |
port: | |
description: Port (defined as Integer) to proxy traffic to since a service can have multiple defined. | |
exclusiveMaximum: true | |
maximum: 65536 | |
minimum: 1 | |
type: integer | |
protocol: | |
description: Protocol may be used to specify (or override) the protocol used to reach this Service. Values may be tls, h2, h2c. If omitted, protocol-selection falls back on Service annotations. | |
enum: | |
- h2 | |
- h2c | |
- tls | |
type: string | |
requestHeadersPolicy: | |
description: The policy for managing request headers during proxying | |
properties: | |
remove: | |
description: Remove specifies a list of HTTP header names to remove. | |
items: | |
type: string | |
type: array | |
set: | |
description: Set specifies a list of HTTP header values that will be set in the HTTP header. If the header does not exist it will be added, otherwise it will be overwritten with the new value. | |
items: | |
description: HeaderValue represents a header name/value pair | |
properties: | |
name: | |
description: Name represents a key of a header | |
minLength: 1 | |
type: string | |
value: | |
description: Value represents the value of a header specified by a key | |
minLength: 1 | |
type: string | |
required: | |
- name | |
- value | |
type: object | |
type: array | |
type: object | |
responseHeadersPolicy: | |
description: The policy for managing response headers during proxying | |
properties: | |
remove: | |
description: Remove specifies a list of HTTP header names to remove. | |
items: | |
type: string | |
type: array | |
set: | |
description: Set specifies a list of HTTP header values that will be set in the HTTP header. If the header does not exist it will be added, otherwise it will be overwritten with the new value. | |
items: | |
description: HeaderValue represents a header name/value pair | |
properties: | |
name: | |
description: Name represents a key of a header | |
minLength: 1 | |
type: string | |
value: | |
description: Value represents the value of a header specified by a key | |
minLength: 1 | |
type: string | |
required: | |
- name | |
- value | |
type: object | |
type: array | |
type: object | |
validation: | |
description: UpstreamValidation defines how to verify the backend service's certificate | |
properties: | |
caSecret: | |
description: Name of the Kubernetes secret be used to validate the certificate presented by the backend | |
type: string | |
subjectName: | |
description: Key which is expected to be present in the 'subjectAltName' of the presented certificate | |
type: string | |
required: | |
- caSecret | |
- subjectName | |
type: object | |
weight: | |
description: Weight defines percentage of traffic to balance traffic | |
format: int64 | |
minimum: 0 | |
type: integer | |
required: | |
- name | |
- port | |
type: object | |
minItems: 1 | |
type: array | |
timeoutPolicy: | |
description: The timeout policy for this route. | |
properties: | |
idle: | |
description: Timeout after which, if there are no active requests for this route, the connection between Envoy and the backend or Envoy and the external client will be closed. If not specified, there is no per-route idle timeout, though a connection manager-wide stream_idle_timeout default of 5m still applies. | |
type: string | |
response: | |
description: Timeout for receiving a response from the server after processing a request from client. If not supplied, Envoy's default value of 15s applies. | |
type: string | |
type: object | |
required: | |
- services | |
type: object | |
type: array | |
tcpproxy: | |
description: TCPProxy holds TCP proxy information. | |
properties: | |
healthCheckPolicy: | |
description: The health check policy for this tcp proxy | |
properties: | |
healthyThresholdCount: | |
description: The number of healthy health checks required before a host is marked healthy | |
format: int32 | |
type: integer | |
intervalSeconds: | |
description: The interval (seconds) between health checks | |
format: int64 | |
type: integer | |
timeoutSeconds: | |
description: The time to wait (seconds) for a health check response | |
format: int64 | |
type: integer | |
unhealthyThresholdCount: | |
description: The number of unhealthy health checks required before a host is marked unhealthy | |
format: int32 | |
type: integer | |
type: object | |
include: | |
description: Include specifies that this tcpproxy should be delegated to another HTTPProxy. | |
properties: | |
name: | |
description: Name of the child HTTPProxy | |
type: string | |
namespace: | |
description: Namespace of the HTTPProxy to include. Defaults to the current namespace if not supplied. | |
type: string | |
required: | |
- name | |
type: object | |
includes: | |
description: "IncludesDeprecated allow for specific routing configuration to be appended to another HTTPProxy in another namespace. \n Exists due to a mistake when developing HTTPProxy and the field was marked plural when it should have been singular. This field should stay to not break backwards compatibility to v1 users." | |
properties: | |
name: | |
description: Name of the child HTTPProxy | |
type: string | |
namespace: | |
description: Namespace of the HTTPProxy to include. Defaults to the current namespace if not supplied. | |
type: string | |
required: | |
- name | |
type: object | |
loadBalancerPolicy: | |
description: The load balancing policy for the backend services. | |
properties: | |
strategy: | |
description: Strategy specifies the policy used to balance requests across the pool of backend pods. Valid policy names are `Random`, `RoundRobin`, `WeightedLeastRequest`, `Random` and `Cookie`. If an unknown strategy name is specified or no policy is supplied, the default `RoundRobin` policy is used. | |
type: string | |
type: object | |
services: | |
description: Services are the services to proxy traffic | |
items: | |
description: Service defines an Kubernetes Service to proxy traffic. | |
properties: | |
mirror: | |
description: If Mirror is true the Service will receive a read only mirror of the traffic for this route. | |
type: boolean | |
name: | |
description: Name is the name of Kubernetes service to proxy traffic. Names defined here will be used to look up corresponding endpoints which contain the ips to route. | |
type: string | |
port: | |
description: Port (defined as Integer) to proxy traffic to since a service can have multiple defined. | |
exclusiveMaximum: true | |
maximum: 65536 | |
minimum: 1 | |
type: integer | |
protocol: | |
description: Protocol may be used to specify (or override) the protocol used to reach this Service. Values may be tls, h2, h2c. If omitted, protocol-selection falls back on Service annotations. | |
enum: | |
- h2 | |
- h2c | |
- tls | |
type: string | |
requestHeadersPolicy: | |
description: The policy for managing request headers during proxying | |
properties: | |
remove: | |
description: Remove specifies a list of HTTP header names to remove. | |
items: | |
type: string | |
type: array | |
set: | |
description: Set specifies a list of HTTP header values that will be set in the HTTP header. If the header does not exist it will be added, otherwise it will be overwritten with the new value. | |
items: | |
description: HeaderValue represents a header name/value pair | |
properties: | |
name: | |
description: Name represents a key of a header | |
minLength: 1 | |
type: string | |
value: | |
description: Value represents the value of a header specified by a key | |
minLength: 1 | |
type: string | |
required: | |
- name | |
- value | |
type: object | |
type: array | |
type: object | |
responseHeadersPolicy: | |
description: The policy for managing response headers during proxying | |
properties: | |
remove: | |
description: Remove specifies a list of HTTP header names to remove. | |
items: | |
type: string | |
type: array | |
set: | |
description: Set specifies a list of HTTP header values that will be set in the HTTP header. If the header does not exist it will be added, otherwise it will be overwritten with the new value. | |
items: | |
description: HeaderValue represents a header name/value pair | |
properties: | |
name: | |
description: Name represents a key of a header | |
minLength: 1 | |
type: string | |
value: | |
description: Value represents the value of a header specified by a key | |
minLength: 1 | |
type: string | |
required: | |
- name | |
- value | |
type: object | |
type: array | |
type: object | |
validation: | |
description: UpstreamValidation defines how to verify the backend service's certificate | |
properties: | |
caSecret: | |
description: Name of the Kubernetes secret be used to validate the certificate presented by the backend | |
type: string | |
subjectName: | |
description: Key which is expected to be present in the 'subjectAltName' of the presented certificate | |
type: string | |
required: | |
- caSecret | |
- subjectName | |
type: object | |
weight: | |
description: Weight defines percentage of traffic to balance traffic | |
format: int64 | |
minimum: 0 | |
type: integer | |
required: | |
- name | |
- port | |
type: object | |
type: array | |
type: object | |
virtualhost: | |
description: Virtualhost appears at most once. If it is present, the object is considered to be a "root" HTTPProxy. | |
properties: | |
fqdn: | |
description: The fully qualified domain name of the root of the ingress tree all leaves of the DAG rooted at this object relate to the fqdn. | |
type: string | |
tls: | |
description: If present describes tls properties. The SNI names that will be matched on are described in fqdn, the tls.secretName secret must contain a certificate that itself contains a name that matches the FQDN. | |
properties: | |
clientValidation: | |
description: "ClientValidation defines how to verify the client certificate when an external client establishes a TLS connection to Envoy. \n This setting: \n 1. Enables TLS client certificate validation. 2. Requires clients to present a TLS certificate (i.e. not optional validation). 3. Specifies how the client certificate will be validated." | |
properties: | |
caSecret: | |
description: Name of a Kubernetes secret that contains a CA certificate bundle. The client certificate must validate against the certificates in the bundle. | |
minLength: 1 | |
type: string | |
required: | |
- caSecret | |
type: object | |
enableFallbackCertificate: | |
description: EnableFallbackCertificate defines if the vhost should allow a default certificate to be applied which handles all requests which don't match the SNI defined in this vhost. | |
type: boolean | |
minimumProtocolVersion: | |
description: Minimum TLS version this vhost should negotiate | |
type: string | |
passthrough: | |
description: Passthrough defines whether the encrypted TLS handshake will be passed through to the backing cluster. Either Passthrough or SecretName must be specified, but not both. | |
type: boolean | |
secretName: | |
description: SecretName is the name of a TLS secret in the current namespace. Either SecretName or Passthrough must be specified, but not both. If specified, the named secret must contain a matching certificate for the virtual host's FQDN. | |
type: string | |
type: object | |
required: | |
- fqdn | |
type: object | |
type: object | |
status: | |
description: Status is a container for computed information about the HTTPProxy. | |
properties: | |
conditions: | |
description: "Conditions contains information about the current status of the HTTPProxy, in an upstream-friendly container. \n Contour will update a single condition, `Valid`, that is in normal-true polarity. That is, when `currentStatus` is `valid`, the `Valid` condition will be `status: true`, and vice versa. \n Contour will leave untouched any other Conditions set in this block, in case some other controller wants to add a Condition. \n If you are another controller owner and wish to add a condition, you *should* namespace your condition with a label, like `controller.domain.com/ConditionName`." | |
items: | |
description: "DetailedCondition is an extension of the normal Kubernetes conditions, with two extra fields to hold sub-conditions, which provide more detailed reasons for the state (True or False) of the condition. \n `errors` holds information about sub-conditions which are fatal to that condition and render its state False. \n `warnings` holds information about sub-conditions which are not fatal to that condition and do not force the state to be False. \n Remember that Conditions have a type, a status, and a reason. \n The type is the type of the condition, the most important one in this CRD set is `Valid`. \n In the case of `Valid`, `status: true` means that the object is has been ingested into Contour with no errors. `warnings` may still be present, and will be indicated in the Reason field. \n `Valid`, `status: false` means that the object has had one or more fatal errors during processing into Contour. The details of the errors will be present under the `errors` field. \n There should never be subconditions under `errors` when `status` is `true`." | |
properties: | |
errors: | |
description: "Errors contains a slice of relevant error subconditions for this object. \n Subconditions are expected to appear when relevant (when there is a error), and disappear when not relevant. An empty slice here indicates no errors." | |
items: | |
description: "SubCondition is a Condition-like type intended for use as a subcondition inside a DetailedCondition. \n It contains a subset of the Condition fields. \n It is intended for warnings and errors, so `type` names should use abnormal-true polarity, that is, they should be of the form \"ErrorPresent: true\". \n The expected lifecycle for these errors is that they should only be present when the error or warning is, and should be removed when they are not relevant." | |
properties: | |
message: | |
description: "Message is a human readable message indicating details about the transition. \n This may be an empty string." | |
maxLength: 32768 | |
type: string | |
reason: | |
description: "Reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. \n The value should be a CamelCase string. \n This field may not be empty." | |
maxLength: 1024 | |
minLength: 1 | |
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ | |
type: string | |
status: | |
description: Status of the condition, one of True, False, Unknown. | |
enum: | |
- "True" | |
- "False" | |
- Unknown | |
type: string | |
type: | |
description: "Type of condition in `CamelCase` or in `foo.example.com/CamelCase`. \n This must be in abnormal-true polarity, that is, `ErrorFound` or `controller.io/ErrorFound`. \n The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)" | |
maxLength: 316 | |
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ | |
type: string | |
required: | |
- message | |
- reason | |
- status | |
- type | |
type: object | |
type: array | |
lastTransitionTime: | |
description: "lastTransitionTime is the last time the condition transitioned from one status to another. \n This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable." | |
format: date-time | |
type: string | |
message: | |
description: "message is a human readable message indicating details about the transition. \n This may be an empty string." | |
maxLength: 32768 | |
type: string | |
observedGeneration: | |
description: "observedGeneration represents the .metadata.generation that the condition was set based upon. \n For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance." | |
format: int64 | |
minimum: 0 | |
type: integer | |
reason: | |
description: "Reason contains a programmatic identifier indicating the reason for the condition's last transition. \n Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. \n The value should be a CamelCase string. \n This field may not be empty." | |
maxLength: 1024 | |
minLength: 1 | |
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ | |
type: string | |
status: | |
description: status of the condition, one of True, False, Unknown. | |
enum: | |
- "True" | |
- "False" | |
- Unknown | |
type: string | |
type: | |
description: "Type of condition in CamelCase or in foo.example.com/CamelCase. \n Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be useful (see .node.status.conditions), the ability to deconflict is important. \n The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)" | |
maxLength: 316 | |
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ | |
type: string | |
warnings: | |
description: "Warnings contains a slice of relevant warning subconditions for this object. \n Subconditions are expected to appear when relevant (when there is a warning), and disappear when not relevant. An empty slice here indicates no warnings." | |
items: | |
description: "SubCondition is a Condition-like type intended for use as a subcondition inside a DetailedCondition. \n It contains a subset of the Condition fields. \n It is intended for warnings and errors, so `type` names should use abnormal-true polarity, that is, they should be of the form \"ErrorPresent: true\". \n The expected lifecycle for these errors is that they should only be present when the error or warning is, and should be removed when they are not relevant." | |
properties: | |
message: | |
description: "Message is a human readable message indicating details about the transition. \n This may be an empty string." | |
maxLength: 32768 | |
type: string | |
reason: | |
description: "Reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. \n The value should be a CamelCase string. \n This field may not be empty." | |
maxLength: 1024 | |
minLength: 1 | |
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ | |
type: string | |
status: | |
description: Status of the condition, one of True, False, Unknown. | |
enum: | |
- "True" | |
- "False" | |
- Unknown | |
type: string | |
type: | |
description: "Type of condition in `CamelCase` or in `foo.example.com/CamelCase`. \n This must be in abnormal-true polarity, that is, `ErrorFound` or `controller.io/ErrorFound`. \n The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)" | |
maxLength: 316 | |
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ | |
type: string | |
required: | |
- message | |
- reason | |
- status | |
- type | |
type: object | |
type: array | |
required: | |
- lastTransitionTime | |
- message | |
- reason | |
- status | |
- type | |
type: object | |
type: array | |
x-kubernetes-list-map-keys: | |
- type | |
x-kubernetes-list-type: map | |
currentStatus: | |
type: string | |
description: | |
type: string | |
loadBalancer: | |
description: LoadBalancer contains the current status of the load balancer. | |
properties: | |
ingress: | |
description: Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. | |
items: | |
description: 'LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.' | |
properties: | |
hostname: | |
description: Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) | |
type: string | |
ip: | |
description: IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) | |
type: string | |
type: object | |
type: array | |
type: object | |
type: object | |
required: | |
- metadata | |
- spec | |
type: object | |
version: v1 | |
versions: | |
- name: v1 | |
served: true | |
storage: true | |
status: | |
acceptedNames: | |
kind: "" | |
plural: "" | |
conditions: [] | |
storedVersions: [] | |
--- | |
apiVersion: apiextensions.k8s.io/v1beta1 | |
kind: CustomResourceDefinition | |
metadata: | |
annotations: | |
controller-gen.kubebuilder.io/version: v0.2.9 | |
creationTimestamp: null | |
name: tlscertificatedelegations.projectcontour.io | |
spec: | |
group: projectcontour.io | |
names: | |
kind: TLSCertificateDelegation | |
listKind: TLSCertificateDelegationList | |
plural: tlscertificatedelegations | |
shortNames: | |
- tlscerts | |
singular: tlscertificatedelegation | |
scope: Namespaced | |
subresources: | |
status: {} | |
validation: | |
openAPIV3Schema: | |
description: TLSCertificateDelegation is an TLS Certificate Delegation CRD specificiation. See design/tls-certificate-delegation.md for details. | |
properties: | |
apiVersion: | |
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' | |
type: string | |
kind: | |
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' | |
type: string | |
metadata: | |
type: object | |
spec: | |
description: TLSCertificateDelegationSpec defines the spec of the CRD | |
properties: | |
delegations: | |
items: | |
description: CertificateDelegation maps the authority to reference a secret in the current namespace to a set of namespaces. | |
properties: | |
secretName: | |
description: required, the name of a secret in the current namespace. | |
type: string | |
targetNamespaces: | |
description: required, the namespaces the authority to reference the the secret will be delegated to. If TargetNamespaces is nil or empty, the CertificateDelegation' is ignored. If the TargetNamespace list contains the character, "*" the secret will be delegated to all namespaces. | |
items: | |
type: string | |
type: array | |
required: | |
- secretName | |
- targetNamespaces | |
type: object | |
type: array | |
required: | |
- delegations | |
type: object | |
status: | |
description: TLSCertificateDelegationStatus allows for the status of the delegation to be presented to the user. | |
properties: | |
conditions: | |
description: "Conditions contains information about the current status of the HTTPProxy, in an upstream-friendly container. \n Contour will update a single condition, `Valid`, that is in normal-true polarity. That is, when `currentStatus` is `valid`, the `Valid` condition will be `status: true`, and vice versa. \n Contour will leave untouched any other Conditions set in this block, in case some other controller wants to add a Condition. \n If you are another controller owner and wish to add a condition, you *should* namespace your condition with a label, like `controller.domain.com\\ConditionName`." | |
items: | |
description: "DetailedCondition is an extension of the normal Kubernetes conditions, with two extra fields to hold sub-conditions, which provide more detailed reasons for the state (True or False) of the condition. \n `errors` holds information about sub-conditions which are fatal to that condition and render its state False. \n `warnings` holds information about sub-conditions which are not fatal to that condition and do not force the state to be False. \n Remember that Conditions have a type, a status, and a reason. \n The type is the type of the condition, the most important one in this CRD set is `Valid`. \n In the case of `Valid`, `status: true` means that the object is has been ingested into Contour with no errors. `warnings` may still be present, and will be indicated in the Reason field. \n `Valid`, `status: false` means that the object has had one or more fatal errors during processing into Contour. The details of the errors will be present under the `errors` field. \n There should never be subconditions under `errors` when `status` is `true`." | |
properties: | |
errors: | |
description: "Errors contains a slice of relevant error subconditions for this object. \n Subconditions are expected to appear when relevant (when there is a error), and disappear when not relevant. An empty slice here indicates no errors." | |
items: | |
description: "SubCondition is a Condition-like type intended for use as a subcondition inside a DetailedCondition. \n It contains a subset of the Condition fields. \n It is intended for warnings and errors, so `type` names should use abnormal-true polarity, that is, they should be of the form \"ErrorPresent: true\". \n The expected lifecycle for these errors is that they should only be present when the error or warning is, and should be removed when they are not relevant." | |
properties: | |
message: | |
description: "Message is a human readable message indicating details about the transition. \n This may be an empty string." | |
maxLength: 32768 | |
type: string | |
reason: | |
description: "Reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. \n The value should be a CamelCase string. \n This field may not be empty." | |
maxLength: 1024 | |
minLength: 1 | |
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ | |
type: string | |
status: | |
description: Status of the condition, one of True, False, Unknown. | |
enum: | |
- "True" | |
- "False" | |
- Unknown | |
type: string | |
type: | |
description: "Type of condition in `CamelCase` or in `foo.example.com/CamelCase`. \n This must be in abnormal-true polarity, that is, `ErrorFound` or `controller.io/ErrorFound`. \n The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)" | |
maxLength: 316 | |
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ | |
type: string | |
required: | |
- message | |
- reason | |
- status | |
- type | |
type: object | |
type: array | |
lastTransitionTime: | |
description: "lastTransitionTime is the last time the condition transitioned from one status to another. \n This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable." | |
format: date-time | |
type: string | |
message: | |
description: "message is a human readable message indicating details about the transition. \n This may be an empty string." | |
maxLength: 32768 | |
type: string | |
observedGeneration: | |
description: "observedGeneration represents the .metadata.generation that the condition was set based upon. \n For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance." | |
format: int64 | |
minimum: 0 | |
type: integer | |
reason: | |
description: "Reason contains a programmatic identifier indicating the reason for the condition's last transition. \n Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. \n The value should be a CamelCase string. \n This field may not be empty." | |
maxLength: 1024 | |
minLength: 1 | |
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ | |
type: string | |
status: | |
description: status of the condition, one of True, False, Unknown. | |
enum: | |
- "True" | |
- "False" | |
- Unknown | |
type: string | |
type: | |
description: "Type of condition in CamelCase or in foo.example.com/CamelCase. \n Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be useful (see .node.status.conditions), the ability to deconflict is important. \n The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)" | |
maxLength: 316 | |
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ | |
type: string | |
warnings: | |
description: "Warnings contains a slice of relevant warning subconditions for this object. \n Subconditions are expected to appear when relevant (when there is a warning), and disappear when not relevant. An empty slice here indicates no warnings." | |
items: | |
description: "SubCondition is a Condition-like type intended for use as a subcondition inside a DetailedCondition. \n It contains a subset of the Condition fields. \n It is intended for warnings and errors, so `type` names should use abnormal-true polarity, that is, they should be of the form \"ErrorPresent: true\". \n The expected lifecycle for these errors is that they should only be present when the error or warning is, and should be removed when they are not relevant." | |
properties: | |
message: | |
description: "Message is a human readable message indicating details about the transition. \n This may be an empty string." | |
maxLength: 32768 | |
type: string | |
reason: | |
description: "Reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. \n The value should be a CamelCase string. \n This field may not be empty." | |
maxLength: 1024 | |
minLength: 1 | |
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ | |
type: string | |
status: | |
description: Status of the condition, one of True, False, Unknown. | |
enum: | |
- "True" | |
- "False" | |
- Unknown | |
type: string | |
type: | |
description: "Type of condition in `CamelCase` or in `foo.example.com/CamelCase`. \n This must be in abnormal-true polarity, that is, `ErrorFound` or `controller.io/ErrorFound`. \n The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)" | |
maxLength: 316 | |
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ | |
type: string | |
required: | |
- message | |
- reason | |
- status | |
- type | |
type: object | |
type: array | |
required: | |
- lastTransitionTime | |
- message | |
- reason | |
- status | |
- type | |
type: object | |
type: array | |
x-kubernetes-list-map-keys: | |
- type | |
x-kubernetes-list-type: map | |
type: object | |
required: | |
- metadata | |
- spec | |
type: object | |
version: v1 | |
versions: | |
- name: v1 | |
served: true | |
storage: true | |
status: | |
acceptedNames: | |
kind: "" | |
plural: "" | |
conditions: [] | |
storedVersions: [] | |
--- | |
apiVersion: cert-manager.io/v1alpha2 | |
kind: Issuer | |
metadata: | |
name: contour-selfsigned-ca-issuer | |
namespace: tanzu-system-ingress | |
spec: | |
selfSigned: {} | |
--- | |
apiVersion: cert-manager.io/v1alpha2 | |
kind: Certificate | |
metadata: | |
name: contour-ca | |
namespace: tanzu-system-ingress | |
spec: | |
secretName: contour-ca-key-pair | |
duration: 8760h | |
renewBefore: 360h | |
organization: | |
- Project Contour | |
commonName: Contour CA | |
isCA: true | |
keySize: 2048 | |
keyAlgorithm: rsa | |
keyEncoding: pkcs1 | |
usages: | |
- server auth | |
- client auth | |
dnsNames: | |
- contourca | |
ipAddresses: [] | |
issuerRef: | |
name: contour-selfsigned-ca-issuer | |
kind: Issuer | |
group: cert-manager.io | |
--- | |
apiVersion: cert-manager.io/v1alpha2 | |
kind: Issuer | |
metadata: | |
name: contour-ca-issuer | |
namespace: tanzu-system-ingress | |
spec: | |
ca: | |
secretName: contour-ca-key-pair | |
--- | |
apiVersion: cert-manager.io/v1alpha2 | |
kind: Certificate | |
metadata: | |
name: contour-cert | |
namespace: tanzu-system-ingress | |
spec: | |
secretName: contourcert | |
duration: 8760h | |
renewBefore: 360h | |
organization: | |
- Project Contour | |
commonName: contour | |
isCA: false | |
keySize: 2048 | |
keyAlgorithm: rsa | |
keyEncoding: pkcs1 | |
usages: | |
- server auth | |
dnsNames: | |
- contour | |
- contour.tanzu-system-ingress | |
- contour.tanzu-system-ingress.svc | |
- contour.tanzu-system-ingress.svc.cluster.local | |
ipAddresses: [] | |
issuerRef: | |
name: contour-ca-issuer | |
kind: Issuer | |
group: cert-manager.io | |
--- | |
apiVersion: cert-manager.io/v1alpha2 | |
kind: Certificate | |
metadata: | |
name: envoy-cert | |
namespace: tanzu-system-ingress | |
spec: | |
secretName: envoycert | |
duration: 8760h | |
renewBefore: 360h | |
organization: | |
- Project Contour | |
commonName: envoy | |
isCA: false | |
keySize: 2048 | |
keyAlgorithm: rsa | |
keyEncoding: pkcs1 | |
usages: | |
- client auth | |
dnsNames: | |
- envoy | |
- envoy.tanzu-system-ingress | |
- envoy.tanzu-system-ingress.svc | |
- envoy.tanzu-system-ingress.svc.cluster.local | |
ipAddresses: [] | |
issuerRef: | |
name: contour-ca-issuer | |
kind: Issuer | |
group: cert-manager.io | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
kind: ClusterRoleBinding | |
metadata: | |
name: contour | |
roleRef: | |
apiGroup: rbac.authorization.k8s.io | |
kind: ClusterRole | |
name: contour | |
subjects: | |
- kind: ServiceAccount | |
name: contour | |
namespace: tanzu-system-ingress | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: ClusterRole | |
metadata: | |
creationTimestamp: null | |
name: contour | |
rules: | |
- apiGroups: | |
- "" | |
resources: | |
- configmaps | |
verbs: | |
- create | |
- get | |
- update | |
- apiGroups: | |
- "" | |
resources: | |
- endpoints | |
verbs: | |
- get | |
- list | |
- watch | |
- apiGroups: | |
- "" | |
resources: | |
- secrets | |
verbs: | |
- get | |
- list | |
- watch | |
- apiGroups: | |
- "" | |
resources: | |
- services | |
verbs: | |
- get | |
- list | |
- watch | |
- apiGroups: | |
- networking.k8s.io | |
resources: | |
- gatewayclasses | |
- gateways | |
- httproutes | |
- tcproutes | |
verbs: | |
- get | |
- list | |
- watch | |
- apiGroups: | |
- networking.k8s.io | |
resources: | |
- ingresses | |
verbs: | |
- get | |
- list | |
- watch | |
- apiGroups: | |
- networking.k8s.io | |
resources: | |
- ingresses/status | |
verbs: | |
- create | |
- get | |
- update | |
- apiGroups: | |
- projectcontour.io | |
resources: | |
- httpproxies | |
- tlscertificatedelegations | |
verbs: | |
- get | |
- list | |
- watch | |
- apiGroups: | |
- projectcontour.io | |
resources: | |
- httpproxies/status | |
verbs: | |
- create | |
- get | |
- update | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: contour | |
namespace: tanzu-system-ingress | |
spec: | |
ports: | |
- port: 8001 | |
name: xds | |
protocol: TCP | |
targetPort: 8001 | |
selector: | |
app: contour | |
type: ClusterIP | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: envoy | |
namespace: tanzu-system-ingress | |
annotations: {} | |
spec: | |
ports: | |
- port: 80 | |
name: http | |
protocol: TCP | |
- port: 443 | |
name: https | |
protocol: TCP | |
selector: | |
app: envoy | |
type: NodePort | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
app: contour | |
name: contour | |
namespace: tanzu-system-ingress | |
spec: | |
replicas: 2 | |
strategy: | |
type: RollingUpdate | |
rollingUpdate: | |
maxSurge: 50% | |
selector: | |
matchLabels: | |
app: contour | |
template: | |
metadata: | |
annotations: | |
prometheus.io/scrape: "true" | |
prometheus.io/port: "8000" | |
labels: | |
app: contour | |
spec: | |
affinity: | |
podAntiAffinity: | |
preferredDuringSchedulingIgnoredDuringExecution: | |
- podAffinityTerm: | |
labelSelector: | |
matchLabels: | |
app: contour | |
topologyKey: kubernetes.io/hostname | |
weight: 100 | |
containers: | |
- args: | |
- serve | |
- --incluster | |
- --xds-address=0.0.0.0 | |
- --xds-port=8001 | |
- --envoy-service-http-port=80 | |
- --envoy-service-https-port=443 | |
- --contour-cafile=/certs/ca.crt | |
- --contour-cert-file=/certs/tls.crt | |
- --contour-key-file=/certs/tls.key | |
- --config-path=/config/contour.yaml | |
command: | |
- contour | |
image: registry.tkg.vmware.run/contour:v1.8.1_vmware.1 | |
imagePullPolicy: IfNotPresent | |
name: contour | |
ports: | |
- containerPort: 8001 | |
name: xds | |
protocol: TCP | |
- containerPort: 8000 | |
name: debug | |
protocol: TCP | |
livenessProbe: | |
httpGet: | |
path: /healthz | |
port: 8000 | |
readinessProbe: | |
tcpSocket: | |
port: 8001 | |
initialDelaySeconds: 15 | |
periodSeconds: 10 | |
volumeMounts: | |
- name: contourcert | |
mountPath: /certs | |
readOnly: true | |
- name: contour-config | |
mountPath: /config | |
readOnly: true | |
env: | |
- name: CONTOUR_NAMESPACE | |
valueFrom: | |
fieldRef: | |
apiVersion: v1 | |
fieldPath: metadata.namespace | |
- name: POD_NAME | |
valueFrom: | |
fieldRef: | |
apiVersion: v1 | |
fieldPath: metadata.name | |
dnsPolicy: ClusterFirst | |
serviceAccountName: contour | |
securityContext: | |
runAsNonRoot: true | |
runAsUser: 65534 | |
runAsGroup: 65534 | |
volumes: | |
- name: contourcert | |
secret: | |
secretName: contourcert | |
- name: contour-config | |
configMap: | |
name: contour | |
defaultMode: 420 | |
items: | |
- key: contour.yaml | |
path: contour.yaml | |
--- | |
apiVersion: apps/v1 | |
kind: DaemonSet | |
metadata: | |
labels: | |
app: envoy | |
name: envoy | |
namespace: tanzu-system-ingress | |
spec: | |
updateStrategy: | |
type: RollingUpdate | |
rollingUpdate: | |
maxUnavailable: 10% | |
selector: | |
matchLabels: | |
app: envoy | |
template: | |
metadata: | |
annotations: | |
prometheus.io/scrape: "true" | |
prometheus.io/port: "8002" | |
prometheus.io/path: /stats/prometheus | |
labels: | |
app: envoy | |
spec: | |
containers: | |
- command: | |
- /bin/contour | |
args: | |
- envoy | |
- shutdown-manager | |
image: registry.tkg.vmware.run/contour:v1.8.1_vmware.1 | |
imagePullPolicy: IfNotPresent | |
lifecycle: | |
preStop: | |
exec: | |
command: | |
- /bin/contour | |
- envoy | |
- shutdown | |
livenessProbe: | |
httpGet: | |
path: /healthz | |
port: 8090 | |
initialDelaySeconds: 3 | |
periodSeconds: 10 | |
name: shutdown-manager | |
- args: | |
- -c | |
- /config/envoy.json | |
- --service-cluster $(CONTOUR_NAMESPACE) | |
- --service-node $(ENVOY_POD_NAME) | |
- --log-level info | |
command: | |
- envoy | |
image: registry.tkg.vmware.run/envoy:v1.15.0_vmware.1 | |
imagePullPolicy: IfNotPresent | |
name: envoy | |
env: | |
- name: CONTOUR_NAMESPACE | |
valueFrom: | |
fieldRef: | |
apiVersion: v1 | |
fieldPath: metadata.namespace | |
- name: ENVOY_POD_NAME | |
valueFrom: | |
fieldRef: | |
apiVersion: v1 | |
fieldPath: metadata.name | |
ports: | |
- containerPort: 80 | |
hostPort: 80 | |
name: http | |
protocol: TCP | |
- containerPort: 443 | |
hostPort: 443 | |
name: https | |
protocol: TCP | |
readinessProbe: | |
httpGet: | |
path: /ready | |
port: 8002 | |
initialDelaySeconds: 3 | |
periodSeconds: 4 | |
volumeMounts: | |
- name: envoy-config | |
mountPath: /config | |
- name: envoycert | |
mountPath: /certs | |
lifecycle: | |
preStop: | |
httpGet: | |
path: /shutdown | |
port: 8090 | |
scheme: HTTP | |
initContainers: | |
- args: | |
- bootstrap | |
- /config/envoy.json | |
- --xds-address=contour | |
- --xds-port=8001 | |
- --resources-dir=/config/resources | |
- --envoy-cafile=/certs/ca.crt | |
- --envoy-cert-file=/certs/tls.crt | |
- --envoy-key-file=/certs/tls.key | |
command: | |
- contour | |
image: registry.tkg.vmware.run/contour:v1.8.1_vmware.1 | |
imagePullPolicy: IfNotPresent | |
name: envoy-initconfig | |
volumeMounts: | |
- name: envoy-config | |
mountPath: /config | |
- name: envoycert | |
mountPath: /certs | |
readOnly: true | |
env: | |
- name: CONTOUR_NAMESPACE | |
valueFrom: | |
fieldRef: | |
fieldPath: metadata.namespace | |
automountServiceAccountToken: false | |
serviceAccountName: envoy | |
terminationGracePeriodSeconds: 300 | |
volumes: | |
- name: envoy-config | |
emptyDir: {} | |
- name: envoycert | |
secret: | |
secretName: envoycert | |
restartPolicy: Always |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment