Configuration(Configuration) Management
When there is a need to manage values that change inside a container depending on various environments such as development and operation, creating and managing a separate image due to environment variables is inconvenient and incurs significant cost waste. In Kubernetes, you can manage environment variables or configuration values as variables so that they can be changed from outside and injected when a Pod is created, and you can use ConfigMap and Secret for this.
ConfigMaps and secret services are set by default to the cluster (namespace) selected when creating the service. Even if you select other items in the list, the default cluster (namespace) setting is retained.
- To select a different cluster (namespace), click the gear button on the right side of the list. In the Cluster/Namespace Settings popup, select the cluster and namespace you want to change and click the Confirm button. You can view the ConfigMap and Secret services created in the selected cluster/namespace.
Manage ConfigMap
You can write and manage the Config information used in the namespace as a ConfigMap.
Create ConfigMap
To create a ConfigMap, follow these steps.
- All Services > Container > Kubernetes Engine Click the menu. Go to the Service Home page of Kubernetes Engine.
- Service Home on the page, click Configuration menu below ConfigMap. Go 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.
- In the Object Creation Popup, enter the object information and click the Confirm button.
Check ConfigMap detailed information
To view detailed ConfigMap information, follow these steps.
- All Services > Container > Kubernetes Engine Click the menu. Navigate to the Service Home page of Kubernetes Engine.
- On the Service Home page, click ConfigMap under the Configuration menu. Navigate to the ConfigMap List page.
- ConfigMap List page, select the cluster and namespace from the gear button at the top left, then click Confirm.
- ConfigMap List page, select the item you want to view detailed information for. You will be taken to the ConfigMap Details page.
- If you select Show System Objects at the top of the list, items other than the Kubernetes object entries will be displayed.
- Click each tab to view the service information.
Category Detailed descriptionConfig Map Delete Delete Config Map Detailed Information Can check detailed information of config map YAML ConfigMap’s resource file can be edited in the YAML editor - Click the Edit button, modify the resource, then click the Save button to apply changes
- When editing content, click the Diff button to view the changed content
Event Check the events that occurred within the config map Account information Check basic information about the Account such as Account name, location, creation date and time Metadata Information Check the metadata information of the ConfigMap Object Information Check the object information of the config map - In Data, rows are separated by
- - -, and value is displayed in textarea format - Binary Data’s value outputs the length value
Table. ConfigMap detailed information items
Delete ConfigMap
To delete a config map, follow these steps.
- All Services > Container > Kubernetes Engine Click the menu. Navigate to the Service Home page of Kubernetes Engine.
- On the Service Home page, click ConfigMap under the Configuration menu. You will be taken to the ConfigMap List page.
- On the ConfigMap List page, select the cluster and namespace from the gear button at the top left, then click Confirm.
- ConfigMap List page, select the item you want to delete. Go to the ConfigMap Details page.
- On the ConfigMap Details page, click Delete ConfigMap.
- Alert confirmation window appears, click the Confirm button.
Manage Secrets
By using secrets, you can securely store and manage sensitive information such as passwords, OAuth tokens, and SSH keys.
Create Secret
To create a secret, follow the steps below.
- All Services > Container > Kubernetes Engine menu, click. Go to the Service Home page of Kubernetes Engine.
- On the Service Home page, click Secret under the Configuration menu. You will be taken to the Secret List page.
- Secret List page, select the cluster and namespace from the top left gear button, then click Create Object.
- In the Object Creation Popup, enter the object information and click the Confirm button.
Check Secret Detailed Information
To view the secret detailed information, follow the steps below.
- All Services > Container > Kubernetes Engine menu, click it. Go to the Service Home page of Kubernetes Engine.
- Click Secret under the Configuration menu on the Service Home page. You will be taken to the Secret List page.
- Secret List page, select the cluster and namespace from the gear button at the top left, then click Confirm.
- Secret List page, select the item you want to view detailed information for. Secret Details page will be navigated.
- If you select Show System Objects at the top of the list, items other than the Kubernetes object entries will be displayed.
- Click each tab to view service information.
Category Detailed descriptionDelete Secret Delete the secret Detailed Information Can check secret’s detailed information YAML Secret’s resource file can be edited in the YAML editor - Click the Edit button, modify the resource, then click the Save button to apply changes
- When editing content, click the Diff button to view the changed content
Event Check events that occurred within Secret Account Information Check basic information about the Account such as Account name, location, creation date, etc. Metadata Information Check the secret’s metadata information Object Information Check the secret’s object information Table. Secret Detailed Information Items
Delete Secret
To delete the secret, follow the steps below.
- All Services > Container > Kubernetes Engine Click the menu. Go to the Service Home page of Kubernetes Engine.
- Click Secret under the Configuration menu on the Service Home page. You will be taken to the Secret List page.
- Secret List page, select the cluster and namespace from the gear button at the top left, then click Confirm.
- Secret List page, select the item you want to delete. Secret Detail page, navigate.
- Click Delete Secret on the Secret Details page.
- If the notification confirmation window appears, click the Confirm button.