Skip to content

Commit ae0c076

Browse files
authored
Merge pull request #5 from scalyr/liveness_probe_update
Bump livenessProbe.timeoutSeconds from 1 to 10 seconds
2 parents 976ec1d + 572608e commit ae0c076

File tree

7 files changed

+36
-13
lines changed

7 files changed

+36
-13
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,17 @@
22

33
For actual scalyr agent changelog, please see https://github.com/scalyr/scalyr-agent-2/blob/master/CHANGELOG.md.
44

5+
## 0.2.6
6+
7+
- Bump default livenessProbe ``timeoutSeconds`` to ``10`` and allow user to override it via
8+
``livenessProbe.timeoutSeconds`` config option.
9+
510
## 0.2.5
611

712
- Update NOTES file to print information on how to retrieve agent pod logs after helm chart
813
installation.
9-
- Add agent liveness probe which utilizes ``scalyr-agent status -H`` command.
14+
- Add agent liveness probe which utilizes ``scalyr-agent status -H`` command. Probe can be disabled
15+
using ``livenessProbe.enabled`` config option.
1016
- Kubelet CA verification has been enabled by default. If you want to disable it, you can set
1117
``k8s.verifyKubeletQueries`` config option to ``false``.
1218
- Chart installation will now fail early if ``scalyr.config`` entry value contains a string value

README.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# scalyr-agent Helm Chart
22

3-
[![Latest stable release of the Helm chart](https://img.shields.io/badge/dynamic/json.svg?label=stable&url=https://scalyr.github.io/helm-scalyr/info.json&query=$.scalyrAgent&colorB=orange&logo=helm)](https://scalyr.github.io/helm-scalyr/) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Lint and Tests](https://github.com/scalyr/helm-scalyr/actions/workflows/lint_tests.yml/badge.svg)](https://github.com/scalyr/helm-scalyr/actions/workflows/lint_tests.yml) [![End to End Tests](https://github.com/scalyr/helm-scalyr/actions/workflows/end_to_end_tests.yaml/badge.svg)](https://github.com/scalyr/helm-scalyr/actions/workflows/end_to_end_tests.yaml)
3+
[![Latest stable release of the Helm chart](https://img.shields.io/badge/dynamic/json.svg?label=stable&url=https://scalyr.github.io/helm-scalyr/info.json&query=$.scalyrAgent&colorB=blue&logo=helm)](https://scalyr.github.io/helm-scalyr/) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Lint and Tests](https://github.com/scalyr/helm-scalyr/actions/workflows/lint_tests.yml/badge.svg?branch=main)](https://github.com/scalyr/helm-scalyr/actions/workflows/lint_tests.yml) [![End to End Tests](https://github.com/scalyr/helm-scalyr/actions/workflows/end_to_end_tests.yaml/badge.svg?branch=main)](https://github.com/scalyr/helm-scalyr/actions/workflows/end_to_end_tests.yaml)
44

55
## Introduction
66

@@ -50,6 +50,10 @@ If you'd like to create a different Scalyr agent, you can set `controllerType` t
5050

5151
**Homepage:** <https://github.com/scalyr/helm-scalyr>
5252

53+
## Changelog
54+
55+
For chart changelog, please see <https://github.com/scalyr/helm-scalyr/blob/main/CHANGELOG.md>.
56+
5357
## Maintainers
5458

5559
| Name | Email | Url |
@@ -63,7 +67,6 @@ If you'd like to create a different Scalyr agent, you can set `controllerType` t
6367

6468
## Values
6569

66-
6770
| Key | Type | Default | Description |
6871
|-----|------|---------|-------------|
6972
| affinity | object | `{}` | optional affinity rules |
@@ -74,6 +77,8 @@ If you'd like to create a different Scalyr agent, you can set `controllerType` t
7477
| image.repository | string | `"scalyr/scalyr-k8s-agent"` | Image to use. Defaults to the official scalyr agent image |
7578
| image.tag | string | `""` | Tag to use. Defaults to appVersion from the chart metadata |
7679
| imagePullSecrets | list | `[]` | Image pull secrets to use if the image is in a private repository |
80+
| livenessProbe.enabled | bool | `true` | set to false to disable default liveness probe which utilizes scalyr-agent-2 status -H command |
81+
| livenessProbe.timeoutSeconds | int | `10` | timeout in seconds after which probe should be considered as failed if there is no response |
7782
| nameOverride | string | `""` | Override the default name that helm calculates |
7883
| nodeSelector | object | `{}` | optional node selectors |
7984
| podAnnotations | object | `{}` | optional pod annotations |
@@ -88,7 +93,7 @@ If you'd like to create a different Scalyr agent, you can set `controllerType` t
8893
| scalyr.k8s.enableEvents | bool | `true` | Enable fetching Kubernetes events |
8994
| scalyr.k8s.enableLogs | bool | `true` | Enable fetching Pod/Container logs from Kubernetes |
9095
| scalyr.k8s.enableMetrics | bool | `true` | Enable fetching Kubernetes metrics. This requires scalyr.k8s.enableLogs to be true |
91-
| scalyr.k8s.verifyKubeletQueries | string | `"false"` | Set this to true and set up scalyr.k8s.caCert to activate TLS validation of queries to the k8s kubelet |
96+
| scalyr.k8s.verifyKubeletQueries | bool | `true` | Set this to false to disable TLS cert validation of queries to k8s kubelet. By default cert validation is enabled and connection is verified using the CA configured via the service account certificate (/run/secrets/kubernetes.io/serviceaccount/ca.crt file). If you want to use a custom CA bundle, you can do that by setting scalyr.k8s.caCert config option to point to this file (this file needs to be available inside the agent container). In some test environments such as minikube where self signed certs are used you may want to set this to false. |
9297
| scalyr.server | string | `"agent.scalyr.com"` | The Scalyr server to send logs to. Use eu.scalyr.com for EU |
9398
| securityContext | object | `{}` | optional security context entries |
9499
| tolerations | list | `[{"effect":"NoSchedule","key":"node-role.kubernetes.io/master","operator":"Exists"}]` | Pod tolerations. Defaults to the values documented in the official [Installation guide](https://app.scalyr.com/help/install-agent-kubernetes) |
@@ -197,13 +202,17 @@ content or metadata has been updated).
197202
198203
Helm Chart repository is available at https://scalyr.github.io/helm-scalyr/.
199204
200-
## License
205+
## Copyright, License, and Contributor Agreement
201206
202207
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except
203208
in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:
204209
205210
http://www.apache.org/licenses/LICENSE-2.0
206211
212+
By contributing you agree that these contributions are your own (or approved by your employer)
213+
and you grant a full, complete, irrevocable copyright license to all users and developers of the
214+
project, present and future, pursuant to the license of the project.
215+
207216
## Thank You
208217
209218
The chart has been originally developed by [Dennis Ploeger](https://github.com/dploeger) from

README.md.gotmpl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{ template "chart.header" . }}
22
{{ template "chart.deprecationWarning" . }}
33

4-
[![Latest stable release of the Helm chart](https://img.shields.io/badge/dynamic/json.svg?label=stable&url=https://scalyr.github.io/helm-scalyr/info.json&query=$.scalyrAgent&colorB=orange&logo=helm)](https://scalyr.github.io/helm-scalyr/) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Lint and Tests](https://github.com/scalyr/helm-scalyr/actions/workflows/lint_tests.yml/badge.svg)](https://github.com/scalyr/helm-scalyr/actions/workflows/lint_tests.yml) [![End to End Tests](https://github.com/scalyr/helm-scalyr/actions/workflows/end_to_end_tests.yaml/badge.svg)](https://github.com/scalyr/helm-scalyr/actions/workflows/end_to_end_tests.yaml)
4+
[![Latest stable release of the Helm chart](https://img.shields.io/badge/dynamic/json.svg?label=stable&url=https://scalyr.github.io/helm-scalyr/info.json&query=$.scalyrAgent&colorB=blue&logo=helm)](https://scalyr.github.io/helm-scalyr/) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Lint and Tests](https://github.com/scalyr/helm-scalyr/actions/workflows/lint_tests.yml/badge.svg?branch=main)](https://github.com/scalyr/helm-scalyr/actions/workflows/lint_tests.yml) [![End to End Tests](https://github.com/scalyr/helm-scalyr/actions/workflows/end_to_end_tests.yaml/badge.svg?branch=main)](https://github.com/scalyr/helm-scalyr/actions/workflows/end_to_end_tests.yaml)
55

66
## Introduction
77

@@ -129,15 +129,18 @@ content or metadata has been updated).
129129

130130
Helm Chart repository is available at https://scalyr.github.io/helm-scalyr/.
131131

132-
## License
132+
## Copyright, License, and Contributor Agreement
133133

134134
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except
135135
in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:
136136

137137
http://www.apache.org/licenses/LICENSE-2.0
138138

139-
## Thank You
139+
By contributing you agree that these contributions are your own (or approved by your employer)
140+
and you grant a full, complete, irrevocable copyright license to all users and developers of the
141+
project, present and future, pursuant to the license of the project.
140142

143+
## Thank You
141144

142145
The chart has been originally developed by [Dennis Ploeger](https://github.com/dploeger) from
143146
[dodevops](https://github.com/dodevops). They have agreed to transfer the ownership to Scalyr so we

charts/scalyr-agent/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: scalyr-agent
33
description: A Helm chart for deploying the Scalyr agent
44
type: application
5-
version: 0.2.5
5+
version: 0.2.6
66
appVersion: 2.1.24
77
keywords:
88
- scalyr

charts/scalyr-agent/templates/daemonset.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ spec:
5757
{{- toYaml .Values.securityContext | nindent 12 }}
5858
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
5959
imagePullPolicy: {{ .Values.image.pullPolicy }}
60-
{{- if .Values.livenessProbe }}
60+
{{- if .Values.livenessProbe.enabled }}
6161
livenessProbe:
6262
exec:
6363
command:
@@ -66,6 +66,7 @@ spec:
6666
- -H
6767
initialDelaySeconds: 60
6868
periodSeconds: 60
69+
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
6970
{{- end }}
7071
env:
7172
- name: "SCALYR_SERVER"

charts/scalyr-agent/templates/deployment.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ spec:
5858
{{- toYaml .Values.securityContext | nindent 12 }}
5959
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
6060
imagePullPolicy: {{ .Values.image.pullPolicy }}
61-
{{- if .Values.livenessProbe }}
61+
{{- if .Values.livenessProbe.enabled }}
6262
livenessProbe:
6363
exec:
6464
command:
@@ -67,6 +67,7 @@ spec:
6767
- -H
6868
initialDelaySeconds: 60
6969
periodSeconds: 60
70+
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
7071
{{- end }}
7172
env:
7273
- name: "SCALYR_SERVER"

charts/scalyr-agent/values.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,11 @@ podSecurityContext: {}
6868
# securityContext -- optional security context entries
6969
securityContext: {}
7070

71-
# livenessProbe -- set to false to disable default liveness probe which utilizes scalyr-agent-2 status -H command
72-
livenessProbe: true
71+
livenessProbe:
72+
# livenessProbe.enabled -- set to false to disable default liveness probe which utilizes scalyr-agent-2 status -H command
73+
enabled: true
74+
# livenessProbe.timeoutSeconds -- timeout in seconds after which probe should be considered as failed if there is no response
75+
timeoutSeconds: 10
7376

7477
# resources -- Pod resources. Defaults to the values documented in the official
7578
# [Installation guide](https://app.scalyr.com/help/install-agent-kubernetes)

0 commit comments

Comments
 (0)