Home > Software engineering >  Where is .Values taken from in kubernetes configuration yaml file
Where is .Values taken from in kubernetes configuration yaml file

Time:01-15

I can't seem to find the formal definition of .Values (taken from here)

image: {{ .Values.image.repo }}/rs-mysql-db:{{ .Values.image.version }}

From the docs, it is definitely related to helm chart:

Note that all of Helm's built-in variables begin with an uppercase letter to easily distinguish them from user-defined values: .Release.Name, .Capabilities.KubeVersion.

But in the above example (robot-shop/K8s/helm/templates) I don't see any values.yaml file - what am I missing?

CodePudding user response:

It's under the helm folder:

https://github.com/instana/robot-shop/blob/master/K8s/helm/values.yaml

# Registry and repository for Docker images
# Default is docker/robotshop/image:latest
image:
 repo: robotshop
 version: latest
 pullPolicy: IfNotPresent
  • Related