Skip to content

Commit

Permalink
Merge pull request #14 from doitintl/feat/balazs/add-nodeSelector
Browse files Browse the repository at this point in the history
add nodeSelector option
  • Loading branch information
hobord authored Nov 20, 2024
2 parents 2f509ff + f3f3fbb commit 4374aa8
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/doit-eks-lens/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: doit-eks-lens
description: A Helm chart for DoiT EKS lens
type: application
version: 1.0.5
version: 1.0.6
appVersion: "0.0.1"
4 changes: 4 additions & 0 deletions charts/doit-eks-lens/templates/doit-kube-state-metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,10 @@ spec:
tolerations:
{{ toYaml .Values.kubeStateMetrics.tolerations | indent 8 }}
{{- end }}
{{- if .Values.kubeStateMetrics.nodeSelector }}
nodeSelector:
{{ toYaml .Values.kubeStateMetrics.nodeSelector | indent 8 }}
{{- end }}
---
apiVersion: v1
kind: Service
Expand Down
6 changes: 6 additions & 0 deletions charts/doit-eks-lens/templates/doit-otelcol.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -410,8 +410,10 @@ spec:
successThreshold: 1
timeoutSeconds: 1
name: otelcol
{{- if .Values.collector.otelcol.resources }}
resources:
{{ toYaml .Values.collector.otelcol.resources | nindent 10 }}
{{- end }}
volumeMounts:
- mountPath: /conf
name: doit-collector-config
Expand All @@ -429,4 +431,8 @@ spec:
{{- if .Values.collector.tolerations }}
tolerations:
{{ toYaml .Values.collector.tolerations | indent 8 }}
{{- end }}
{{- if .Values.collector.nodeSelector }}
nodeSelector:
{{ toYaml .Values.collector.nodeSelector | indent 8 }}
{{- end }}
10 changes: 6 additions & 4 deletions charts/doit-eks-lens/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ kubeStateMetrics:
tag: v2.9.2
## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
tolerations: []
nodeSelector: {}

collector:
otelcol:
Expand All @@ -22,13 +23,14 @@ collector:
check_interval: 1s
limit_percentage: 70
spike_limit_percentage: 30
## Ref: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
resources: {}
env:
# - name: "GOMEMLIMIT"
# value: "2750MiB"
# - name: "GOMEMLIMIT"
# value: "2750MiB"
## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
tolerations: []
## Ref: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
resources: {}
nodeSelector: {}

metricsDeploymentId: xxxxxxxxx
s3_bucket: "doitintl-eks-metrics-xxxxxxxx-us-east-1"
Expand Down

0 comments on commit 4374aa8

Please sign in to comment.