top of page

How to use projects in Unifie

  • Writer: Trapenok Viktor
    Trapenok Viktor
  • May 10, 2024
  • 2 min read

Updated: May 20, 2024

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

ree

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.

ree

Next step – git pull operation.

ree

If git pull finished without error – you will see this page.

ree

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

ree

Service is created

ree

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.

ree

It is a minimal work to create a service here. Now we can deploy this project in cluster.

Project deploy

Create deployment.

ree
ree

Select a cluster for your deployment. If you do not have a cluster – you can create cluster with this seps or connect existed cluster

ree

Now we are ready to deploy

ree

Just wait several minutes, unifie will create namespace and deploy your project there.

ree

Check results

If all works fine after serveral minutes you will see your pod here:

ree

Additional information

 
 
 

Commentaires


bottom of page