added additionalCommand parameter (#150)
Co-authored-by: Aaron Johnson <aaron.johnson@crowdstrike.com>
This commit is contained in:
parent
a919f309c6
commit
cee3b5c5e6
@ -165,6 +165,9 @@ spec:
|
|||||||
command: ["sh", "-c"]
|
command: ["sh", "-c"]
|
||||||
args:
|
args:
|
||||||
- >
|
- >
|
||||||
|
{{- if .Values.bookkeeper.additionalCommand }}
|
||||||
|
{{ .Values.bookkeeper.additionalCommand }}
|
||||||
|
{{- end }}
|
||||||
bin/apply-config-from-env.py conf/bookkeeper.conf;
|
bin/apply-config-from-env.py conf/bookkeeper.conf;
|
||||||
{{- include "pulsar.bookkeeper.zookeeper.tls.settings" . | nindent 10 }}
|
{{- include "pulsar.bookkeeper.zookeeper.tls.settings" . | nindent 10 }}
|
||||||
OPTS="${OPTS} -Dlog4j2.formatMsgNoLookups=true" exec bin/pulsar bookie;
|
OPTS="${OPTS} -Dlog4j2.formatMsgNoLookups=true" exec bin/pulsar bookie;
|
||||||
|
|||||||
@ -198,6 +198,9 @@ spec:
|
|||||||
command: ["sh", "-c"]
|
command: ["sh", "-c"]
|
||||||
args:
|
args:
|
||||||
- >
|
- >
|
||||||
|
{{- if .Values.broker.additionalCommand }}
|
||||||
|
{{ .Values.broker.additionalCommand }}
|
||||||
|
{{- end }}
|
||||||
bin/apply-config-from-env.py conf/broker.conf;
|
bin/apply-config-from-env.py conf/broker.conf;
|
||||||
bin/gen-yml-from-env.py conf/functions_worker.yml;
|
bin/gen-yml-from-env.py conf/functions_worker.yml;
|
||||||
echo "OK" > status;
|
echo "OK" > status;
|
||||||
|
|||||||
@ -178,6 +178,9 @@ spec:
|
|||||||
command: ["sh", "-c"]
|
command: ["sh", "-c"]
|
||||||
args:
|
args:
|
||||||
- >
|
- >
|
||||||
|
{{- if .Values.proxy.additionalCommand }}
|
||||||
|
{{ .Values.proxy.additionalCommand }}
|
||||||
|
{{- end }}
|
||||||
bin/apply-config-from-env.py conf/proxy.conf &&
|
bin/apply-config-from-env.py conf/proxy.conf &&
|
||||||
echo "OK" > status &&
|
echo "OK" > status &&
|
||||||
OPTS="${OPTS} -Dlog4j2.formatMsgNoLookups=true" exec bin/pulsar proxy
|
OPTS="${OPTS} -Dlog4j2.formatMsgNoLookups=true" exec bin/pulsar proxy
|
||||||
|
|||||||
@ -70,6 +70,9 @@ spec:
|
|||||||
command: ["sh", "-c"]
|
command: ["sh", "-c"]
|
||||||
args:
|
args:
|
||||||
- >
|
- >
|
||||||
|
{{- if .Values.toolset.additionalCommand }}
|
||||||
|
{{ .Values.toolset.additionalCommand }}
|
||||||
|
{{- end }}
|
||||||
bin/apply-config-from-env.py conf/client.conf;
|
bin/apply-config-from-env.py conf/client.conf;
|
||||||
bin/apply-config-from-env.py conf/bookkeeper.conf;
|
bin/apply-config-from-env.py conf/bookkeeper.conf;
|
||||||
{{- include "pulsar.toolset.zookeeper.tls.settings" . | nindent 10 }}
|
{{- include "pulsar.toolset.zookeeper.tls.settings" . | nindent 10 }}
|
||||||
|
|||||||
@ -112,6 +112,9 @@ spec:
|
|||||||
command: ["sh", "-c"]
|
command: ["sh", "-c"]
|
||||||
args:
|
args:
|
||||||
- >
|
- >
|
||||||
|
{{- if .Values.zookeeper.additionalCommand }}
|
||||||
|
{{ .Values.zookeeper.additionalCommand }}
|
||||||
|
{{- end }}
|
||||||
bin/apply-config-from-env.py conf/zookeeper.conf;
|
bin/apply-config-from-env.py conf/zookeeper.conf;
|
||||||
{{- include "pulsar.zookeeper.tls.settings" . | nindent 10 }}
|
{{- include "pulsar.zookeeper.tls.settings" . | nindent 10 }}
|
||||||
bin/generate-zookeeper-config.sh conf/zookeeper.conf;
|
bin/generate-zookeeper-config.sh conf/zookeeper.conf;
|
||||||
|
|||||||
@ -390,6 +390,8 @@ zookeeper:
|
|||||||
-XX:+DoEscapeAnalysis
|
-XX:+DoEscapeAnalysis
|
||||||
-XX:+DisableExplicitGC
|
-XX:+DisableExplicitGC
|
||||||
-XX:+PerfDisableSharedMem
|
-XX:+PerfDisableSharedMem
|
||||||
|
## Add a custom command to the start up process of the zookeeper pods (e.g. update-ca-certificates, jvm commands, etc)
|
||||||
|
additionalCommand:
|
||||||
## Zookeeper service
|
## Zookeeper service
|
||||||
## templates/zookeeper-service.yaml
|
## templates/zookeeper-service.yaml
|
||||||
##
|
##
|
||||||
@ -551,6 +553,8 @@ bookkeeper:
|
|||||||
dbStorage_readAheadCacheMaxSizeMb: "32"
|
dbStorage_readAheadCacheMaxSizeMb: "32"
|
||||||
dbStorage_rocksDB_writeBufferSizeMB: "8"
|
dbStorage_rocksDB_writeBufferSizeMB: "8"
|
||||||
dbStorage_rocksDB_blockCacheSize: "8388608"
|
dbStorage_rocksDB_blockCacheSize: "8388608"
|
||||||
|
## Add a custom command to the start up process of the bookie pods (e.g. update-ca-certificates, jvm commands, etc)
|
||||||
|
additionalCommand:
|
||||||
## Bookkeeper Service
|
## Bookkeeper Service
|
||||||
## templates/bookkeeper-service.yaml
|
## templates/bookkeeper-service.yaml
|
||||||
##
|
##
|
||||||
@ -722,6 +726,8 @@ broker:
|
|||||||
managedLedgerDefaultEnsembleSize: "2"
|
managedLedgerDefaultEnsembleSize: "2"
|
||||||
managedLedgerDefaultWriteQuorum: "2"
|
managedLedgerDefaultWriteQuorum: "2"
|
||||||
managedLedgerDefaultAckQuorum: "2"
|
managedLedgerDefaultAckQuorum: "2"
|
||||||
|
## Add a custom command to the start up process of the broker pods (e.g. update-ca-certificates, jvm commands, etc)
|
||||||
|
additionalCommand:
|
||||||
## Broker service
|
## Broker service
|
||||||
## templates/broker-service.yaml
|
## templates/broker-service.yaml
|
||||||
##
|
##
|
||||||
@ -828,6 +834,8 @@ proxy:
|
|||||||
-XX:-ResizePLAB
|
-XX:-ResizePLAB
|
||||||
-XX:+ExitOnOutOfMemoryError
|
-XX:+ExitOnOutOfMemoryError
|
||||||
-XX:+PerfDisableSharedMem
|
-XX:+PerfDisableSharedMem
|
||||||
|
## Add a custom command to the start up process of the proxy pods (e.g. update-ca-certificates, jvm commands, etc)
|
||||||
|
additionalCommand:
|
||||||
## Proxy service
|
## Proxy service
|
||||||
## templates/proxy-service.yaml
|
## templates/proxy-service.yaml
|
||||||
##
|
##
|
||||||
@ -942,6 +950,8 @@ toolset:
|
|||||||
-Xms64M
|
-Xms64M
|
||||||
-Xmx128M
|
-Xmx128M
|
||||||
-XX:MaxDirectMemorySize=128M
|
-XX:MaxDirectMemorySize=128M
|
||||||
|
## Add a custom command to the start up process of the toolset pods (e.g. update-ca-certificates, jvm commands, etc)
|
||||||
|
additionalCommand:
|
||||||
|
|
||||||
#############################################################
|
#############################################################
|
||||||
### Monitoring Stack : Prometheus / Grafana
|
### Monitoring Stack : Prometheus / Grafana
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user