Add rolling update and template hashing to new nova chart
This commit is contained in:
parent
bab75eff7f
commit
7c6e26f1ba
@ -8,6 +8,8 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: nova-compute
|
app: nova-compute
|
||||||
annotations:
|
annotations:
|
||||||
|
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "hash" }}
|
||||||
|
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "hash" }}
|
||||||
pod.beta.kubernetes.io/init-containers: '[
|
pod.beta.kubernetes.io/init-containers: '[
|
||||||
{
|
{
|
||||||
"name": "init",
|
"name": "init",
|
||||||
|
@ -8,6 +8,8 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: nova-libvirt
|
app: nova-libvirt
|
||||||
annotations:
|
annotations:
|
||||||
|
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "hash" }}
|
||||||
|
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "hash" }}
|
||||||
pod.beta.kubernetes.io/init-containers: '[
|
pod.beta.kubernetes.io/init-containers: '[
|
||||||
{
|
{
|
||||||
"name": "init",
|
"name": "init",
|
||||||
|
@ -4,11 +4,21 @@ metadata:
|
|||||||
name: nova-api
|
name: nova-api
|
||||||
spec:
|
spec:
|
||||||
replicas: {{ .Values.control_replicas }}
|
replicas: {{ .Values.control_replicas }}
|
||||||
|
revisionHistoryLimit: {{ .Values.upgrades.revision_history }}
|
||||||
|
strategy:
|
||||||
|
type: {{ .Values.upgrades.pod_replacement_strategy }}
|
||||||
|
{{ if eq .Values.upgrades.pod_replacement_strategy "RollingUpdate" }}
|
||||||
|
rollingUpdate:
|
||||||
|
maxUnavailable: {{ .Values.upgrades.rolling_update.max_unavailable }}
|
||||||
|
maxSurge: {{ .Values.upgrades.rolling_update.max_surge }}
|
||||||
|
{{ end }}
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: nova-api
|
app: nova-api
|
||||||
annotations:
|
annotations:
|
||||||
|
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "hash" }}
|
||||||
|
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "hash" }}
|
||||||
pod.beta.kubernetes.io/init-containers: '[
|
pod.beta.kubernetes.io/init-containers: '[
|
||||||
{
|
{
|
||||||
"name": "init",
|
"name": "init",
|
||||||
|
@ -4,11 +4,21 @@ metadata:
|
|||||||
name: nova-osapi
|
name: nova-osapi
|
||||||
spec:
|
spec:
|
||||||
replicas: {{ .Values.control_replicas }}
|
replicas: {{ .Values.control_replicas }}
|
||||||
|
revisionHistoryLimit: {{ .Values.upgrades.revision_history }}
|
||||||
|
strategy:
|
||||||
|
type: {{ .Values.upgrades.pod_replacement_strategy }}
|
||||||
|
{{ if eq .Values.upgrades.pod_replacement_strategy "RollingUpdate" }}
|
||||||
|
rollingUpdate:
|
||||||
|
maxUnavailable: {{ .Values.upgrades.rolling_update.max_unavailable }}
|
||||||
|
maxSurge: {{ .Values.upgrades.rolling_update.max_surge }}
|
||||||
|
{{ end }}
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: nova-osapi
|
app: nova-osapi
|
||||||
annotations:
|
annotations:
|
||||||
|
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "hash" }}
|
||||||
|
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "hash" }}
|
||||||
pod.beta.kubernetes.io/init-containers: '[
|
pod.beta.kubernetes.io/init-containers: '[
|
||||||
{
|
{
|
||||||
"name": "init",
|
"name": "init",
|
||||||
|
@ -4,11 +4,21 @@ metadata:
|
|||||||
name: nova-conductor
|
name: nova-conductor
|
||||||
spec:
|
spec:
|
||||||
replicas: {{ .Values.control_replicas }}
|
replicas: {{ .Values.control_replicas }}
|
||||||
|
revisionHistoryLimit: {{ .Values.upgrades.revision_history }}
|
||||||
|
strategy:
|
||||||
|
type: {{ .Values.upgrades.pod_replacement_strategy }}
|
||||||
|
{{ if eq .Values.upgrades.pod_replacement_strategy "RollingUpdate" }}
|
||||||
|
rollingUpdate:
|
||||||
|
maxUnavailable: {{ .Values.upgrades.rolling_update.max_unavailable }}
|
||||||
|
maxSurge: {{ .Values.upgrades.rolling_update.max_surge }}
|
||||||
|
{{ end }}
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: nova-conductor
|
app: nova-conductor
|
||||||
annotations:
|
annotations:
|
||||||
|
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "hash" }}
|
||||||
|
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "hash" }}
|
||||||
pod.beta.kubernetes.io/init-containers: '[
|
pod.beta.kubernetes.io/init-containers: '[
|
||||||
{
|
{
|
||||||
"name": "init",
|
"name": "init",
|
||||||
|
@ -4,11 +4,21 @@ metadata:
|
|||||||
name: nova-consoleauth
|
name: nova-consoleauth
|
||||||
spec:
|
spec:
|
||||||
replicas: {{ .Values.control_replicas }}
|
replicas: {{ .Values.control_replicas }}
|
||||||
|
revisionHistoryLimit: {{ .Values.upgrades.revision_history }}
|
||||||
|
strategy:
|
||||||
|
type: {{ .Values.upgrades.pod_replacement_strategy }}
|
||||||
|
{{ if eq .Values.upgrades.pod_replacement_strategy "RollingUpdate" }}
|
||||||
|
rollingUpdate:
|
||||||
|
maxUnavailable: {{ .Values.upgrades.rolling_update.max_unavailable }}
|
||||||
|
maxSurge: {{ .Values.upgrades.rolling_update.max_surge }}
|
||||||
|
{{ end }}
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: nova-consoleauth
|
app: nova-consoleauth
|
||||||
annotations:
|
annotations:
|
||||||
|
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "hash" }}
|
||||||
|
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "hash" }}
|
||||||
pod.beta.kubernetes.io/init-containers: '[
|
pod.beta.kubernetes.io/init-containers: '[
|
||||||
{
|
{
|
||||||
"name": "init",
|
"name": "init",
|
||||||
|
@ -4,11 +4,21 @@ metadata:
|
|||||||
name: nova-scheduler
|
name: nova-scheduler
|
||||||
spec:
|
spec:
|
||||||
replicas: {{ .Values.control_replicas }}
|
replicas: {{ .Values.control_replicas }}
|
||||||
|
revisionHistoryLimit: {{ .Values.upgrades.revision_history }}
|
||||||
|
strategy:
|
||||||
|
type: {{ .Values.upgrades.pod_replacement_strategy }}
|
||||||
|
{{ if eq .Values.upgrades.pod_replacement_strategy "RollingUpdate" }}
|
||||||
|
rollingUpdate:
|
||||||
|
maxUnavailable: {{ .Values.upgrades.rolling_update.max_unavailable }}
|
||||||
|
maxSurge: {{ .Values.upgrades.rolling_update.max_surge }}
|
||||||
|
{{ end }}
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: nova-scheduler
|
app: nova-scheduler
|
||||||
annotations:
|
annotations:
|
||||||
|
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "hash" }}
|
||||||
|
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "hash" }}
|
||||||
pod.beta.kubernetes.io/init-containers: '[
|
pod.beta.kubernetes.io/init-containers: '[
|
||||||
{
|
{
|
||||||
"name": "init",
|
"name": "init",
|
||||||
|
@ -26,6 +26,13 @@ image:
|
|||||||
entrypoint: quay.io/stackanetes/kubernetes-entrypoint:v0.1.0
|
entrypoint: quay.io/stackanetes/kubernetes-entrypoint:v0.1.0
|
||||||
pull_policy: "IfNotPresent"
|
pull_policy: "IfNotPresent"
|
||||||
|
|
||||||
|
upgrades:
|
||||||
|
revision_history: 3
|
||||||
|
pod_replacement_strategy: RollingUpdate
|
||||||
|
rolling_update:
|
||||||
|
max_unavailable: 1
|
||||||
|
max_surge: 3
|
||||||
|
|
||||||
network:
|
network:
|
||||||
ip_address: "0.0.0.0"
|
ip_address: "0.0.0.0"
|
||||||
# TODO(DTadrzak): move external IPs to common, this variable should be shared with
|
# TODO(DTadrzak): move external IPs to common, this variable should be shared with
|
||||||
|
Loading…
Reference in New Issue
Block a user