The CloudCasa Extension is designed to facilitate seamless one-click installation and monitoring of backup statuses within the Rancher environment. This extension comprises a central management interface and integrated status indicators throughout the Rancher platform.
Key Features of the Current Release:
- CloudCasa API Key Storage: Enter your CloudCasa API Key once to allow easy access to the Cluster Management Panel.
- Cluster Management Panel: Efficiently manage your cluster list with an intuitive panel that streamlines operations.
- One-Click Installation of CloudCasa Agent: Simplify the deployment process with our one-click installation feature, enabling rapid integration of the CloudCasa agent into your cluster.
- Ensure you are running the Rancher version 2.10.0 or later.
- Ensure you have access to an admin user.
-
Log into Rancher.
-
From the Rancher Dashboard, open the hamburger menu in the top left corner, and select "Extensions".
-
Open the dropdown in the top right corner and select "Manage Repositories"
-
Click the "Create" Button on the top right of the page.
-
On the Create Repository page enter the following information:
a. Name: cloud-casa-extension
b. Select the "Git repository containing Helm chart or cluster template definitions" radio option
c. Copy the repository link
https://github.com/catalogicsoftware/cloudcasa-rancher-extension.git
and input it into the "Git Repo URL" text input field.d. Select the "Authentication" dropdown and select "none" if not selected already.
e. Click the "Create" button in the bottom right of the page.
- After being redirected to the Repository management page you should see the repository successfully download. You can now go back to the main "Extension" page, click the "Available" tab, and click "Install".
- After the install is complete you may need to reload the page to see the extension appear in the left side bar.
-
Log into Rancher.
-
From the Rancher Dashboard, open the hamburger menu in the top left corner, and select "Extensions".
-
Open the dropdown in the top right corner and select "Manage Repositories"
-
Click the "Create" Button on the top right of the page.
-
On the Create Repository page enter the following information:
a. Name: cloud-casa-extension
b. Select the "http(s) URL to an index generated by Helm" radio option
c. Copy the repository link
https://catalogicsoftware.github.io/cloudcasa-rancher-extension/
and input it into the "Index URL" text input field.d. Select the "Authentication" dropdown and select "none" if not selected already.
e. Click the "Create" button in the bottom right of the page.
- After being redirected to the Repository management page you should see the repository successfully download. You can now go back to the main "Extension" page, click the "Available" tab, and click "Install".
- After the install is complete you may need to reload the page to see the extension appear in the left side bar.
- Another way to locally test the extension is to utilize the "Developer Load" feature. This can be enabled by going to your user "Preferences" page. This can be achieved by clicking the user icon in the top right of the page, and selecting Preferences.
- Once the page loads fine the
Enable Extension developer features
checkbox and select it. - Now go to the extensions page and select the dropdown and select "Developer Load" option.
- Lets prepare the repository, first clone the repository on the release tag you want to use. In this example were using tag
0.1.3
. - If you have not set up the development environment, its recommended to follow the "Development" section in this readme first.
- Once the repository is cloned and your development enviroment is setup, run
yarn build cloud-casa-extension
- Once the build is complete, run the command
yarn serve-pkgs
. - Now that the extension is being served head over to Rancher where you have the "Developer Load" page open, and paste in the the following command into the "Extension URL" text input field.
http://127.0.0.1:4500/cloud-casa-extension-0.1.3/cloud-casa-extension-0.1.3.umd.min.js
- Then enter
cloud-casa-extension-0.1.3
into the "Extension module name" text input field if it doesn't autofill. - Click the "Load" button in the bottom right of the modal.
- You should see a success message and the extension icon will automatically appear in the bottom left of Rancher navigation sidebar.
This Rancher Extension is under heavy development. The current process to get things running are listed below, along with links to the the Rancher Extension/CloudCasa API documentation pages.
The extensions and the Rancher Dashboard code are currently built with Node 20.
We recommend managing node versions with nvm.
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
cd # project directory
nvm install $(cat package.json | grep '\"node\": ' | grep -o '[0-9.]*')
When using nvm, you can use the following command to switch to the correct node version:
nvm use 20
We recommend using a fresh Rancher Docker image when developing. For more details on how to set up Rancher, check the documentation out here. The section below will just be a quick start guide. Feel free to use an existing testing instance of Rancher you may have.
sudo docker run -d --restart=unless-stopped -p 80:80 -p 443:443 --privileged -e CATTLE_BOOTSTRAP_PASSWORD=OPTIONAL_PASSWORD_HERE rancher/rancher:v2.10-head
Note the the “OPTIONAL_PASSWORD_HERE" will be the password you need to bootstrap/login. The default user is admin
.
Rancher should be running on http://localhost
, navigate to the url and bootstrap Rancher.
- Log into CloudCasa.
- Navigate to Configuration->API Keys.
- Click New API Key and follow the instructions. If you lose this key you will have to create a new one.
- Add the key to the .env file in the root of this repository.
- Clone this repository.
- Run
yarn install
. - Run
API=<Rancher Backend base URL> yarn dev
. (Example URL: http://localhost)