Thanks to visit codestin.com
Credit goes to github.com

Skip to content

wri/project-zeno-deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

project-zeno-deploy

This repository contains the infrastructure and deployment configuration for the Zeno project.

Deployment Process

The deployment process is automated through GitHub Actions:

  • Pushing to develop branch triggers a deployment to staging environment
  • Pushing to main branch triggers a deployment to production environment

Environment URLs

Updating Application Version

To update the application version:

  1. Open helm/zeno/values.yaml
  2. Under the api section, locate the image subsection
  3. Update the tag field with the desired git hash from the main Zeno repository

Example:

api:
  image:
    repository: public.ecr.aws/b7u8b0a6/project-zeno/zeno
    tag: 2757f359105a9738086f1d07ac2e8200cca9675d  # Replace with new git hash

Database Updates

When the database schema or migrations have changed:

  1. Open helm/zeno/values.yaml
  2. Under the db section, locate the image subsection
  3. Update the tag field with the git hash that includes the database changes

Example:

db:
  image:
    repository: public.ecr.aws/b7u8b0a6/project-zeno/zeno-db
    tag: 149bffadbb4d58500b13accc7eb862c4d6d08150  # Replace with new git hash

Note: It's important to ensure that the database migrations are compatible with the application version being deployed.

Inspecting Logs

We use Prometheus + Loki + Grafana for monitoring of services and logging.

To login:

Go to https://grafana.staging.globalnaturewatch.org

Login: admin Get password with kubectl get secret -n support support-grafana -o jsonpath='{.data.admin-password}' | base64 -d

To get memory, CPU usage, etc. over time for pods, go to Dashboard and select the appropriate Dashboard.

To see API logs:

Go to Explore. Switch from Prometheus to Loki in the top bar. In label filters: select label=component and value=api . Hit the Run Query button at the top right. You should see the raw logs appear below. You can use the text filter to narrow down your search.

About

Find Zeno's cloud deploy code here!

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 7

Languages