[stable/ambassador] Add PodDisruptionBudget (#17759)

* Add PodDisruptionBudget template

Signed-off-by: Phil Peble <ppeble@activecampaign.com>

* Fix typos in README and templates/NOTES.txt

Signed-off-by: Phil Peble <ppeble@activecampaign.com>

* Bump stable/ambassador chart version to 4.3.0

Signed-off-by: Phil Peble <ppeble@activecampaign.com>
This commit is contained in:
Phil Peble
2019-10-08 01:33:12 -07:00
committed by Kubernetes Prow Robot
parent c00f7fa914
commit 3ee6550142
5 changed files with 25 additions and 3 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ apiVersion: v1
appVersion: 0.82.0
description: A Helm chart for Datawire Ambassador
name: ambassador
version: 4.2.1
version: 4.3.0
icon: https://www.getambassador.io/images/logo.png
home: https://www.getambassador.io/
sources:
+3 -1
View File
@@ -69,6 +69,7 @@ The following tables lists the configurable parameters of the Ambassador chart a
| `podAnnotations` | Additional annotations for ambassador pods | `{}` |
| `deploymentAnnotations` | Additional annotations for ambassador DaemonSet/Deployment | `{}` |
| `podLabels` | Additional labels for ambassador pods | |
| `affinity` | Affinity for ambassador pods | `{}` |
| `priorityClassName` | The name of the priorityClass for the ambassador DaemonSet/Deployment | `""` |
| `rbac.create` | If `true`, create and use RBAC resources | `true` |
| `rbac.podSecurityPolicies` | pod security polices to bind to | |
@@ -104,11 +105,12 @@ The following tables lists the configurable parameters of the Ambassador chart a
| `pro.rateLimit.redis.annotations.deployment` | Annotations for the redis deployment | `{}` |
| `pro.rateLimit.redis.annotations.service` | Annotations for the redis service | `{}` |
| `pro.rateLimit.redis.resources` | Set resource requests and limits for the rate limit service's redis instance | `{}` |
| `pro.devPortal.enabled` | Enables the Ambassador Devloper Portal | `false` |
| `pro.devPortal.enabled` | Enables the Ambassador Developer Portal | `false` |
| `autoscaling.enabled` | If true, creates Horizontal Pod Autoscaler | `false` |
| `autoscaling.minReplica` | If autoscaling enabled, this field sets minimum replica count | `2` |
| `autoscaling.maxReplica` | If autoscaling enabled, this field sets maximum replica count | `5` |
| `autoscaling.metrics` | If autoscaling enabled, configure hpa metrics | |
| `podDisruptionBudget` | Pod disruption budget rules | `{}` |
| `prometheusExporter.enabled` | DEPRECATED: Prometheus exporter side-car enabled | `false` |
| `prometheusExporter.pullPolicy` | DEPRECATED: Image pull policy | `IfNotPresent` |
| `prometheusExporter.repository` | DEPRECATED: Prometheus exporter image | `prom/statsd-exporter` |
+1 -1
View File
@@ -1,4 +1,4 @@
Congratuations! You've successfully installed Ambassador.
Congratulations! You've successfully installed Ambassador.
For help, visit our Slack at https://d6e.co/slack or view the documentation online at https://www.getambassador.io.
+18
View File
@@ -0,0 +1,18 @@
{{- if .Values.podDisruptionBudget }}
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
name: {{ include "ambassador.fullname" . }}
labels:
app.kubernetes.io/name: {{ include "ambassador.name" . }}
app.kubernetes.io/part-of: {{ .Release.Name }}
helm.sh/chart: {{ include "ambassador.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
spec:
selector:
matchLabels:
app.kubernetes.io/name: {{ include "ambassador.name" . }}
app.kubernetes.io/part-of: {{ .Release.Name }}
{{ toYaml .Values.podDisruptionBudget | indent 2 }}
{{- end }}
+2
View File
@@ -22,6 +22,8 @@ autoscaling:
name: memory
targetAverageUtilization: 60
podDisruptionBudget: {}
# namespace:
# name: default