Skip to content

Commit

Permalink
Merge branch 'develop' into dependabot/docker/cost-analyzer/charts/pr…
Browse files Browse the repository at this point in the history
…ometheus/prom/node-exporter-v1.7.0
  • Loading branch information
jessegoodier authored Nov 20, 2023
2 parents f4fc710 + 78fc49f commit 99bf61f
Show file tree
Hide file tree
Showing 10 changed files with 57 additions and 44 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Kubecost strives to support as many versions of Kubernetes as possible. Below is

| Chart Version | Kubernetes Min | Kubernetes Max |
|--------------------------------|----------------|----------------|
| 1.106 | 1.20 | 1.28 |
| 1.107 | 1.20 | 1.28 |

## Installation

Expand Down
4 changes: 2 additions & 2 deletions cost-analyzer/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: v2
appVersion: "1.107.0"
appVersion: "1.107.1"
description: A Helm chart that sets up Kubecost, Prometheus, and Grafana to monitor
cloud costs.
name: cost-analyzer
version: "1.107.0"
version: "1.107.1"
annotations:
"artifacthub.io/links": |
- name: Homepage
Expand Down
8 changes: 4 additions & 4 deletions cost-analyzer/charts/prometheus/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ configmapReload:
##
image:
repository: quay.io/prometheus-operator/prometheus-config-reloader
tag: v0.68.0
tag: v0.69.1
pullPolicy: IfNotPresent

## Additional configmap-reload container arguments
Expand Down Expand Up @@ -361,7 +361,7 @@ configmapReload:
##
image:
repository: quay.io/prometheus-operator/prometheus-config-reloader
tag: v0.68.0
tag: v0.69.1
pullPolicy: IfNotPresent

## Additional configmap-reload container arguments
Expand Down Expand Up @@ -543,7 +543,7 @@ server:
##
image:
repository: quay.io/prometheus/prometheus
tag: v2.35.0
tag: v2.47.2
pullPolicy: IfNotPresent

## prometheus server priorityClassName
Expand Down Expand Up @@ -1270,7 +1270,7 @@ serverFiles:

metric_relabel_configs:
- source_labels: [ __name__ ]
regex: (kubelet_volume_stats_used_bytes) # this metric is in alpha
regex: (kubelet_volume_stats_used_bytes) # this metric is in alpha
action: keep

# Scrape config for service endpoints.
Expand Down
14 changes: 7 additions & 7 deletions cost-analyzer/charts/thanos/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
image:
repository: thanosio/thanos
tag: v0.29.0
tag: v0.32.5
pullPolicy: IfNotPresent

## PriorityClassName
Expand Down Expand Up @@ -187,7 +187,7 @@ queryFrontend:
validity: 10m

downstreamTripper:
enabled: false
enabled: false
idleConnectionTimeout: 90s
responseHeaderTimeout: 2m
tlsHandshakeTimeout: 10s
Expand All @@ -198,7 +198,7 @@ queryFrontend:

# Downstream Tripper Configuration Content
# downstreamTripperConfig:

# Response cache configuration content
# responseCacheConfig:

Expand Down Expand Up @@ -233,7 +233,7 @@ queryFrontend:
# minAvailable and maxUnavailable can't be used simultaneous. Choose one.
minAvailable: 1
# maxUnavailable: 50%

serviceAccount: ""

# The http endpoint to communicate with other components
Expand Down Expand Up @@ -327,7 +327,7 @@ queryFrontend:
# Pod affinity
# Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#node-affinity
affinity: {}

query:
enabled: true
# Label to treat as a replica indicator along which data is deduplicated.
Expand Down Expand Up @@ -355,9 +355,9 @@ query:
maxConcurrent: 16
# Maximum number of select requests made concurrently per a query.
maxConcurrentSelect: 4
# Enable automatic adjustment (step / 5) to what source of data should be used in store gateways
# Enable automatic adjustment (step / 5) to what source of data should be used in store gateways
# if no max_source_resolution param is specified.
autoDownsampling: false
autoDownsampling: false
# https://github.com/improbable-eng/thanos/issues/1015
storeDNSResolver: miekgdns
# Enable DNS discovery for stores
Expand Down
10 changes: 10 additions & 0 deletions cost-analyzer/templates/cost-analyzer-service-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,14 @@ spec:
targetPort: 9004
{{- end }}
{{- end }}
{{- if .Values.service.sessionAffinity.enabled }}
sessionAffinity: ClientIP
{{- if .Values.service.sessionAffinity.timeoutSeconds }}
sessionAffinityConfig:
clientIP:
timeoutSeconds: {{ .Values.service.sessionAffinity.timeoutSeconds }}
{{- end }}
{{- else }}
sessionAffinity: None
{{- end }}
{{- end }}
2 changes: 1 addition & 1 deletion cost-analyzer/values-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ prometheus:
enableAdminApi: true
sidecarContainers:
- name: thanos-sidecar
image: thanosio/thanos:v0.29.0
image: thanosio/thanos:v0.32.5
securityContext:
runAsNonRoot: true
runAsUser: 1001
Expand Down
6 changes: 3 additions & 3 deletions cost-analyzer/values-eks-cost-monitoring.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ prometheus:
## configmap-reload container image
##
image:
repository: public.ecr.aws/bitnami/configmap-reload
tag: 0.7.1
repository: public.ecr.aws/kubecost/prometheus-config-reloader
tag: v0.69.1
pullPolicy: IfNotPresent
## Additional configmap-reload container arguments
##
Expand All @@ -172,7 +172,7 @@ prometheus:
## Ref: http://kubernetes.io/docs/user-guide/compute-resources/
##
resources: {}

kube-state-metrics:
disabled: false
nodeExporter:
Expand Down
2 changes: 1 addition & 1 deletion cost-analyzer/values-thanos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ prometheus:
enableAdminApi: true
sidecarContainers:
- name: thanos-sidecar
image: thanosio/thanos:v0.29.0
image: thanosio/thanos:v0.32.5
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
Expand Down
3 changes: 3 additions & 0 deletions cost-analyzer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,9 @@ service:
# nodePort:
labels: {}
annotations: {}
sessionAffinity:
enabled: false # Makes sure that connections from a client are passed to the same Pod each time, when set to `true`. You should set it when you enabled authentication through OIDC or SAML integration.
timeoutSeconds: 10800

# Enabling long-term durable storage with Postgres requires an enterprise license
remoteWrite:
Expand Down
Loading

0 comments on commit 99bf61f

Please sign in to comment.