Skip to content

Commit c16ed87

Browse files
authored
Add PodDisruptionBudgets to Teleport (#217)
1 parent 42cf3c2 commit c16ed87

File tree

8 files changed

+60
-6
lines changed

8 files changed

+60
-6
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: v1
2-
appVersion: "3.1.8"
2+
appVersion: "4.0.9"
33
description: A Helm chart for Teleport Auth service
44
name: teleport-ent-auth
5-
version: 0.1.1
5+
version: 0.2.0

incubator/teleport-ent-auth/templates/deployment.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ spec:
1313
strategy:
1414
type: RollingUpdate
1515
rollingUpdate:
16-
maxUnavailable: 99%
16+
maxUnavailable: {{ default 0 .Values.maxUnavailable }}
17+
maxSurge: 1
1718
selector:
1819
matchLabels:
1920
app.kubernetes.io/name: {{ include "teleport-auth.name" . }}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
apiVersion: policy/v1beta1
2+
kind: PodDisruptionBudget
3+
metadata:
4+
name: {{ include "teleport-auth.fullname" . }}
5+
labels:
6+
app.kubernetes.io/name: {{ include "teleport-auth.name" . }}
7+
app.kubernetes.io/component: "{{ .Values.name }}"
8+
helm.sh/chart: {{ include "teleport-auth.chart" . }}
9+
app.kubernetes.io/instance: {{ .Release.Name }}
10+
app.kubernetes.io/managed-by: {{ .Release.Service }}
11+
spec:
12+
selector:
13+
matchLabels:
14+
app.kubernetes.io/name: {{ include "teleport-auth.name" . }}
15+
app.kubernetes.io/instance: {{ .Release.Name }}
16+
app.kubernetes.io/component: "{{ .Values.name }}"
17+
{{- if .Values.minAvailable }}
18+
minAvailable: {{ .Values.minAvailable }}
19+
{{- else }}
20+
maxUnavailable: {{ default 0 .Values.maxUnavailable }}
21+
{{- end }}

incubator/teleport-ent-auth/values.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ nameOverride: teleport-auth
88

99
## Teleport service replicas
1010
## See https://gravitational.com/teleport/docs/admin-guide/#auth-server-ha
11-
replicaCount: 1
11+
replicaCount: 2
12+
maxUnavailable: 50%
1213

1314
rbac:
1415
create: true
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: v1
2-
appVersion: "3.2.2"
2+
appVersion: "4.0.9"
33
description: A Helm chart for Teleport Proxy service
44
name: teleport-ent-proxy
5-
version: 0.3.0
5+
version: 0.4.0

incubator/teleport-ent-proxy/templates/deployment.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,22 @@ metadata:
1010
app.kubernetes.io/managed-by: {{ .Release.Service }}
1111
spec:
1212
replicas: {{ .Values.replicaCount }}
13+
strategy:
14+
type: RollingUpdate
15+
rollingUpdate:
16+
maxUnavailable: {{ default 0 .Values.maxUnavailable }}
17+
maxSurge: 1
1318
selector:
1419
matchLabels:
1520
app.kubernetes.io/name: {{ include "teleport-proxy.name" . }}
1621
app.kubernetes.io/component: "{{ .Values.name }}"
1722
app.kubernetes.io/instance: {{ .Release.Name }}
1823
template:
1924
metadata:
25+
{{- with .Values.podAnnotations }}
26+
annotations:
27+
{{ toYaml . | indent 8 }}
28+
{{- end }}
2029
labels:
2130
app.kubernetes.io/name: {{ include "teleport-proxy.name" . }}
2231
app.kubernetes.io/component: "{{ .Values.name }}"
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
apiVersion: policy/v1beta1
2+
kind: PodDisruptionBudget
3+
metadata:
4+
name: {{ include "teleport-proxy.fullname" . }}
5+
labels:
6+
app.kubernetes.io/name: {{ include "teleport-proxy.name" . }}
7+
app.kubernetes.io/component: "{{ .Values.name }}"
8+
helm.sh/chart: {{ include "teleport-proxy.chart" . }}
9+
app.kubernetes.io/instance: {{ .Release.Name }}
10+
app.kubernetes.io/managed-by: {{ .Release.Service }}
11+
spec:
12+
selector:
13+
matchLabels:
14+
app.kubernetes.io/name: {{ include "teleport-proxy.name" . }}
15+
app.kubernetes.io/component: "{{ .Values.name }}"
16+
app.kubernetes.io/instance: {{ .Release.Name }}
17+
{{- if .Values.minAvailable }}
18+
minAvailable: {{ .Values.minAvailable }}
19+
{{- else }}
20+
maxUnavailable: {{ default 0 .Values.maxUnavailable }}
21+
{{- end }}

incubator/teleport-ent-proxy/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ name: proxy
66
nameOverride: teleport-proxy
77

88
replicaCount: 2
9+
maxUnavailable: 50%
910

1011
## Configuration to be copied into Teleport container
1112
## Each entry must be an inline file that will be written to /etc/teleport

0 commit comments

Comments
 (0)