Configuration Management
When you need to manage values that change inside a container across various environments such as development and production, creating separate images to handle them via environment variables is inconvenient and incurs significant cost waste. In Kubernetes, you can manage environment variables or configuration values as variables so they can be changed externally and injected when a Pod is created; at this point, you can use ConfigMap and Secret.
ConfigMaps and Secret services default to the cluster (namespace) selected when the service is created. Even if you select a different item in the list, the default cluster (namespace) setting is retained.
- To select a different cluster (namespace), click the list in the top-left corner of the list page. * Select the cluster and namespace to modify from the list and click the View button. * You can view the services created in the selected cluster/namespace.
Managing ConfigMaps
You can create and manage the Config information used in a namespace as a ConfigMap.
Create ConfigMap
To create a ConfigMap, follow these steps.
- Click the All Services > Container > Kubernetes Engine menu. 1. Go to the Service Home page of Kubernetes Engine.
- On the Service Home page, click ConfigMap under the Configuration menu. 2. Go to the ConfigMap List page.
- On the ConfigMap list page, select the cluster and namespace from the list in the upper left, then click Create Object.
- In the Object Creation Popup, enter the object information and click the Create button.
Check ConfigMap detailed information
To view detailed ConfigMap information, follow these steps.
- Click the All Services > Container > Kubernetes Engine menu. 1. Go to the Service Home page of Kubernetes Engine.
- On the Service Home page, click ConfigMap under the Configuration menu. 2. Navigate to the ConfigMap List page.
- On the ConfigMap List page, select the cluster and namespace from the list in the upper left, then click View.
- Select the item you want to view detailed information for on the ConfigMap List page. 4. Navigate to the ConfigMap Details page.
- If you select System Object Display at the top of the list, all items except the Kubernetes object entries will be shown.
- Click each tab to view the service information.
Category Detailed descriptionDelete ConfigMap Delete ConfigMap Detailed Information Detailed ConfigMap information can be viewed YAML The ConfigMap’s resource file can be edited in the YAML editor - Click the Edit button, modify the resource, then click the Done button to apply the changes
- When editing content, you can click the Diff button to view the changed content
event Check events that occurred in the ConfigMap Account information Check basic information about the Account, such as name, location, and creation date/time. Metadata Information Check the ConfigMap’s metadata information Object Information Check the object information of the ConfigMap - In Data,
- - -separates rows, and value is displayed in a textarea format - The binary data value outputs its length
Table. ConfigMap detailed information items
Delete ConfigMap
To delete a ConfigMap, follow these steps.
- Click the All Services > Container > Kubernetes Engine menu. 1. Navigate to the Service Home page of Kubernetes Engine.
- On the Service Home page, click ConfigMap under the Configuration menu. 2. Navigate to the ConfigMap list page.
- ConfigMap List page, after selecting the cluster and namespace from the list in the top‑left corner, click View.
- Select the item you want to delete on the ConfigMap List page. 4. Navigate to the ConfigMap Details page.
- On the ConfigMap Details page, click Delete ConfigMap.
- Notification dialog appears, click the Confirm button.
Manage Secrets
Using secrets allows you to securely store and manage sensitive information such as passwords, OAuth tokens, and SSH keys.
Create Secret
To create a secret, follow these steps.
- All Services > Container > Kubernetes Engine menu, click it. 1. Go to the Service Home page of Kubernetes Engine.
- On the Service Home page, click Secret under the Configuration menu. 2. Go to the Secret List page.
- Secret List page, after selecting the cluster and namespace from the list at the top left, click Create Object.
- Enter the object information in the Object Creation Popup and click the Create button.
Check secret detailed information
To view the secret details, follow these steps.
- Click the All Services > Container > Kubernetes Engine menu. 1. Go to the Service Home page of Kubernetes Engine.
- On the Service Home page, click Secret under the Configuration menu. 2. Navigate to the Secret List page.
- On the Secret List page, select the cluster and namespace from the list at the top left, then click View.
- Select the item you want to view details for on the Secret List page. 4. Navigate to the Secret Detail page.
- If you select System Object Display at the top of the list, all items except the Kubernetes object entries will be shown.
- Click each tab to view the service information.
Category Detailed descriptionDelete Secret Delete the secret Detailed Information You can view detailed information of the secret YAML The secret’s resource file can be edited in the YAML editor - Click the Edit button, modify the resource, then click the Done button to apply the changes
- When editing content, you can click the Diff button to view the changed content
event Check events that occurred within the secret Account Information Check basic information about the Account, such as its name, location, and creation date/time. metadata information Check the metadata information of the secret Object Information Check the secret object’s information Table. Secret detailed information items
Delete Secret
To delete the secret, follow these steps.
- Click the All Services > Container > Kubernetes Engine menu. 1. Navigate to the Service Home page of Kubernetes Engine.
- On the Service Home page, click Secret under the Configuration menu. 2. Go to the Secret List page.
- Secret List page, select the cluster and namespace from the list at the top left, then click View.
- Select the item you want to delete on the Secret List page. 4. Go to the Secret Detail page.
- On the Secret Details page, click Delete Secret.
- Notification dialog appears, click the Confirm button.