Skip to content

Commit

Permalink
k8s/controlplane: add cloud apiserver monitoring snippet
Browse files Browse the repository at this point in the history
Co-authored-by: Paolo Gallina <paologallina1992@gmail.com>
  • Loading branch information
roobre and paologallinaharbur committed Jan 31, 2022
1 parent f512c97 commit 1f5d602
Showing 1 changed file with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,32 @@ For the same reason above, it is currently not possible to use autodiscovery for

Lastly, `staticEndpoint` allows only to define a single endpoint per component. This means that if you have multiple control plane shards in different hosts, it is currently not possible to point to them separately. This is also a known limitation we are working to address in future versions. For the time being, a workaround could be to aggregate metrics for different shards elsewhere, and point the `staticEndpoint` URL to the aggregated output.

#### Control plane monitoring for managed and cloud environments [#cloud-control-plane]

Some cloud environments, like EKS or GKE, allow retrieving metrics from the Kubernetes API Server. This can be easily configured as an static endpoint:

```yaml
controlPlane:
affinity:
nodeAffinity: false # https://github.com/helm/helm/issues/9136
kind: Deployment
config:
etcd:
enabled: false
scheduler:
enabled: false
controllerManager:
enabled: false
apiServer:
staticEndpoint:
url: "https://kubernetes.default:443"
insecureSkipVerify: true
auth:
type: bearer
```

Please note that this only applies to the API Server and that etcd, the scheduler, and the controller manager remain inaccessible in cloud environments.

## Monitoring control plane with integration version 2 [#monitoring-control-plane]

This section covers how to configure control plane monitoring on versions 2 and earlier of the integration.
Expand Down

0 comments on commit 1f5d602

Please sign in to comment.