The project in Unifie is a group of applications that should be deployed in the same k8s namespace and should be used together in some business proposal.
For example: You want to deploy a web application with several microservices for your customer. You need to deploy the Postgres database, SuperTokens and Docker containers with your application.
It makes sense to combine it to one project.
Create a new project:
1. Git configuration
Project configuration should be stored in git repository. For this propose you can create new git repo or use one of existed repos.If you use private repo – add Access Token to ginfiguration form.
Next step – git pull operation.
If git pull finished without error – you will see this page.
1. Create new service in project
Next step – create some services in your project. To make this tutorial simpler – will continue with Stateless nginx Application from kubernetes docs
Create service
Service is created
Now we need to provede specification for this service. It is a simple yaml code (not helm chart)
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
spec:
selector:
matchLabels:
app: nginx
replicas: 2 # tells deployment to run 2 pods matching the template
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.14.2
ports:
- containerPort: 80
Go to custom YAML template tab and past this yaml.
It is a minimal work to create a service here. Now we can deploy this project in cluster.
Project deploy
Create deployment.
Select a cluster for your deployment. If you do not have a cluster – you can create cluster with this seps or connect existed cluster
Now we are ready to deploy
Just wait several minutes, unifie will create namespace and deploy your project there.
Check results
If all works fine after serveral minutes you will see your pod here:
Comments