Skip to content

Commit

Permalink
Update the Kepler deployment to not deploy on Fargate nodes (#925)
Browse files Browse the repository at this point in the history
Signed-off-by: Pete Wall <[email protected]>
  • Loading branch information
petewall authored Nov 19, 2024
1 parent cc3cb68 commit f308a93
Show file tree
Hide file tree
Showing 15 changed files with 129 additions and 5 deletions.
43 changes: 43 additions & 0 deletions charts/feature-cluster-metrics/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,49 @@
"kepler": {
"type": "object",
"properties": {
"affinity": {
"type": "object",
"properties": {
"nodeAffinity": {
"type": "object",
"properties": {
"requiredDuringSchedulingIgnoredDuringExecution": {
"type": "object",
"properties": {
"nodeSelectorTerms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"matchExpressions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"operator": {
"type": "string"
},
"values": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}
}
}
}
}
}
}
}
},
"canMount": {
"type": "object",
"properties": {
Expand Down
16 changes: 13 additions & 3 deletions charts/feature-cluster-metrics/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -666,11 +666,21 @@ kepler:
# @section -- Kepler
maxCacheSize:

# @ignored
canMount: {usrSrc: false}
# @ignored
# @ignored -- Don't mount /usr/src
canMount:
usrSrc: false
# @ignored -- Include idle power metric estimation.
extraEnvVars:
EXPOSE_ESTIMATED_IDLE_POWER_METRICS: "true"
# @ignored -- Do not deploy Kepler on EKS Fargate nodes
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: eks.amazonaws.com/compute-type
operator: NotIn
values: [fargate]
# @ignored
podAnnotations:
k8s.grafana.com/logs.job: integrations/kepler
Expand Down
43 changes: 43 additions & 0 deletions charts/k8s-monitoring-v1/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -941,6 +941,49 @@
"kepler": {
"type": "object",
"properties": {
"affinity": {
"type": "object",
"properties": {
"nodeAffinity": {
"type": "object",
"properties": {
"requiredDuringSchedulingIgnoredDuringExecution": {
"type": "object",
"properties": {
"nodeSelectorTerms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"matchExpressions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"operator": {
"type": "string"
},
"values": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}
}
}
}
}
}
}
}
},
"enabled": {
"type": "boolean"
},
Expand Down
14 changes: 12 additions & 2 deletions charts/k8s-monitoring-v1/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2490,14 +2490,24 @@ kepler:
# @section -- Deployment: Kepler
enabled: false

# @ignored -- This skips including these values in README.md
# @ignored -- Don't mount /usr/src
canMount:
usrSrc: false

# @ignored -- This skips including these values in README.md
# @ignored -- Include idle power metric estimation.
extraEnvVars:
EXPOSE_ESTIMATED_IDLE_POWER_METRICS: "true"

# @ignored -- Do not deploy Kepler on EKS Fargate nodes
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: eks.amazonaws.com/compute-type
operator: NotIn
values: [fargate]

beyla:
# -- Should this Helm chart deploy Grafana Beyla to the cluster.
# @section -- Deployment: Beyla
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f308a93

Please sign in to comment.