Skip to content

Commit

Permalink
[aws-load-balancer-controller]Add PodDisruptionBudget (#424)
Browse files Browse the repository at this point in the history
Signed-off-by: cw-sakamoto <sakamoto@chatwork.com>
  • Loading branch information
cw-sakamoto committed Jan 20, 2021
1 parent c70be3b commit f634a86
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stable/aws-load-balancer-controller/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
name: aws-load-balancer-controller
description: AWS Load Balancer Controller Helm chart for Kubernetes
version: 1.1.2
version: 1.1.3
appVersion: v2.1.1
home: https://github.com/aws/eks-charts
icon: https://raw.githubusercontent.com/aws/eks-charts/master/docs/logo/aws.png
Expand Down
3 changes: 2 additions & 1 deletion stable/aws-load-balancer-controller/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ helm delete aws-load-balancer-controller -n kube-system
## Configuration

The following tables lists the configurable parameters of the chart and their default values.
The default values set by the application itself can be confirmed [here](https://github.com/kubernetes-sigs/aws-load-balancer-controller/blob/main/docs/guide/controller/configurations.md).
The default values set by the application itself can be confirmed [here](https://kubernetes-sigs.github.io/aws-load-balancer-controller/guide/controller/configurations/).

| Parameter | Description | Default |
| ------------------------------------------- | -------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
Expand Down Expand Up @@ -165,3 +165,4 @@ The default values set by the application itself can be confirmed [here](https:/
| `extraVolumeMounts` | Extra volume mounts for the pod | `[]` |
| `extraVolumes` | Extra volumes for the pod | `[]` |
| `defaultTags` | Default tags to apply to all AWS resources managed by this controller | `{}` |
| `podDisruptionBudget` | PodDisruptionBudget | `{}` |
13 changes: 13 additions & 0 deletions stable/aws-load-balancer-controller/templates/pdb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{{- if .Values.podDisruptionBudget }}
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
name: {{ include "aws-load-balancer-controller.fullname" . }}
labels:
{{- include "aws-load-balancer-controller.labels" . | nindent 4 }}
spec:
selector:
matchLabels:
{{- include "aws-load-balancer-controller.selectorLabels" . | nindent 6 }}
{{- toYaml .Values.podDisruptionBudget | nindent 2 }}
{{- end }}
3 changes: 3 additions & 0 deletions stable/aws-load-balancer-controller/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,3 +166,6 @@ extraVolumes:
defaultTags: {}
# default_tag1: value1
# default_tag2: value2

podDisruptionBudget: {}
# maxUnavailable: 1

0 comments on commit f634a86

Please sign in to comment.