Resource specs for Init Containers (#428)
* add missing section in values.yaml for pulsar_metadata resources * add resources to all init containers and an additional section to specify them in values.yaml * increase memory defaults for init containers * remove empty lines * Add newline to end of file
This commit is contained in:
parent
62569f4023
commit
04b8ccebb1
@ -111,6 +111,7 @@ spec:
|
||||
- name: pulsar-bookkeeper-verify-clusterid
|
||||
image: "{{ template "pulsar.imageFullName" (dict "image" .Values.images.autorecovery "root" .) }}"
|
||||
imagePullPolicy: {{ .Values.images.autorecovery.pullPolicy }}
|
||||
resources: {{ toYaml .Values.initContainer_resources.verify_cluster_id | nindent 10 }}
|
||||
command: ["sh", "-c"]
|
||||
args:
|
||||
- >
|
||||
|
||||
@ -47,6 +47,7 @@ spec:
|
||||
- name: wait-zookeeper-ready
|
||||
image: "{{ template "pulsar.imageFullName" (dict "image" .Values.images.bookie "root" .) }}"
|
||||
imagePullPolicy: {{ .Values.images.bookie.pullPolicy }}
|
||||
resources: {{ toYaml .Values.initContainer_resources.zookeeper_ready | nindent 10 }}
|
||||
command: ["sh", "-c"]
|
||||
args:
|
||||
- >-
|
||||
|
||||
@ -112,6 +112,7 @@ spec:
|
||||
- name: pulsar-bookkeeper-verify-clusterid
|
||||
image: "{{ template "pulsar.imageFullName" (dict "image" .Values.images.bookie "root" .) }}"
|
||||
imagePullPolicy: {{ .Values.images.bookie.pullPolicy }}
|
||||
resources: {{ toYaml .Values.initContainer_resources.verify_cluster_id | nindent 10 }}
|
||||
command: ["sh", "-c"]
|
||||
args:
|
||||
# only reformat bookie if bookkeeper is running without persistence
|
||||
|
||||
@ -110,6 +110,7 @@ spec:
|
||||
- name: wait-zookeeper-ready
|
||||
image: "{{ template "pulsar.imageFullName" (dict "image" .Values.images.broker "root" .) }}"
|
||||
imagePullPolicy: {{ .Values.images.broker.pullPolicy }}
|
||||
resources: {{ toYaml .Values.initContainer_resources.zookeeper_ready | nindent 10 }}
|
||||
command: ["sh", "-c"]
|
||||
args:
|
||||
- >-
|
||||
@ -134,6 +135,7 @@ spec:
|
||||
- name: wait-bookkeeper-ready
|
||||
image: "{{ template "pulsar.imageFullName" (dict "image" .Values.images.broker "root" .) }}"
|
||||
imagePullPolicy: {{ .Values.images.broker.pullPolicy }}
|
||||
resources: {{ toYaml .Values.initContainer_resources.bookkeeper_ready | nindent 10 }}
|
||||
command: ["sh", "-c"]
|
||||
args:
|
||||
- >
|
||||
|
||||
@ -110,6 +110,7 @@ spec:
|
||||
- name: wait-zookeeper-ready
|
||||
image: "{{ template "pulsar.imageFullName" (dict "image" .Values.images.proxy "root" .) }}"
|
||||
imagePullPolicy: {{ .Values.images.proxy.pullPolicy }}
|
||||
resources: {{ toYaml .Values.initContainer_resources.zookeeper_ready | nindent 10 }}
|
||||
command: ["sh", "-c"]
|
||||
args:
|
||||
- >-
|
||||
@ -128,6 +129,7 @@ spec:
|
||||
- name: wait-broker-ready
|
||||
image: "{{ template "pulsar.imageFullName" (dict "image" .Values.images.proxy "root" .) }}"
|
||||
imagePullPolicy: {{ .Values.images.proxy.pullPolicy }}
|
||||
resources: {{ toYaml .Values.initContainer_resources.broker_ready | nindent 10 }}
|
||||
command: ["sh", "-c"]
|
||||
args:
|
||||
- >-
|
||||
|
||||
@ -44,6 +44,7 @@ spec:
|
||||
- name: wait-cs-ready
|
||||
image: "{{ template "pulsar.imageFullName" (dict "image" .Values.pulsar_metadata.image "root" .) }}"
|
||||
imagePullPolicy: {{ .Values.pulsar_metadata.image.pullPolicy }}
|
||||
resources: {{ toYaml .Values.initContainer_resources.cs_ready | nindent 10 }}
|
||||
command: ["sh", "-c"]
|
||||
args:
|
||||
- >-
|
||||
@ -54,6 +55,7 @@ spec:
|
||||
- name: wait-zookeeper-ready
|
||||
image: "{{ template "pulsar.imageFullName" (dict "image" .Values.pulsar_metadata.image "root" .) }}"
|
||||
imagePullPolicy: {{ .Values.pulsar_metadata.image.pullPolicy }}
|
||||
resources: {{ toYaml .Values.initContainer_resources.zookeeper_ready | nindent 10 }}
|
||||
command: ["sh", "-c"]
|
||||
args:
|
||||
- >-
|
||||
@ -72,6 +74,7 @@ spec:
|
||||
- name: pulsar-bookkeeper-verify-clusterid
|
||||
image: "{{ template "pulsar.imageFullName" (dict "image" .Values.pulsar_metadata.image "root" .) }}"
|
||||
imagePullPolicy: {{ .Values.pulsar_metadata.image.pullPolicy }}
|
||||
resources: {{ toYaml .Values.initContainer_resources.verify_cluster_id | nindent 10 }}
|
||||
command: ["sh", "-c"]
|
||||
args:
|
||||
- >
|
||||
|
||||
@ -677,6 +677,12 @@ pulsar_metadata:
|
||||
configurationStoreMetadataPrefix: ""
|
||||
configurationStorePort: 2181
|
||||
|
||||
# resources for bin/pulsar initialize-cluster-metadata
|
||||
resources:
|
||||
# requests:
|
||||
# memory: 512Mi
|
||||
# cpu: 1
|
||||
|
||||
## optional you can specify tolerations and nodeSelectors for all init jobs (pulsar-init & bookkeeper-init)
|
||||
# tolerations: []
|
||||
# - key: "someKey"
|
||||
@ -1151,3 +1157,27 @@ job:
|
||||
ttl:
|
||||
enabled: false
|
||||
secondsAfterFinished: 3600
|
||||
|
||||
# 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.
|
||||
initContainer_resources:
|
||||
zookeeper_ready:
|
||||
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:
|
||||
memory: 256Mi
|
||||
cpu: 0.1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user