-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): update docs from repo source
Signed-off-by: kumahq[bot] <110050114+kumahq[bot]@users.noreply.github.com>
- Loading branch information
1 parent
600b16f
commit ca11c04
Showing
5 changed files
with
179 additions
and
6 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,169 @@ | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: v0.13.0 | ||
name: meshmetrics.kuma.io | ||
spec: | ||
group: kuma.io | ||
names: | ||
categories: | ||
- kuma | ||
kind: MeshMetric | ||
listKind: MeshMetricList | ||
plural: meshmetrics | ||
singular: meshmetric | ||
scope: Namespaced | ||
versions: | ||
- additionalPrinterColumns: | ||
- jsonPath: .spec.targetRef.kind | ||
name: TargetRef Kind | ||
type: string | ||
- jsonPath: .spec.targetRef.name | ||
name: TargetRef Name | ||
type: string | ||
name: v1alpha1 | ||
schema: | ||
openAPIV3Schema: | ||
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: Spec is the specification of the Kuma MeshMetric resource. | ||
properties: | ||
default: | ||
description: MeshMetric configuration. | ||
properties: | ||
applications: | ||
description: Applications is a list of application that Dataplane | ||
Proxy will scrape | ||
items: | ||
properties: | ||
path: | ||
default: /metrics/prometheus | ||
description: Path on which an application expose HTTP endpoint | ||
with metrics. | ||
type: string | ||
port: | ||
description: Port on which an application expose HTTP endpoint | ||
with metrics. | ||
format: int32 | ||
type: integer | ||
required: | ||
- port | ||
type: object | ||
type: array | ||
backends: | ||
description: Backends list that will be used to collect metrics. | ||
items: | ||
properties: | ||
name: | ||
description: Name of the backend. Needed when using MADS | ||
for DP discovery. | ||
type: string | ||
prometheus: | ||
description: Prometheus backend configuration. | ||
properties: | ||
path: | ||
default: /metrics | ||
description: Path on which a dataplane should expose | ||
HTTP endpoint with Prometheus metrics. | ||
type: string | ||
port: | ||
default: 5670 | ||
description: Port on which a dataplane should expose | ||
HTTP endpoint with Prometheus metrics. | ||
format: int32 | ||
type: integer | ||
tls: | ||
description: Configuration of TLS for prometheus listener. | ||
properties: | ||
mode: | ||
default: Disabled | ||
description: Configuration of TLS for Prometheus | ||
listener. | ||
enum: | ||
- Disabled | ||
- ProvidedTLS | ||
- ActiveMTLSBackend | ||
type: string | ||
required: | ||
- mode | ||
type: object | ||
required: | ||
- path | ||
- port | ||
type: object | ||
type: | ||
description: Type of the backend that will be used to collect | ||
metrics. At the moment only Prometheus backend is available. | ||
enum: | ||
- Prometheus | ||
type: string | ||
required: | ||
- type | ||
type: object | ||
type: array | ||
sidecar: | ||
description: Sidecar metrics collection configuration | ||
properties: | ||
regex: | ||
description: Regex that will be used to filter sidecar metrics. | ||
It uses Google RE2 engine https://github.com/google/re2 | ||
type: string | ||
usedOnly: | ||
default: false | ||
description: UsedOnly will scrape only metrics that has been | ||
by sidecar (counters incremented at least once, gauges changed | ||
at least once, and histograms added to at least once). | ||
type: boolean | ||
type: object | ||
type: object | ||
targetRef: | ||
description: TargetRef is a reference to the resource the policy takes | ||
an effect on. The resource could be either a real store object or | ||
virtual resource defined in-place. | ||
properties: | ||
kind: | ||
description: Kind of the referenced resource | ||
enum: | ||
- Mesh | ||
- MeshSubset | ||
- MeshGateway | ||
- MeshService | ||
- MeshServiceSubset | ||
- MeshHTTPRoute | ||
type: string | ||
mesh: | ||
description: Mesh is reserved for future use to identify cross | ||
mesh resources. | ||
type: string | ||
name: | ||
description: 'Name of the referenced resource. Can only be used | ||
with kinds: `MeshService`, `MeshServiceSubset` and `MeshGatewayRoute`' | ||
type: string | ||
tags: | ||
additionalProperties: | ||
type: string | ||
description: Tags used to select a subset of proxies by tags. | ||
Can only be used with kinds `MeshSubset` and `MeshServiceSubset` | ||
type: object | ||
type: object | ||
required: | ||
- targetRef | ||
type: object | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: {} |
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
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
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