Create application ΒΆ
This how-to guide will show you how to create a Nais manifest for your application.
Setup ΒΆ
Inside your application repository, create a .nais-folder.
bash
cd <MY-APP>
mkdir .naisCreate a file called app.yaml in the .nais-folder.
bash
touch .nais/app.yamlDefine your application ΒΆ
Below is a basic example of an application manifest.
Add the following content to the file, and insert the appropriate values in the placeholders on the highlighted lines:
.nais/app.yaml
yaml
apiVersion: nais.io/v1alpha1
kind: Application
metadata:
name: <MY-APP>
namespace: <MY-TEAM>
spec:
image: {{image}} # Placeholder variable to be replaced by the CI/CD pipeline
port: 8080
replicas:
max: 4
min: 2
resources:
requests:
cpu: 200m
memory: 128MiThis application manifest represents a very basic daemon application. You will likely want to add more configuration to your application manifest based on your needs.
Related pages ΒΆ
π― Build and deploy your application to Nais.
π― Expose your application.
π Application spec reference.
π Full Application example.