Skip to content

Commit

Permalink
Merge pull request #6 from cafemedia/feature/support-tolerations-for-…
Browse files Browse the repository at this point in the history
…deployments

Enable tolerations for pods
  • Loading branch information
hobord authored Aug 13, 2024
2 parents 000dd91 + 95e6410 commit 44058c6
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 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.1
version: 1.0.2
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 @@ -212,6 +212,10 @@ spec:
resources: {}
restartPolicy: Always
serviceAccount: doit-kube-state-metrics
{{- if .Values.kubeStateMetrics.tolerations }}
tolerations:
{{ toYaml .Values.kubeStateMetrics.tolerations | indent 8 }}
{{- end }}
---
apiVersion: v1
kind: Service
Expand Down
6 changes: 5 additions & 1 deletion charts/doit-eks-lens/templates/doit-otelcol.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -422,4 +422,8 @@ spec:
- key: collector.yaml
path: collector.yaml
name: doit-collector-config
name: doit-collector-config
name: doit-collector-config
{{- if .Values.collector.tolerations }}
tolerations:
{{ toYaml .Values.collector.tolerations | indent 8 }}
{{- end }}
6 changes: 5 additions & 1 deletion charts/doit-eks-lens/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ kubeStateMetrics:
image:
repository: registry.k8s.io/kube-state-metrics/kube-state-metrics
tag: v2.9.2
## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
tolerations: []

collector:
otelcol:
Expand All @@ -15,9 +17,11 @@ collector:
tag: 0.83.0
kubeStateMetrics:
endpoint: "kube-state-metrics:8080"
## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
tolerations: []

metricsDeploymentId: xxxxxxxxx
s3_bucket: 'doitintl-eks-metrics-xxxxxxxx-us-east-1'
s3_prefix: 'eks-metrics/xxxxxxxx/us-east-1/public'
role_arn: arn:aws:iam::xxxxxxxx:role/doit_eks_us-east-1_public
region: us-east-1
region: us-east-1

0 comments on commit 44058c6

Please sign in to comment.