This documentation outlines the functionalities and APIs provided by the Frappe Kubernetes automation system.
Navigate to the Kubernetes Config Doctype to upload the cluster file and Docker account credentials.
Create apps and save their Git branch and URL, which are useful for creating Docker images.
- Create a new Docker image with selected apps.
- After saving the Docker image, click on the
Create Imagebutton. This will create the Docker image if it's not created before. The status of the Docker image will update toLiveafter a while, indicating successful creation. - If
is_currentis checked, that image will be fetched automatically during the creation of a site.
The Site Creation Details Doctype is used to create, delete, or update the site creation log. This doctype includes create_site, update_log, and delete_site buttons, responsible for managing site logs.
To authenticate API requests, use the api.apis.get_api_auth_token API. Provide Frappe site credentials in JSON format ({'username':'', 'password':''}). Include the token returned in the authentication header for all subsequent API requests.
- Input: JSON object
{ "site_name": "", "password": "", "image_url": "" // Docker image URL }
- Input: JSON object
{ "site_job_name":"all" or "job-name" }
- Input: JSON object
{ "site_job_name":"all" or "job-name" }
- Input: JSON object
{ "site_name":"", "password":"" }