3.5.2 MediatorのHelmチャートのカスタマイズ
MediatorのHelmチャートをカスタマイズするために、helm show valuesコマンドを実行して、MediatorのHelmチャートパッケージファイル(mediator-V.R.S.tgz)からデフォルト設定のvalues.yamlを抽出してください。コマンド例を次に示します。
helm show values ./mediator-V.R.S.tgz > ./mediator-values.yaml
注 V.R.Sは使用するHMP-PCTOのバージョンに合わせて読み替えてください。
「7.3.1 Mediator」に記載されているHelmチャートのvalues.yamlの各パラメタについて、必須パラメタの定義、および任意パラメタを必要に応じてデフォルト値から変更してください。
Helmチャートのカスタマイズ例を次に示します。
namespace: my-namespace
replicas: 5
image: myregistry.example.com/myproject/mediator:V.R.S※
imagePullSecrets:
- name: regcred
imagePullPolicy: IfNotPresent
dependencyCheck:
enabled: true
image: myregistry.example.com/myproject/dependency-checker:V.R.S※
imagePullPolicy: IfNotPresent
retryCount: 30
retryIntervalSeconds: 10
connectTimeoutSeconds: 10
readTimeoutSeconds: 10
targets:
- my-namespace/deployments/logstash
- my-namespace/deployments/jaeger-query
- my-namespace/deployments/jaeger-collector
- my-namespace/deployments/prometheus
- my-namespace/deployments/metricbeat
- my-namespace/daemonsets/filebeat
healthCheck:
enabled: true
livenessProbe:
initialDelaySeconds: 180
periodSeconds: 30
failureThreshold: 3
timeoutSeconds: 10
healthCheck:
retryCount: 0
retryIntervalSeconds: 0
connectTimeoutSeconds: 10
readTimeoutSeconds: 10
postStart:
healthCheck:
retryCount: 30
retryIntervalSeconds: 10
connectTimeoutSeconds: 10
readTimeoutSeconds: 10
preStop:
waitTransactions:
retryCount: 30
retryIntervalSeconds: 10
connectTimeoutSeconds: 10
readTimeoutSeconds: 10
terminationGracePeriodSeconds: 330
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- mediator
topologyKey: kubernetes.io/hostname
resources:
limits:
cpu: 2
memory: 1Gi
requests:
cpu: 1
memory: 512Mi
participant:
sender:
threadPoolSize: 30
queueSize: 25
consensusLog:
size: 256
io:
threadPoolSize: 12
queueSize: 25
watchInSeconds: 240
blockSize: 4096
storageClassName: mediator-consensus-log
http:
port: 20554
grpc:
port: 20551
server:
threadPoolSize: 30
queueSize: 25
useTls: false
authSkip: false
tls:
secretName: ""
clientAuth:
enabled: false
session:
cacheSize: 0
timeout: 0
keepalive:
interval: 0
timeout: 60
watchtime: 5
dedup: true
reuse: true
mediator:
judge:
threadPoolSize: 30
queueSize: 25
proposalLogLimitNum: 512
tranTerminatedLimitNum: 512
tranTerminatedConfirmNotifyInterval: 60000
tracing:
instanceId: ""
url: http://jaeger-collector:14268/api/traces
traceUse: true
grpc:
traceSize: 256
metrics:
collection:
intervalInMillis: 1000
timezone: Asia/Tokyo
java:
options: -XX:+UseG1GC
logging:
level:
pctoStd: INFO
ucars:
enabled: true
snapshots:
claimName: snapshot-volume- 注※
-
V.R.Sは使用するHMP-PCTOのバージョンに合わせて読み替えてください。
この例は、次のとおりパラメタの値を指定しています。
-
必須パラメタについては、サンプルの値を指定しています。
-
任意パラメタについては、デフォルト値を指定しています。
-
特定の条件でだけ指定するパラメタについては、省略しています((例)暗号化通信を有効にした場合だけ指定するgrpc.tls接頭辞のパラメタなど)。
- 重要
-
Helmチャートのカスタマイズ時の注意事項
Helmチャートは、行頭のインデント(文字の開始位置)が厳密に評価されます。注意して編集してください。