grouped init containers (#441)
This commit is contained in:
parent
8d2d567b30
commit
4daf6d88a2
@ -111,7 +111,7 @@ spec:
|
|||||||
- name: pulsar-bookkeeper-verify-clusterid
|
- name: pulsar-bookkeeper-verify-clusterid
|
||||||
image: "{{ template "pulsar.imageFullName" (dict "image" .Values.images.autorecovery "root" .) }}"
|
image: "{{ template "pulsar.imageFullName" (dict "image" .Values.images.autorecovery "root" .) }}"
|
||||||
imagePullPolicy: {{ .Values.images.autorecovery.pullPolicy }}
|
imagePullPolicy: {{ .Values.images.autorecovery.pullPolicy }}
|
||||||
resources: {{ toYaml .Values.initContainer_resources.verify_cluster_id | nindent 10 }}
|
resources: {{ toYaml .Values.initContainer.resources | nindent 10 }}
|
||||||
command: ["sh", "-c"]
|
command: ["sh", "-c"]
|
||||||
args:
|
args:
|
||||||
- >
|
- >
|
||||||
|
|||||||
@ -48,7 +48,7 @@ spec:
|
|||||||
- name: wait-zookeeper-ready
|
- name: wait-zookeeper-ready
|
||||||
image: "{{ template "pulsar.imageFullName" (dict "image" .Values.images.bookie "root" .) }}"
|
image: "{{ template "pulsar.imageFullName" (dict "image" .Values.images.bookie "root" .) }}"
|
||||||
imagePullPolicy: {{ .Values.images.bookie.pullPolicy }}
|
imagePullPolicy: {{ .Values.images.bookie.pullPolicy }}
|
||||||
resources: {{ toYaml .Values.initContainer_resources.zookeeper_ready | nindent 10 }}
|
resources: {{ toYaml .Values.initContainer.resources | nindent 10 }}
|
||||||
command: ["sh", "-c"]
|
command: ["sh", "-c"]
|
||||||
args:
|
args:
|
||||||
- >-
|
- >-
|
||||||
|
|||||||
@ -112,7 +112,7 @@ spec:
|
|||||||
- name: pulsar-bookkeeper-verify-clusterid
|
- name: pulsar-bookkeeper-verify-clusterid
|
||||||
image: "{{ template "pulsar.imageFullName" (dict "image" .Values.images.bookie "root" .) }}"
|
image: "{{ template "pulsar.imageFullName" (dict "image" .Values.images.bookie "root" .) }}"
|
||||||
imagePullPolicy: {{ .Values.images.bookie.pullPolicy }}
|
imagePullPolicy: {{ .Values.images.bookie.pullPolicy }}
|
||||||
resources: {{ toYaml .Values.initContainer_resources.verify_cluster_id | nindent 10 }}
|
resources: {{ toYaml .Values.initContainer.resources | nindent 10 }}
|
||||||
command: ["sh", "-c"]
|
command: ["sh", "-c"]
|
||||||
args:
|
args:
|
||||||
# only reformat bookie if bookkeeper is running without persistence
|
# only reformat bookie if bookkeeper is running without persistence
|
||||||
|
|||||||
@ -110,7 +110,7 @@ spec:
|
|||||||
- name: wait-zookeeper-ready
|
- name: wait-zookeeper-ready
|
||||||
image: "{{ template "pulsar.imageFullName" (dict "image" .Values.images.broker "root" .) }}"
|
image: "{{ template "pulsar.imageFullName" (dict "image" .Values.images.broker "root" .) }}"
|
||||||
imagePullPolicy: {{ .Values.images.broker.pullPolicy }}
|
imagePullPolicy: {{ .Values.images.broker.pullPolicy }}
|
||||||
resources: {{ toYaml .Values.initContainer_resources.zookeeper_ready | nindent 10 }}
|
resources: {{ toYaml .Values.initContainer.resources | nindent 10 }}
|
||||||
command: ["sh", "-c"]
|
command: ["sh", "-c"]
|
||||||
args:
|
args:
|
||||||
- >-
|
- >-
|
||||||
@ -135,7 +135,7 @@ spec:
|
|||||||
- name: wait-bookkeeper-ready
|
- name: wait-bookkeeper-ready
|
||||||
image: "{{ template "pulsar.imageFullName" (dict "image" .Values.images.broker "root" .) }}"
|
image: "{{ template "pulsar.imageFullName" (dict "image" .Values.images.broker "root" .) }}"
|
||||||
imagePullPolicy: {{ .Values.images.broker.pullPolicy }}
|
imagePullPolicy: {{ .Values.images.broker.pullPolicy }}
|
||||||
resources: {{ toYaml .Values.initContainer_resources.bookkeeper_ready | nindent 10 }}
|
resources: {{ toYaml .Values.initContainer.resources | nindent 10 }}
|
||||||
command: ["sh", "-c"]
|
command: ["sh", "-c"]
|
||||||
args:
|
args:
|
||||||
- >
|
- >
|
||||||
|
|||||||
@ -110,7 +110,7 @@ spec:
|
|||||||
- name: wait-zookeeper-ready
|
- name: wait-zookeeper-ready
|
||||||
image: "{{ template "pulsar.imageFullName" (dict "image" .Values.images.proxy "root" .) }}"
|
image: "{{ template "pulsar.imageFullName" (dict "image" .Values.images.proxy "root" .) }}"
|
||||||
imagePullPolicy: {{ .Values.images.proxy.pullPolicy }}
|
imagePullPolicy: {{ .Values.images.proxy.pullPolicy }}
|
||||||
resources: {{ toYaml .Values.initContainer_resources.zookeeper_ready | nindent 10 }}
|
resources: {{ toYaml .Values.initContainer.resources | nindent 10 }}
|
||||||
command: ["sh", "-c"]
|
command: ["sh", "-c"]
|
||||||
args:
|
args:
|
||||||
- >-
|
- >-
|
||||||
@ -129,7 +129,7 @@ spec:
|
|||||||
- name: wait-broker-ready
|
- name: wait-broker-ready
|
||||||
image: "{{ template "pulsar.imageFullName" (dict "image" .Values.images.proxy "root" .) }}"
|
image: "{{ template "pulsar.imageFullName" (dict "image" .Values.images.proxy "root" .) }}"
|
||||||
imagePullPolicy: {{ .Values.images.proxy.pullPolicy }}
|
imagePullPolicy: {{ .Values.images.proxy.pullPolicy }}
|
||||||
resources: {{ toYaml .Values.initContainer_resources.broker_ready | nindent 10 }}
|
resources: {{ toYaml .Values.initContainer.resources | nindent 10 }}
|
||||||
command: ["sh", "-c"]
|
command: ["sh", "-c"]
|
||||||
args:
|
args:
|
||||||
- >-
|
- >-
|
||||||
|
|||||||
@ -45,7 +45,7 @@ spec:
|
|||||||
- name: wait-cs-ready
|
- name: wait-cs-ready
|
||||||
image: "{{ template "pulsar.imageFullName" (dict "image" .Values.pulsar_metadata.image "root" .) }}"
|
image: "{{ template "pulsar.imageFullName" (dict "image" .Values.pulsar_metadata.image "root" .) }}"
|
||||||
imagePullPolicy: {{ .Values.pulsar_metadata.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.pulsar_metadata.image.pullPolicy }}
|
||||||
resources: {{ toYaml .Values.initContainer_resources.cs_ready | nindent 10 }}
|
resources: {{ toYaml .Values.initContainer.resources | nindent 10 }}
|
||||||
command: ["sh", "-c"]
|
command: ["sh", "-c"]
|
||||||
args:
|
args:
|
||||||
- >-
|
- >-
|
||||||
@ -56,7 +56,7 @@ spec:
|
|||||||
- name: wait-zookeeper-ready
|
- name: wait-zookeeper-ready
|
||||||
image: "{{ template "pulsar.imageFullName" (dict "image" .Values.pulsar_metadata.image "root" .) }}"
|
image: "{{ template "pulsar.imageFullName" (dict "image" .Values.pulsar_metadata.image "root" .) }}"
|
||||||
imagePullPolicy: {{ .Values.pulsar_metadata.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.pulsar_metadata.image.pullPolicy }}
|
||||||
resources: {{ toYaml .Values.initContainer_resources.zookeeper_ready | nindent 10 }}
|
resources: {{ toYaml .Values.initContainer.resources | nindent 10 }}
|
||||||
command: ["sh", "-c"]
|
command: ["sh", "-c"]
|
||||||
args:
|
args:
|
||||||
- >-
|
- >-
|
||||||
@ -75,7 +75,7 @@ spec:
|
|||||||
- name: pulsar-bookkeeper-verify-clusterid
|
- name: pulsar-bookkeeper-verify-clusterid
|
||||||
image: "{{ template "pulsar.imageFullName" (dict "image" .Values.pulsar_metadata.image "root" .) }}"
|
image: "{{ template "pulsar.imageFullName" (dict "image" .Values.pulsar_metadata.image "root" .) }}"
|
||||||
imagePullPolicy: {{ .Values.pulsar_metadata.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.pulsar_metadata.image.pullPolicy }}
|
||||||
resources: {{ toYaml .Values.initContainer_resources.verify_cluster_id | nindent 10 }}
|
resources: {{ toYaml .Values.initContainer.resources | nindent 10 }}
|
||||||
command: ["sh", "-c"]
|
command: ["sh", "-c"]
|
||||||
args:
|
args:
|
||||||
- >
|
- >
|
||||||
|
|||||||
@ -1342,24 +1342,8 @@ job:
|
|||||||
|
|
||||||
# This section is intended for cluster providers where all containers, including init containers,
|
# This section is intended for cluster providers where all containers, including init containers,
|
||||||
# need to provide the number of resources they are going to use.
|
# need to provide the number of resources they are going to use.
|
||||||
initContainer_resources:
|
initContainer:
|
||||||
zookeeper_ready:
|
resources:
|
||||||
requests:
|
|
||||||
memory: 256Mi
|
|
||||||
cpu: 0.1
|
|
||||||
cs_ready:
|
|
||||||
requests:
|
|
||||||
memory: 256Mi
|
|
||||||
cpu: 0.1
|
|
||||||
verify_cluster_id:
|
|
||||||
requests:
|
|
||||||
memory: 256Mi
|
|
||||||
cpu: 0.1
|
|
||||||
broker_ready:
|
|
||||||
requests:
|
|
||||||
memory: 256Mi
|
|
||||||
cpu: 0.1
|
|
||||||
bookkeeper_ready:
|
|
||||||
requests:
|
requests:
|
||||||
memory: 256Mi
|
memory: 256Mi
|
||||||
cpu: 0.1
|
cpu: 0.1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user