Managing ConfigMap and Secret resources
The ConfigMap and Secret resources in Kubernetes enable you to store and send data to configure pods. In the management console, you can manage these resources in Managed Service for Kubernetes without using kubectl.
Creating a ConfigMap or Secret resource
You can create ConfigMap and Secret resources in the management console in the same way as when using the kubectl apply -f <manifest_file.yaml> -n <namespace_name> command.
- In the management console
, navigate to the folder dashboard and select Managed Service for Kubernetes. - Click the cluster name and select
Configuration in the left-hand panel. - In the top-right corner, click Create and select the resource type.
- In the drop-down list, select the Namespace to create the resource in.
- Fill out the manifest file according to these Kubernetes guides: ConfigMap
, Secret . - Click Create.
Editing a ConfigMap or Secret resource
In the management console, you can edit ConfigMap and Secret resource manifests in a visual editor. This approach is equivalent to running the kubectl apply -f <manifest_file.yaml> command and allows you to update the resource configuration without re-creating it.
The list of editable fields depends on the object type and is available in this Kubernetes guide
- In the management console
, navigate to the folder dashboard and select Managed Service for Kubernetes. - Click the cluster name and select
Configuration in the left-hand panel. - Select the tab with the resource type you want to edit.
- In the row of the resource, click
and select Edit. - Edit the manifest file on the right side of the screen. Your changes will be highlighted with color.
- In the top-right corner, click Save.
If the manifest is correct, the changes will be applied. If the updated manifest contains an error or edits uneditable fields, an error message will appear. Click More information for details.
Deleting a ConfigMap or Secret resource
Deleting a ConfigMap or Secret resource is equivalent to running the kubectl delete -f <manifest_file.yaml> command.
To delete a ConfigMap or Secret resource, do the following:
- In the management console
, navigate to the folder dashboard and select Managed Service for Kubernetes. - Click the cluster name and select
Configuration in the left-hand panel. - Select the tab containing the resource type you want to delete.
- In the row of the resource, click
and select Delete. - Confirm the action.