Skip to content
This repository was archived by the owner on Jul 24, 2019. It is now read-only.

Commit 7cfe681

Browse files
authored
Merge pull request #97 from alanmeadows/rolling_updates
Consistent Rolling Update Parameters for all Existing Charts
2 parents 2a321ff + c9d27ba commit 7cfe681

12 files changed

Lines changed: 91 additions & 1 deletion

File tree

glance/templates/api.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ metadata:
44
name: glance-api
55
spec:
66
replicas: {{ .Values.replicas }}
7+
revisionHistoryLimit: {{ .Values.upgrades.revision_history }}
8+
strategy:
9+
type: {{ .Values.upgrades.pod_replacement_strategy }}
10+
{{ if eq .Values.upgrades.pod_replacement_strategy "RollingUpdate" }}
11+
rollingUpdate:
12+
maxUnavailable: {{ .Values.upgrades.rolling_update.max_unavailable }}
13+
maxSurge: {{ .Values.upgrades.rolling_update.max_surge }}
14+
{{ end }}
715
template:
816
metadata:
917
labels:
@@ -37,6 +45,7 @@ spec:
3745
spec:
3846
nodeSelector:
3947
{{ .Values.labels.node_selector_key }}: {{ .Values.labels.node_selector_value }}
48+
4049
containers:
4150
- name: glance-api
4251
image: {{ .Values.images.api }}

glance/values.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ images:
1717
post: quay.io/stackanetes/stackanetes-kolla-toolbox:newton
1818
pull_policy: "IfNotPresent"
1919

20+
upgrades:
21+
revision_history: 3
22+
pod_replacement_strategy: RollingUpdate
23+
rolling_update:
24+
max_unavailable: 1
25+
max_surge: 3
26+
2027
keystone:
2128
auth_uri: "http://keystone-api:5000"
2229
auth_url: "http://keystone-api:35357"

horizon/templates/deployment.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ metadata:
44
name: horizon
55
spec:
66
replicas: {{ .Values.replicas }}
7+
revisionHistoryLimit: {{ .Values.upgrades.revision_history }}
8+
strategy:
9+
type: {{ .Values.upgrades.pod_replacement_strategy }}
10+
{{ if eq .Values.upgrades.pod_replacement_strategy "RollingUpdate" }}
11+
rollingUpdate:
12+
maxUnavailable: {{ .Values.upgrades.rolling_update.max_unavailable }}
13+
maxSurge: {{ .Values.upgrades.rolling_update.max_surge }}
14+
{{ end }}
715
template:
816
metadata:
917
labels:

horizon/values.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ images:
1010
horizon: quay.io/stackanetes/stackanetes-horizon:newton
1111
pull_policy: "IfNotPresent"
1212

13+
upgrades:
14+
revision_history: 3
15+
pod_replacement_strategy: RollingUpdate
16+
rolling_update:
17+
max_unavailable: 1
18+
max_surge: 3
19+
1320
labels:
1421
node_selector_key: openstack-control-plane
1522
node_selector_value: enabled

keystone/templates/deployment.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ metadata:
44
name: keystone-api
55
spec:
66
replicas: {{ .Values.replicas }}
7+
revisionHistoryLimit: {{ .Values.upgrades.revision_history }}
8+
strategy:
9+
type: {{ .Values.upgrades.pod_replacement_strategy }}
10+
{{ if eq .Values.upgrades.pod_replacement_strategy "RollingUpdate" }}
11+
rollingUpdate:
12+
maxUnavailable: {{ .Values.upgrades.rolling_update.max_unavailable }}
13+
maxSurge: {{ .Values.upgrades.rolling_update.max_surge }}
14+
{{ end }}
715
template:
816
metadata:
917
labels:

keystone/values.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ images:
1616
entrypoint: quay.io/stackanetes/kubernetes-entrypoint:v0.1.0
1717
pull_policy: "IfNotPresent"
1818

19+
upgrades:
20+
revision_history: 3
21+
pod_replacement_strategy: RollingUpdate
22+
rolling_update:
23+
max_unavailable: 1
24+
max_surge: 3
25+
1926
keystone:
2027
version: v3
2128
scheme: http

memcached/templates/deployment.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ metadata:
44
name: memcached
55
spec:
66
replicas: {{ .Values.resources.memcached.replicas }}
7+
revisionHistoryLimit: {{ .Values.upgrades.revision_history }}
8+
strategy:
9+
type: {{ .Values.upgrades.pod_replacement_strategy }}
10+
{{ if eq .Values.upgrades.pod_replacement_strategy "RollingUpdate" }}
11+
rollingUpdate:
12+
maxUnavailable: {{ .Values.upgrades.rolling_update.max_unavailable }}
13+
maxSurge: {{ .Values.upgrades.rolling_update.max_surge }}
14+
{{ end }}
715
template:
816
metadata:
917
labels:

memcached/values.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ images:
77
memcached: quay.io/stackanetes/stackanetes-memcached:newton
88
pull_policy: "IfNotPresent"
99

10+
upgrades:
11+
revision_history: 3
12+
pod_replacement_strategy: RollingUpdate
13+
rolling_update:
14+
max_unavailable: 1
15+
max_surge: 3
16+
1017
labels:
1118
node_selector_key: openstack-control-plane
1219
node_selector_value: enabled

neutron/templates/deployment-server.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ metadata:
44
name: neutron-server
55
spec:
66
replicas: {{ .Values.replicas.server }}
7+
revisionHistoryLimit: {{ .Values.upgrades.revision_history }}
8+
strategy:
9+
type: {{ .Values.upgrades.pod_replacement_strategy }}
10+
{{ if eq .Values.upgrades.pod_replacement_strategy "RollingUpdate" }}
11+
rollingUpdate:
12+
maxUnavailable: {{ .Values.upgrades.rolling_update.max_unavailable }}
13+
maxSurge: {{ .Values.upgrades.rolling_update.max_surge }}
14+
{{ end }}
715
template:
816
metadata:
917
labels:

neutron/values.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ images:
2020
entrypoint: quay.io/stackanetes/kubernetes-entrypoint:v0.1.0
2121
pull_policy: "IfNotPresent"
2222

23+
upgrades:
24+
revision_history: 3
25+
pod_replacement_strategy: RollingUpdate
26+
rolling_update:
27+
max_unavailable: 1
28+
max_surge: 3
29+
2330
labels:
2431
# ovs is a special case, requiring a special
2532
# label that can apply to both control hosts

0 commit comments

Comments
 (0)