Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update metrics-server guide to include aws-auth step #667

Merged
merged 2 commits into from
Jun 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 24 additions & 3 deletions doc_source/metrics-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,34 @@ The metrics are meant for point\-in\-time analysis and aren't an accurate source

**Deploy the Metrics Server**

1. Deploy the Metrics Server with the following command:
1. Update aws-auth configmap to include the username field so that fetching metrics will be authorized.

```
Name: aws-auth
Namespace: kube-system
Labels: <none>
Annotations: <none>

Data
====
mapRoles:
----
...
-
groups:
- system:masters
rolearn: arn:aws:iam::123456789123:role/kubernetes-devops
username: devops:{{SessionName}} # Ensure this has been specified.
```

2. Deploy the Metrics Server with the following command:

```
kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml
```

1. Verify that the `metrics-server` deployment is running the desired number of Pods with the following command\.
3. Verify that the `metrics-server` deployment is running the desired number of pods with the following command\.


```
kubectl get deployment metrics-server -n kube-system
Expand All @@ -24,4 +45,4 @@ The metrics are meant for point\-in\-time analysis and aren't an accurate source
```
NAME READY UP-TO-DATE AVAILABLE AGE
metrics-server 1/1 1 1 6m
```
```