Skip to content

Manifest file

Manifest files are available in different kind and they can be used to create any resources on 01cloud eco system.

NOTE: As of right now, the manifest files can only be used for creation purpose, and updates on manifest file will enable us to maintain any thing on 01cloud.

For all the manifest files below, the kind field must be supplied, so the cli can process it accordingly.

Organization

organization manifest file can bse used to create organization with setting yourself as the owner. The default format for organization manifest file is as below,

apiVersion: app.01cloud.io/v1
kind: organization # compulsory field
metadata:
    name: My New Organization # compulsory field
spec:
    subscription:
        id: 1 # compulsory field
    domain: ""
    description: "this is the org description"
  1. As the creation of organization, the Name of the new organization and the SubscriptionID is compulsory.

Project

project manifest file can be used to create projects on 01cloud eco system. The main format for creating any project on 01cloud is as below,

apiVersion: app.01cloud.io/v1
kind: project # compulsory field
metadata:
    name: Project Name # compulsory field
spec:
    organization:
        id: ORG ID
    subscription:
        id: SubscriptionID # compulsory field
    dedicated_lb: BOOLEAN VALUE
    optimize_cost: BOOLEAN VALUE
  1. As the creation of project must need the project name and the subscription id, so these two will be the compulsory field for the creation of any project.
  2. If no any organization id is supplied while creation of the project, then the project will be created at the DEFAULT organization i.e. of ID 0.

Application

project manifest file can be used to create projects on 01cloud eco system. The main format for creating any project on 01cloud is as below,

apiVersion: app.01cloud.io/v1
kind: application # compulsory field
metadata:
    name: My App # compulsory field
spec:
    cluster:
        id: clusterID # compulsory field
        name: france
        region: france
    service_type: 0
    git_service: ""
    git_repo_url: ""
    git_repository: ""
    plugin:
        id: PluginID # compulsory field
        name: wordpress
    project:
        id: ProjectID # compulsory filed
        name: Project Name
  1. The application name must be provided
  2. As the creation of application must need the project ID or project name, as the application must reside on any one project.

Creation of application with project name will be soon updated on the cli, as it is on development process.

NOTE: this is only while using template for application creation. As, while using git or container registry, more fields will be required, so this docs will be soon updated.