Configuration Management
When there is a need to manage changing values inside the container according to various environments such as development and operation, managing separate images due to environment variables is inconvenient and costly. In Kubernetes, you can manage environment variables or configuration values as variables so that they can be changed from outside, and at this time, ConfigMap and Secret can be used to insert them when a Pod is created.
ConfigMap and Secret services are set to the cluster (namespace) selected when the service is created by default. Even if you select other items in the list, the default cluster (namespace) setting is maintained.
- To select a different cluster (namespace), click the gear button to the right of the list. In the Cluster/Namespace Settings popup window, select the cluster and namespace you want to change and click the OK button. You can see the config map and secret service created in the selected cluster/namespace.
Managing Config Maps
You can write and manage Config information used in the namespace as a config map.
Creating a Config Map
To create a configmap, follow these steps.
- Click all services > Container > Kubernetes Engine menu. It moves to the Service Home page of Kubernetes Engine.
- On the Service Home page, click ConfigMap under the Configuration menu. It moves to the ConfigMap list page.
- ConfigMap List page, select the cluster and namespace from the gear button at the top left, then click Create Object.
- Object Creation Popup에서 오브젝트 정보를 입력하고 Confirm 버튼을 클릭하세요.
Checking ConfigMap Details
To check the config map details, follow the next procedure.
- Click all services > Container > Kubernetes Engine menu. It moves to the Service Home page of Kubernetes Engine.
- On the Service Home page, click ConfigMap under the Configuration menu. It moves to the ConfigMap list page.
- ConfigMap List page, select the cluster and namespace from the gear button at the top left, then click OK.
- On the Config Map List page, select the item you want to check the detailed information. It moves to the Config Map Detail page.
- Selecting System Object View at the top of the list displays all items except for Kubernetes object entries.
- Click each tab to check the service information.
| Classification | Detailed Description |
|---|---|
| Config Map Deletion | Delete Config Map |
| Detailed Information | Check detailed information of Config Map |
| YAML | The resource file of ConfigMap can be modified in the YAML editor
|
| Event | Check the event that occurred within the config map |
| Account Information | Account name, location, creation time, etc., check the basic information about the Account |
| Metadata Information | Check the metadata information of the config map |
| Object Information | Check the object information of the config map
|
Deleting ConfigMap
To delete a configmap, follow this procedure.
- Click All services > Container > Kubernetes Engine menu. It moves to the Service Home page of Kubernetes Engine.
- On the Service Home page, click ConfigMap under the Configuration menu. It moves to the ConfigMap list page.
- ConfigMap list page, select the cluster and namespace from the gear button at the top left, then click OK.
- Configmap List page, select the item you want to delete. It moves to the Configmap Detail page.
- Configmap Details page, click Delete Configmap.
- When the Notification Confirmation Window appears, click the Confirm button.
Managing Secrets
Using secrets, you can safely store and manage sensitive information such as passwords, OAuth tokens, and SSH keys.
Creating a Secret
To create a secret, follow these steps.
- Click All services > Container > Kubernetes Engine menu. It moves to the Service Home page of Kubernetes Engine.
- On the Service Home page, click 시크릿 under the 구성 menu. It moves to the 시크릿 목록 page.
- Secret List page, select cluster and namespace from the gear button at the top left, then click Create Object.
- Object Creation Popup에서 오브젝트 정보를 입력하고 Confirm 버튼을 클릭하세요.
Check Secret Details
To check the secret details, follow the following procedure.
- Click All services > Container > Kubernetes Engine menu. It moves to the Service Home page of Kubernetes Engine.
- On the Service Home page, click 시크릿 under the 구성 menu. It moves to the 시크릿 목록 page.
- Secret List page, select cluster and namespace from the gear button at the top left, then click Confirm.
- Secret List page, select the item you want to check the detailed information. It moves to the Secret Detail page.
- Selecting Show System Objects at the top of the list displays all items except Kubernetes object entries.
- Click each tab to check the service information.
| Classification | Detailed Description |
|---|---|
| Secret Deletion | Delete secret |
| Detailed Information | Check the detailed information of Secret |
| YAML | The resource file of the secret can be modified in the YAML editor
|
| Event | Check the event that occurred within Secret |
| Account Information | Account name, location, creation time, etc., basic information about the Account can be checked |
| Metadata Information | Check the metadata information of the secret |
| Object Information | Check the object information of the secret |
Deleting Secrets
To delete a secret, follow these steps.
- Click all services > Container > Kubernetes Engine menu. It moves to the Service Home page of Kubernetes Engine.
- On the Service Home page, click 시크릿 under the 구성 menu. It moves to the 시크릿 목록 page.
- Secret List page, select the cluster and namespace from the gear button at the top left, then click OK.
- Secret List page, select the item you want to delete. It moves to the Secret Detail page.
- Secret Detail page, click Delete Secret.
- When the Notification Confirmation Window appears, click the Confirm button.