Skip to content

Latest commit

 

History

History

BuildingYAMLTemplates

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

banner

YAML Templates

The API YAML

apiyaml

The Website YAML

website yaml

Volume Mounts, YAML, Config Maps and Secrets

The configmap-website.json file is defined inside a YAML file named configmap-website.yaml and the JSON document sits within this file under the data property.

yamlconfig map

There's also two other config files within the solution named:

  • configmap-website.xml
  • secret-website.json

The screen shot below shows we can create Config Maps and Secrets inside Kubernetes for these files using the Kubernetes CLI

KubeCtl map

Finally, within the YAML template for our website we are referencing these named Config Maps and Secrets and Mounting them into our chosen path within our containers application.

Website Yaml

Next Steps