Deploy a new App Service
Go to App Services, and click on Create App Service.
Fill in the details -
Name: Name of your App Service.
Container Information:
Container Name: The name of your container, you can keep this backend or anything else.
Container Image: The image name of your service. For example
yourorg/service1orredisor1111.dkr.ecr.ap-south-1.amazonaws.com/service1Initial Tag: The first version you wish to deploy for your service, the docker image tag.
Image Repository Type:
Public - For images that are publically available and can be pulled.
Private - For images which are privately stored on your custom Docker Server such as Dockerhub or AWS ECR.
Docker Server - Choose where you have hosted your private Docker images. You can choose from AWS ECR and Docker Hub currently.
For Docker Hub, you need to pass in your username and password. The password can also be a Personal Access Token (PAT) which is a more secure way.
For AWS ECR, you need to create an IAM user and grant access to ECR (along with GetAuthorizationToken API) and pass your AWS Access Key and Secret. You would also need to pass the docker server URL which will look like -
<aws_account_id>.dkr.ecr.<region>.amazonaws.com
Resource Limits: The resources you want to assign to a single instance / replica. You can use this to vertical scale your app.
Ports: The port(s) your application is running on.
Custom Command (optional): Custom run command which will override your ENTRYPOINT in your dockerfile.
Custom Args (optional): Custom arguments which will override your CMD in your dockerfile.
Networking:
Public: Use this to expose your application over the internet. A default public base URL will be assigned to your App Service for both environments. You can also customise your Public DNS after you create your app-service.
Private: Use this to expose your application only inside your Cosmocloud cluster. Your app will not be exposed over the internet, and only accessible to other services deployed under your Cosmocloud organisation.
Environment Variables: Define any environment variables your App Service would need, as Key-Value pairs for each environment.
Scale: Define the required scale of replicas (instances) of your application in each environment. These would count against your set defined quota and billing.
Click on Create.
Last updated