Skip to main content

Customizing KOBIL Shift service charts by valuesOverride

Customizing KOBIL Shift service charts by valuesOverride

Scope: How to update the KOBIL Shift service section for specific setup and tuning to overwrite service chart embedded parameters.

Here the sample is related to KOBIL Shift metaconfiguration file "values.yaml" and the section for component "IDP"/"idpCore" to load a custom image and set some tuning overwriting internal chart parameter. Doing this by adding the "valuesOverride" section inside the section "idpCore" which is processed by the KOBIL Shift Operator to overwrite parameter in to the loaded Chart.

Default Shift Chart

# -- Configuration for idp-core
idpCore:
  enabled: true
  repository: https://charts.kobil.com
  replicaCount: 1

This needs to be updated with "valuesOverride" configuration like:

Shift Chart with "valuesOverride" sample

# -- Configuration for idp-core
idpCore:
  enabled: true
# loading specific idp-core chart settings overriding defaults
valuesOverride:
# mainContainer related parameter updates under hierarchy
# "mainContainer" (see sub-chart idp-core <root>/values.yaml)
mainContainer:
  image:
  idp:
# loading a specific custom ipd core image
  repository: custom/specific/idp/core
tag: "3.2.1"
# loading modified k8s probe settings
livenessProbe:
initialDelaySeconds: 180
readinessProbe:
initialDelaySeconds: 240

ports:
http:
target: 8888

 # modify k8s pod resources for production scale workload forcing QOS Guaranteed (request == limit)
resources:
requests:
memory: "5Gi"
cpu: "3"
limits:
memory: "5Gi"
cpu: "3"  
replicaCount: 2

It is important to follow the sub-chart parameter hierarchy exactly to allow KOBIL Shift operator to correctly process the customized values. In case the hierarchy is not in sync with the sub-charts the customization fails.