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

feat(chart): allow configuration of k8s_sensor pod disruption budget #18

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
11 changes: 10 additions & 1 deletion instana-agent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,12 @@ The following table lists the configurable parameters of the Instana chart and t
| `serviceAccount.name` | Name of the ServiceAccount to use | `instana-agent` |
| `zone.name` | Zone that detected technologies will be assigned to | `nil` You must provide either `zone.name` or `cluster.name`, see [above](#installation) for details |
| `zones` | Multi-zone daemonset configuration. | `nil` see [below](#multiple-zones) for details |
| `k8s_sensor.podDisruptionBudget.enabled` | Whether to create DisruptionBudget for k8sensor to limit the number of concurrent disruptions | `false` |
| `k8s_sensor.podDisruptionBudget.enabled` | Whether to create DisruptionBudget for k8sensor to limit the number of concurrent disruptions |
`false` |
| `k8s_sensor.podDisruptionBudget.minAvailable` | Number or percentage of pods that must still be available after the eviction. |
`1` |
| `k8s_sensor.podDisruptionBudget.maxUnavailable` | Number or percentage of pods that can be unavailable after the eviction. |
`null` |
| `k8s_sensor.deployment.pod.affinity` | `k8sensor` deployment affinity format | `podAntiAffinity` defined in `values.yaml` |

### Agent Modes
Expand Down Expand Up @@ -359,6 +364,10 @@ zones:

## Changelog

### 1.2.68

* Allow configuration of k8s_sensor pod disruption budget

### 1.2.67

* Fix variable name in the K8s deployment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ spec:
selector:
matchLabels:
{{- include "k8s-sensor.selectorLabels" . | nindent 6 }}
minAvailable: {{ sub (int .Values.k8s_sensor.deployment.replicas) 1 }}
minAvailable: {{ .Values.k8s_sensor.podDisruptionBudget.minAvailable }}
maxUnavailable: {{ .Values.k8s_sensor.podDisruptionBudget.maxUnavailable }}
{{- end -}}
{{- end -}}
2 changes: 2 additions & 0 deletions instana-agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,8 @@ k8s_sensor:
podDisruptionBudget:
# Specifies whether or not to setup a pod disruption budget for the k8sensor deployment
enabled: false
minAvailable: 1
maxUnavailable: null

kubernetes:
# Configures use of a Deployment for the Kubernetes sensor rather than as a potential member of the DaemonSet. Is only accepted if k8s_sensor.deployment.enabled=false
Expand Down