-
Notifications
You must be signed in to change notification settings - Fork 232
USHIFT-6951: Add node-exporter as optional MicroShift component #6810
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
Open
copejon
wants to merge
13
commits into
openshift:main
Choose a base branch
from
copejon:ushift-6951/node-exporter
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+995
−1
Open
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
2de745c
USHIFT-6951: Add node-exporter Kubernetes manifests
copejon 44a129a
USHIFT-6951: Register node-exporter healthcheck
copejon 5198ad3
USHIFT-6951: Package node-exporter RPM and otelcol integration
copejon 5850a53
USHIFT-6951: Add node-exporter to observability test config
copejon 38058b2
USHIFT-6951: Fix node-exporter scrape auth for otelcol
copejon 72cd8a6
USHIFT-6951: Wire node-exporter into auto-rebase pipeline
copejon 942938d
USHIFT-6951: use slices.Concat in mergeWorkloads
copejon b330785
USHIFT-6951: remove otel-collector integration from node-exporter
copejon eeb75de
USHIFT-6951: remove node-exporter rebase logic from shared files
copejon ee27dde
USHIFT-6951: add standalone cluster-monitoring-operator rebase script
copejon 74ca1cd
update last_rebase_cluster_monitoring_operator.sh
copejon 7ef73cf
to simply merging of the components the CMO rebase script is now iden…
copejon c65c7dd
executed rebase script
copejon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,9 @@ | ||
| apiVersion: v1 | ||
| kind: Namespace | ||
| metadata: | ||
| name: openshift-monitoring | ||
| labels: | ||
| name: openshift-monitoring | ||
| pod-security.kubernetes.io/enforce: privileged | ||
| pod-security.kubernetes.io/audit: privileged | ||
| pod-security.kubernetes.io/warn: privileged |
18 changes: 18 additions & 0 deletions
18
assets/optional/node-exporter/01-cluster-role-binding.yaml
This file contains hidden or 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,18 @@ | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| kind: ClusterRoleBinding | ||
| metadata: | ||
| labels: | ||
| app.kubernetes.io/component: exporter | ||
| app.kubernetes.io/managed-by: cluster-monitoring-operator | ||
| app.kubernetes.io/name: node-exporter | ||
| app.kubernetes.io/part-of: openshift-monitoring | ||
| app.kubernetes.io/version: 1.11.1 | ||
| name: node-exporter | ||
| roleRef: | ||
| apiGroup: rbac.authorization.k8s.io | ||
| kind: ClusterRole | ||
| name: node-exporter | ||
| subjects: | ||
| - kind: ServiceAccount | ||
| name: node-exporter | ||
| namespace: openshift-monitoring |
This file contains hidden or 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,31 @@ | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| kind: ClusterRole | ||
| metadata: | ||
| labels: | ||
| app.kubernetes.io/component: exporter | ||
| app.kubernetes.io/managed-by: cluster-monitoring-operator | ||
| app.kubernetes.io/name: node-exporter | ||
| app.kubernetes.io/part-of: openshift-monitoring | ||
| app.kubernetes.io/version: 1.11.1 | ||
| name: node-exporter | ||
| rules: | ||
| - apiGroups: | ||
| - authentication.k8s.io | ||
| resources: | ||
| - tokenreviews | ||
| verbs: | ||
| - create | ||
| - apiGroups: | ||
| - authorization.k8s.io | ||
| resources: | ||
| - subjectaccessreviews | ||
| verbs: | ||
| - create | ||
| - apiGroups: | ||
| - security.openshift.io | ||
| resourceNames: | ||
| - node-exporter | ||
| resources: | ||
| - securitycontextconstraints | ||
| verbs: | ||
| - use |
22 changes: 22 additions & 0 deletions
22
assets/optional/node-exporter/01-security-context-constraints.yaml
This file contains hidden or 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,22 @@ | ||
| allowHostDirVolumePlugin: true | ||
| allowHostNetwork: true | ||
| allowHostPID: true | ||
| allowHostPorts: true | ||
| allowPrivilegedContainer: true | ||
| apiVersion: security.openshift.io/v1 | ||
| kind: SecurityContextConstraints | ||
| metadata: | ||
| annotations: | ||
| kubernetes.io/description: node-exporter scc is used for the Prometheus node exporter | ||
| labels: | ||
| app.kubernetes.io/managed-by: cluster-monitoring-operator | ||
| app.kubernetes.io/part-of: openshift-monitoring | ||
| name: node-exporter | ||
| readOnlyRootFilesystem: false | ||
| runAsUser: | ||
| type: RunAsAny | ||
| seLinuxContext: | ||
| type: RunAsAny | ||
| seccompProfiles: | ||
| - runtime/default | ||
| users: [] |
This file contains hidden or 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,12 @@ | ||
| apiVersion: v1 | ||
| automountServiceAccountToken: false | ||
| kind: ServiceAccount | ||
| metadata: | ||
| labels: | ||
| app.kubernetes.io/component: exporter | ||
| app.kubernetes.io/managed-by: cluster-monitoring-operator | ||
| app.kubernetes.io/name: node-exporter | ||
| app.kubernetes.io/part-of: openshift-monitoring | ||
| app.kubernetes.io/version: 1.11.1 | ||
| name: node-exporter | ||
| namespace: openshift-monitoring |
141 changes: 141 additions & 0 deletions
141
assets/optional/node-exporter/02-accelerators-collector-configmap.yaml
This file contains hidden or 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,141 @@ | ||
| apiVersion: v1 | ||
| data: | ||
| config.yaml: |- | ||
| - "models": | ||
| - "modelName": "NVIDIA A800 PCIe 80GB" | ||
| "pciID": "0x20f5" | ||
| - "modelName": "NVIDIA A800 40GB PCIe active cooled" | ||
| "pciID": "0x20f6" | ||
| - "modelName": "NVIDIA AX800" | ||
| "pciID": "0x20fd" | ||
| - "modelName": "NVIDIA A100 PCIe 40GB" | ||
| "pciID": "0x20f1" | ||
| - "modelName": "NVIDIA A100 PCIe 80GB" | ||
| "pciID": "0x20b5" | ||
| - "modelName": "NVIDIA A40" | ||
| "pciID": "0x2235" | ||
| - "modelName": "NVIDIA A30" | ||
| "pciID": "0x20b7" | ||
| - "modelName": "NVIDIA A10" | ||
| "pciID": "0x2236" | ||
| - "modelName": "NVIDIA A16" | ||
| "pciID": "0x25b6" | ||
| - "modelName": "H800 NVL" | ||
| "pciID": "0x2322" | ||
| - "modelName": "NVIDIA H100 NVL" | ||
| "pciID": "0x2321" | ||
| - "modelName": "NVIDIA H100 PCIe 80GB" | ||
| "pciID": "0x2331" | ||
| - "modelName": "NVIDIA L40" | ||
| "pciID": "0x26b5" | ||
| - "modelName": "NVIDIA L40S" | ||
| "pciID": "0x26b9" | ||
| - "modelName": "NVIDIA L20 liquid cooled" | ||
| "pciID": "0x26bA" | ||
| - "modelName": "NVIDIA L4" | ||
| "pciID": "0x27b8" | ||
| - "modelName": "NVIDIA L2" | ||
| "pciID": "0x27b6" | ||
| - "modelName": "NVIDIA RTX 6000 Ada" | ||
| "pciID": "0x26b1" | ||
| - "modelName": "NVIDIA RTX 5880 Ada" | ||
| "pciID": "0x26b3" | ||
| - "modelName": "NVIDIA RTX 5000 Ada" | ||
| "pciID": "0x2231" | ||
| - "modelName": "NVIDIA RTX A6000" | ||
| "pciID": "0x2230" | ||
| - "modelName": "NVIDIA RTX A5500" | ||
| "pciID": "0x2233" | ||
| - "modelName": "NVIDIA RTX 8000 passive" | ||
| "pciID": "0x1e30" | ||
| - "modelName": "NVIDIA RTX A2000" | ||
| "pciID": "0x2531" | ||
| - "modelName": "NVIDIA A100 SXM4 40GB" | ||
| "pciID": "0x20b0" | ||
| - "modelName": "NVIDIA H800 NVL" | ||
| "pciID": "0x233a" | ||
| - "modelName": "NVIDIA H200 NVL" | ||
| "pciID": "0x233b" | ||
| - "modelName": "NVIDIA A100 SXM4 80GB" | ||
| "pciID": "0x20b2" | ||
| - "modelName": "NVIDIA A100 SXM 64GB" | ||
| "pciID": "0x20b3" | ||
| - "modelName": "NVIDIA A800 SXM4 40GB" | ||
| "pciID": "0x20bd" | ||
| - "modelName": "NVIDIA A800 SXM4 80GB" | ||
| "pciID": "0x20f3" | ||
| - "modelName": "NVIDIA RTX A1000" | ||
| "pciID": "0x25b0" | ||
| - "modelName": "Blackwell RTX PRO 6000" | ||
| "pciID": "0x2bb5" | ||
| - "modelName": "Blackwell GB100" | ||
| "pciID": "0x2941" | ||
| - "modelName": "NVIDIA H200" | ||
| "pciID": "0x2335" | ||
| "vendorID": "0x10de" | ||
| "vendorName": "NVIDIA" | ||
| - "models": | ||
| - "modelName": "AMD MI210" | ||
| "pciID": "0x740f" | ||
| - "modelName": "AMD MI250" | ||
| "pciID": "0x740c" | ||
| - "modelName": "AMD MI250X" | ||
| "pciID": "0x7408" | ||
| - "modelName": "AMD MI300" | ||
| "pciID": "0x74a0" | ||
| - "modelName": "AMD MI300X" | ||
| "pciID": "0x74a1" | ||
| - "modelName": "AMD MI325X" | ||
| "pciID": "0x74a5" | ||
| - "modelName": "AMD MI308X" | ||
| "pciID": "0x7aa2" | ||
| - "modelName": "AMD MI300X VF" | ||
| "pciID": "0x74b5" | ||
| - "modelName": "AMD MI210 VF" | ||
| "pciID": "0x7410" | ||
| "vendorID": "0x1002" | ||
| "vendorName": "AMD" | ||
| - "models": | ||
| - "modelName": "Gaudi 1" | ||
| "pciID": "0x1000" | ||
| - "modelName": "Gaudi 2" | ||
| "pciID": "0x1020" | ||
| "vendorID": "0x1da3" | ||
| "vendorName": "GAUDI" | ||
| - "models": | ||
| - "modelName": "Intel Data Center GPU Max 1550" | ||
| "pciID": "0x0bd5" | ||
| - "modelName": "Intel Data Center GPU Max 1100" | ||
| "pciID": "0x0bda" | ||
| - "modelName": "Intel Data Center GPU Flex 170" | ||
| "pciID": "0x56c0" | ||
| - "modelName": "Intel Data Center GPU Flex 140" | ||
| "pciID": "0x56c1" | ||
| - "modelName": "Intel IPU Data Path" | ||
| "pciID": "0x1452" | ||
| "vendorID": "0x8086" | ||
| "vendorName": "Intel" | ||
| - "models": | ||
| - "modelName": "Qualcomm AI 100" | ||
| "pciID": "0xa100" | ||
| - "modelName": "Qualcomm AI 80" | ||
| "pciID": "0xa080" | ||
| "vendorID": "0x17cb" | ||
| "vendorName": "Qualcomm" | ||
| - "models": | ||
| - "modelName": "Marvell OCTEON 10 CN10XXX" | ||
| "pciID": "0xb900" | ||
| "vendorID": "0x177d" | ||
| "vendorName": "Marvell" | ||
| - "models": | ||
| - "modelName": "BlueField-3 integrated ConnectX-7" | ||
| "pciID": "0xa2dc" | ||
| "vendorID": "0x15b3" | ||
| "vendorName": "Mellanox" | ||
| kind: ConfigMap | ||
| metadata: | ||
| labels: | ||
| app.kubernetes.io/managed-by: cluster-monitoring-operator | ||
| app.kubernetes.io/part-of: openshift-monitoring | ||
| name: node-exporter-accelerators-collector-config | ||
| namespace: openshift-monitoring |
17 changes: 17 additions & 0 deletions
17
assets/optional/node-exporter/02-kube-rbac-proxy-secret.yaml
This file contains hidden or 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,17 @@ | ||
| apiVersion: v1 | ||
| data: {} | ||
| kind: Secret | ||
| metadata: | ||
| labels: | ||
| app.kubernetes.io/managed-by: cluster-monitoring-operator | ||
| app.kubernetes.io/part-of: openshift-monitoring | ||
| name: node-exporter-kube-rbac-proxy-config | ||
| namespace: openshift-monitoring | ||
| stringData: | ||
| config.yaml: |- | ||
| "authorization": | ||
| "static": | ||
| - "path": "/metrics" | ||
| "resourceRequest": false | ||
| "verb": "get" | ||
| type: Opaque | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.