'Can anyone explain this in kubernetes yaml file?
I keep seeing labels like below in the kubernetes yaml files that I'm trying to understand. there are certain key value pairs defined but they are defined in format
labels:
app: $PROJECT_NAME-es
some other file
labels:
app: $PROJECT_NAME-some-service
things like this are spread all over the yaml file. each yaml file deals with one particular service and all its dependencies like service, volume claims etc.
I'm not an expert of kubernetes and the people around me have been using these files without modification since the creator left the company.I'm not aware if yaml files can be templates or this is something specific to google cloud where the system is hosted.
Solution 1:[1]
What it means is that the app label is parametrized. PROJECT_NAME is a variable used in the label. You need to check deployment process/pipeline on how the YAML file is getting created and deployed in kubernetes environment.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | P Ekambaram |
