Skip to main content

SideApp

SideApp is a mechanism that operates built containers independently on Kubernetes, running as pods with the same lifecycle as Circuit. It shares resources with Circuit and provides access to each component.

How to Use

  • Push your Docker container to ECR and enter the URI in the image field of the SideApp node.

URL Structure

Accessing from external sources (such as a PC)

http(s)://CLUSTERS_DOMAIN/NAMESPACE/WORKSPACE/RESOURCENAME/
  • RESOURCENAME can be set from the Name field of the SideApp node in Canvas.

Sample URL:

https://studio.dev.studio.exabase.ai/dev--taro-suzuki/canvas/entity-data-price/
  • The trailing / at the end of the URL is mandatory.

Accessing from within Circuit (e.g., another SideApp)

http://WORKSPACE-RESOURCENAME:8080 

or

https://WORKSPACE-RESOURCENAME:8443

Sample URL:

http://canvas-entity-data-price:8080/data
  • Workspace and resource must be connected with a - (hyphen).

Image

  • The URI of the image to be used.

Resources

  • The CPU and Memory Resource requests values are displayed.
    The CPU requests value is 0.1.
    The memory requests value is 64MB.
  • If the container requires more resources than these values, it will automatically scale up. config-resources

Storage

  • Filesystem storage used for data persistence. More details can be checked from Storage.

Environment Variables

  • Environment variables for the SideApp container can be set.

Add

  • Select the SideApp widget. Click the + in the Environment variables section of the properties panel to add a field for setting environment variables. Enter the variable name in Key and its value in Value. Only alphanumeric characters are allowed for variable names.
    add-env-var

Delete

  • Hover over the field of the environment variable you want to delete, click the that appears on the right, and then click the x mark that appears to delete the corresponding environment variable. delete-env-var-minus delete-env-var-x

Injection

  • You can mount contents edited in an editor as files anywhere in the SideApp container.

Add

  1. Select the SideApp widget. Click the + in the Injection section of the properties panel to add fields for the file. Enter the mount path in Path.
    add-injection-path

  2. Hover over the field for the file and click the code icon that appears on the right. Enter the file content in the editor displayed in the bottom panel.
    add-injection-code

info
  • The "Language" option in the lower left of the editor allows syntax highlighting based on the programming language.

Delete

  • Hover over the field of the Injection file you want to delete, click the that appears on the right, and then click the x mark that appears to delete the corresponding Injection file.

Ports

The following ports can be used in SideApp. When creating the image in the Dockerfile, please expose the used ports with EXPOSE <port_number>.

Port NumberIntended Use
80HTTP
443HTTPS
3306MySQL
5432PostgreSQL
1433Microsoft SQL Server
27017MongoDB
6379Redis
21FTP Control
20FTP Data Transfer
990FTPS Control
989FTPS Data Transfer
25SMTP
587STARTTLS
465SMTP over SSL
8080Other
8081Other