Manage Assets
Learn how to create and manage assets for use with Codiac.
To add ingress, just answer Y
to the question, Accessible from outside the cabinet (aka: has ingress route) when you create your asset. Codiac automatically creates the ingress for you. (Yes, really!)
An asset is a workload. Codiac supports two asset types:
- Docker image in a public or private registry.
- Helm charts.
Usage and Options
Use codiac asset -h
to see all the available options:
Create a new asset
- Use
codiac asset create
to create a new asset from the command line:
codiac asset create
-
Follow the prompts to:
- Choose your container registry.
- Log into your cloud service provider.
- Select the container image for the asset.
- Port 1: Forwarding?: Configure port forwarding, if desired. The default is
N
. - Assign another port?: Configure an additional port, if desired. The default is
N
. - Accessible from outside the cabinet (aka: has ingress route): Enter
Y
to configure ingress orN
if you don't want the asset to be available from the public internet. - Usage: external answer
Y
. - Host name on the inbound domain url: If you configure DNS, this value will be used as the service name for the URL.
- Will this asset be the base ingress against your DNS: This step is part of Codiac's strategy-based host mapping. You can only have one base ingress URL for your account. You will most likely want to reserve this for your main application. Otherwise, answer
N
.
-
Verify all the parameters are correct, then enter Y to start the asset creation process.
Deploy an asset
- Use
codiac asset deploy
to deploy the asset to the cabinet. This command defaults to the most recent version of the asset:
codiac asset deploy
- Follow the prompts to select the asset, cloud service provider, and cabinet.
Made a mistake? Changed your mind? Use Snapshots to rollback your cabinet to an earlier version..
View assets and details
-
Use
codiac asset list
to list all the assets in your enterprise. -
Use
codiac asset view
to select an asset and view its logs, configurations, status, and other details.
Edit an asset
Use the web to edit a Codiac asset.
Update an asset
- Use
codiac asset deploy
to update an existing asset.
codiac asset deploy
- Follow the prompts to select the new asset version, cloud service provider, and cabinet.
Rollback an asset
Snapshots let you rollback to earlier versions of your cabinet. Click and drag the desired snapshot into your cabinet to rollback to that version. Use the web to rollback a Codiac cabinet.
Use the web to rollback a Codiac asset.
Remove an asset from a cabinet
- Use
codiac asset undeploy
to remove an asset from a given cabinet.
codiac asset undeploy
Follow the prompts to choose the asset and the cabinet from which you want the asset removed.
This command does not affect the Kubernetes cluster. Your cloud service provider will continue to bill you until you destroy the cluster.
Delete (obliterate) an asset
The codiac asset obliterate
command:
- Performs a full cascading delete of the given asset.
- Deletes all of the asset's related data in Codiac, including:
- Versions
- Probes
- Configs
- Tags
- Cannot be undone.
This command does NOT:
- Delete anything from the image registry.
- Affect your Kubernetes clusters.
- Your cloud service provider will continue to bill you until you destroy the cluster.
You can only delete (obliterate) assets that are not in any cabinets. If the asset you want to obliterate is in a cabinet, use codiac asset undeploy
to remove the asset from its cabinet(s) first.
- Use
codiac asset obliterate
to delete the given asset its Codiac data:
codiac asset obliterate
Follow the prompts to choose the asset and confirm you want to delete it.