Skip to content
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

charts,salt: Bump prometheus-adapter chart to 2.14.2 #3429

Merged
merged 1 commit into from
Jun 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@
- Bump CoreDNS version to 1.8.0
(PR[#3354](https://github.com/scality/metalk8s/pull/3354))

- [#3279](https://github.com/scality/metalk8s/issues/3279) - Bump
prometheus-adapter chart version from 2.10.1 to 2.12.2.
k8s-prometheus-adapter-amd64 image has been bump accordingly from v0.8.2
to v0.8.4 (PR[#3362](https://github.com/scality/metalk8s/pull/3362))
- Bump prometheus-adapter chart version to 2.14.2.
k8s-prometheus-adapter-amd64 image has been bump accordingly to v0.8.4
(PR[#3429](https://github.com/scality/metalk8s/pull/3429))

- [#3279](https://github.com/scality/metalk8s/issues/3279) - Bump
fluent-bit chart version from 2.0.1 to 2.2.0
Expand Down
2 changes: 1 addition & 1 deletion charts/prometheus-adapter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ name: prometheus-adapter
sources:
- https://github.com/kubernetes/charts
- https://github.com/DirectXMan12/k8s-prometheus-adapter
version: 2.12.2
version: 2.14.2
8 changes: 4 additions & 4 deletions charts/prometheus-adapter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,23 +118,23 @@ Enabling this option will cause resource metrics to be served at `/apis/metrics.
rules:
resource:
cpu:
containerQuery: sum(rate(container_cpu_usage_seconds_total{<<.LabelMatchers>>}[3m])) by (<<.GroupBy>>)
containerQuery: sum(rate(container_cpu_usage_seconds_total{<<.LabelMatchers>>, container!=""}[3m])) by (<<.GroupBy>>)
nodeQuery: sum(rate(container_cpu_usage_seconds_total{<<.LabelMatchers>>, id='/'}[3m])) by (<<.GroupBy>>)
resources:
overrides:
instance:
node:
resource: node
namespace:
resource: namespace
pod:
resource: pod
containerLabel: container
memory:
containerQuery: sum(container_memory_working_set_bytes{<<.LabelMatchers>>}) by (<<.GroupBy>>)
containerQuery: sum(container_memory_working_set_bytes{<<.LabelMatchers>>, container!=""}) by (<<.GroupBy>>)
nodeQuery: sum(container_memory_working_set_bytes{<<.LabelMatchers>>,id='/'}) by (<<.GroupBy>>)
resources:
overrides:
instance:
node:
resource: node
namespace:
resource: namespace
Expand Down
2 changes: 2 additions & 0 deletions charts/prometheus-adapter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,14 @@ spec:
port: https
scheme: HTTPS
initialDelaySeconds: 30
timeoutSeconds: 5
readinessProbe:
httpGet:
path: /healthz
port: https
scheme: HTTPS
initialDelaySeconds: 30
timeoutSeconds: 5
{{- if .Values.resources }}
resources:
{{- toYaml .Values.resources | nindent 10 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/prometheus-adapter/templates/psp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ metadata:
spec:
{{- if .Values.hostNetwork.enabled }}
hostNetwork: true
hostPorts:
- min: {{ .Values.listenPort }}
max: {{ .Values.listenPort }}
{{- end }}
fsGroup:
rule: RunAsAny
Expand Down
4 changes: 4 additions & 0 deletions charts/prometheus-adapter/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@ metadata:
heritage: {{ .Release.Service }}
name: {{ template "k8s-prometheus-adapter.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
{{- if .Values.serviceAccount.annotations }}
annotations:
{{ toYaml .Values.serviceAccount.annotations | indent 4 }}
{{- end }}
{{- end -}}
13 changes: 9 additions & 4 deletions charts/prometheus-adapter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ serviceAccount:
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name:
# ServiceAccount annotations.
# Use case: AWS EKS IAM roles for service accounts
# ref: https://docs.aws.amazon.com/eks/latest/userguide/specify-service-account-role.html
annotations: {}

# Custom DNS configuration to be added to prometheus-adapter pods
dnsConfig: {}
# nameservers:
Expand Down Expand Up @@ -81,23 +86,23 @@ rules:
# metricsQuery: sum(<<.Series>>{<<.LabelMatchers>>}) by (<<.GroupBy>>)
resource: {}
# cpu:
# containerQuery: sum(rate(container_cpu_usage_seconds_total{<<.LabelMatchers>>}[3m])) by (<<.GroupBy>>)
# containerQuery: sum(rate(container_cpu_usage_seconds_total{<<.LabelMatchers>>, container!=""}[3m])) by (<<.GroupBy>>)
# nodeQuery: sum(rate(container_cpu_usage_seconds_total{<<.LabelMatchers>>, id='/'}[3m])) by (<<.GroupBy>>)
# resources:
# overrides:
# instance:
# node:
# resource: node
# namespace:
# resource: namespace
# pod:
# resource: pod
# containerLabel: container
# memory:
# containerQuery: sum(container_memory_working_set_bytes{<<.LabelMatchers>>}) by (<<.GroupBy>>)
# containerQuery: sum(container_memory_working_set_bytes{<<.LabelMatchers>>, container!=""}) by (<<.GroupBy>>)
# nodeQuery: sum(container_memory_working_set_bytes{<<.LabelMatchers>>,id='/'}) by (<<.GroupBy>>)
# resources:
# overrides:
# instance:
# node:
# resource: node
# namespace:
# resource: namespace
Expand Down
43 changes: 24 additions & 19 deletions salt/metalk8s/addons/prometheus-adapter/deployed/chart.sls
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ metadata:
app.kubernetes.io/managed-by: salt
app.kubernetes.io/name: prometheus-adapter
app.kubernetes.io/part-of: metalk8s
chart: prometheus-adapter-2.12.2
chart: prometheus-adapter-2.14.2
heritage: metalk8s
release: prometheus-adapter
name: prometheus-adapter
Expand Down Expand Up @@ -93,8 +93,10 @@ data:
resourceRules:
cpu:
containerLabel: container_name
containerQuery: sum(rate(container_cpu_usage_seconds_total{<<.LabelMatchers>>}[3m])) by (<<.GroupBy>>)
nodeQuery: sum(rate(container_cpu_usage_seconds_total{<<.LabelMatchers>>, id='/'}[3m])) by (<<.GroupBy>>)
containerQuery: sum(rate(container_cpu_usage_seconds_total{<<.LabelMatchers>>}[3m]))
by (<<.GroupBy>>)
nodeQuery: sum(rate(container_cpu_usage_seconds_total{<<.LabelMatchers>>, id='/'}[3m]))
by (<<.GroupBy>>)
resources:
overrides:
namespace:
Expand All @@ -106,7 +108,8 @@ data:
memory:
containerLabel: container_name
containerQuery: sum(container_memory_working_set_bytes{<<.LabelMatchers>>}) by (<<.GroupBy>>)
nodeQuery: sum(container_memory_working_set_bytes{<<.LabelMatchers>>,id='/'}) by (<<.GroupBy>>)
nodeQuery: sum(container_memory_working_set_bytes{<<.LabelMatchers>>,id='/'}) by
(<<.GroupBy>>)
resources:
overrides:
namespace:
Expand All @@ -123,7 +126,7 @@ metadata:
app.kubernetes.io/managed-by: salt
app.kubernetes.io/name: prometheus-adapter
app.kubernetes.io/part-of: metalk8s
chart: prometheus-adapter-2.12.2
chart: prometheus-adapter-2.14.2
heritage: metalk8s
release: prometheus-adapter
name: prometheus-adapter
Expand All @@ -137,7 +140,7 @@ metadata:
app.kubernetes.io/managed-by: salt
app.kubernetes.io/name: prometheus-adapter
app.kubernetes.io/part-of: metalk8s
chart: prometheus-adapter-2.12.2
chart: prometheus-adapter-2.14.2
heritage: metalk8s
release: prometheus-adapter
name: prometheus-adapter-resource-reader
Expand All @@ -163,7 +166,7 @@ metadata:
app.kubernetes.io/managed-by: salt
app.kubernetes.io/name: prometheus-adapter
app.kubernetes.io/part-of: metalk8s
chart: prometheus-adapter-2.12.2
chart: prometheus-adapter-2.14.2
heritage: metalk8s
release: prometheus-adapter
name: prometheus-adapter-server-resources
Expand All @@ -184,7 +187,7 @@ metadata:
app.kubernetes.io/managed-by: salt
app.kubernetes.io/name: prometheus-adapter
app.kubernetes.io/part-of: metalk8s
chart: prometheus-adapter-2.12.2
chart: prometheus-adapter-2.14.2
heritage: metalk8s
release: prometheus-adapter
name: prometheus-adapter-metrics
Expand All @@ -209,7 +212,7 @@ metadata:
app.kubernetes.io/managed-by: salt
app.kubernetes.io/name: prometheus-adapter
app.kubernetes.io/part-of: metalk8s
chart: prometheus-adapter-2.12.2
chart: prometheus-adapter-2.14.2
heritage: metalk8s
release: prometheus-adapter
name: prometheus-adapter-system-auth-delegator
Expand All @@ -231,7 +234,7 @@ metadata:
app.kubernetes.io/managed-by: salt
app.kubernetes.io/name: prometheus-adapter
app.kubernetes.io/part-of: metalk8s
chart: prometheus-adapter-2.12.2
chart: prometheus-adapter-2.14.2
heritage: metalk8s
release: prometheus-adapter
name: prometheus-adapter-resource-reader
Expand All @@ -253,7 +256,7 @@ metadata:
app.kubernetes.io/managed-by: salt
app.kubernetes.io/name: prometheus-adapter
app.kubernetes.io/part-of: metalk8s
chart: prometheus-adapter-2.12.2
chart: prometheus-adapter-2.14.2
heritage: metalk8s
release: prometheus-adapter
name: prometheus-adapter-hpa-controller
Expand All @@ -275,7 +278,7 @@ metadata:
app.kubernetes.io/managed-by: salt
app.kubernetes.io/name: prometheus-adapter
app.kubernetes.io/part-of: metalk8s
chart: prometheus-adapter-2.12.2
chart: prometheus-adapter-2.14.2
heritage: metalk8s
release: prometheus-adapter
name: prometheus-adapter-hpa-controller-metrics
Expand All @@ -297,7 +300,7 @@ metadata:
app.kubernetes.io/managed-by: salt
app.kubernetes.io/name: prometheus-adapter
app.kubernetes.io/part-of: metalk8s
chart: prometheus-adapter-2.12.2
chart: prometheus-adapter-2.14.2
heritage: metalk8s
release: prometheus-adapter
name: prometheus-adapter-auth-reader
Expand All @@ -320,7 +323,7 @@ metadata:
app.kubernetes.io/managed-by: salt
app.kubernetes.io/name: prometheus-adapter
app.kubernetes.io/part-of: metalk8s
chart: prometheus-adapter-2.12.2
chart: prometheus-adapter-2.14.2
heritage: metalk8s
release: prometheus-adapter
name: prometheus-adapter
Expand All @@ -343,7 +346,7 @@ metadata:
app.kubernetes.io/managed-by: salt
app.kubernetes.io/name: prometheus-adapter
app.kubernetes.io/part-of: metalk8s
chart: prometheus-adapter-2.12.2
chart: prometheus-adapter-2.14.2
heritage: metalk8s
release: prometheus-adapter
name: prometheus-adapter
Expand All @@ -357,13 +360,13 @@ spec:
template:
metadata:
annotations:
checksum/config: 78db41895b530d031fc6986d06be80739327f0d2777cb46288a7923ea5211e63
checksum/config: 3e715c75546058341566d8edc8b37751d58f8e6a4de8901e830278b5e535050a
labels:
app: prometheus-adapter
app.kubernetes.io/managed-by: salt
app.kubernetes.io/name: prometheus-adapter
app.kubernetes.io/part-of: metalk8s
chart: prometheus-adapter-2.12.2
chart: prometheus-adapter-2.14.2
heritage: metalk8s
release: prometheus-adapter
name: prometheus-adapter
Expand All @@ -388,6 +391,7 @@ spec:
port: https
scheme: HTTPS
initialDelaySeconds: 30
timeoutSeconds: 5
name: prometheus-adapter
ports:
- containerPort: 6443
Expand All @@ -398,6 +402,7 @@ spec:
port: https
scheme: HTTPS
initialDelaySeconds: 30
timeoutSeconds: 5
securityContext:
allowPrivilegeEscalation: false
capabilities:
Expand Down Expand Up @@ -438,7 +443,7 @@ metadata:
app.kubernetes.io/managed-by: salt
app.kubernetes.io/name: prometheus-adapter
app.kubernetes.io/part-of: metalk8s
chart: prometheus-adapter-2.12.2
chart: prometheus-adapter-2.14.2
heritage: metalk8s
release: prometheus-adapter
name: v1beta1.custom.metrics.k8s.io
Expand All @@ -461,7 +466,7 @@ metadata:
app.kubernetes.io/managed-by: salt
app.kubernetes.io/name: prometheus-adapter
app.kubernetes.io/part-of: metalk8s
chart: prometheus-adapter-2.12.2
chart: prometheus-adapter-2.14.2
heritage: metalk8s
release: prometheus-adapter
name: v1beta1.metrics.k8s.io
Expand Down