Skip to content

Creating Resources

Add a Resource

While using Monokle, you can directly add new K8s resources. Once you have browsed and added your project folder, click on the Create Resource button at the top of the navigator to launch the Create Resource dialog.

Add Resource

While creating a resource, it is possible to select an existing resource as a template from the drop-down menu. The options for this template are Save to folder, Add to file and Don't save.

Resource template

If the last drop down is left as Don't save, that resource will be added to the Navigator resources but it will be yellow and it has a * next to it:

Unsaved resource

These “unsaved” resources will have to be saved by the user to be able to reuse them. Clicking on a yellow resource will show the Save button in the Editor panel to save the highlighted resource.

Save resource

Create a Resource from a Template

Monokle allows the use of templates to start a new project via the Start from a template option:

Start with Template

The Create a Project from a Template dialog appears:

Start with Template

Name your project, select its location and click Next: Select a Template.

Monokle includes a default set of templates which are installed automatically when starting Monokle for the first time and available in the Templates Explorer when working with your Monokle projects:

Default Templates

Check out the Monokle Default Templates Plugin repository to see the complete list of templates that are included along with their corresponding schemas and manifests.

Click the ellipsis to the right of a resource name to see the options available:

Resource Options

Rename a Resource

You can rename resources and update all the references associated with that resource to ensure the integrity of that link.

Rename Resource

Clone a Resource

You can use the Clone action to create a new resource by using existing resources as a template.

Clone Resource

Delete a Resource

You can use the Delete action in the cluster mode to delete the resource from the actual cluster.

Delete Resource