Overview
In this lab, you set up configuration information, both encrypted and unencrypted. Encrypted configuration information is stored as secrets. Unencrypted configuration information is stored as ConfigMaps.
This approach avoids hard coding such information into code bases. Credentials (like API keys) that belong in secrets should never travel inside code repositories like GitHub (unless they are encrypted before going in, but even then it is better to keep them separate).
Objectives
In this lab, you learn how to perform the following tasks:
Create secrets by using the kubectl command and manifest files.
Create ConfigMaps by using the kubectl command and manifest files.
Consume secrets in containers by using environment variables or mounted volumes.
Consume ConfigMaps in containers by using environment variables or mounted volumes.
#gcp #googlecloud #qwiklabs #learntoearn
Негізгі бет Working with Google Kubernetes Engine Secrets and ConfigMaps
Пікірлер