npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@medic/cht-deploy

v1.0.11

Published

## Deploy the CHT

Downloads

3

Readme

CHT Core Kubernetes Deployment

Introduction

This guide walks you through the process of deploying the Community Health Toolkit (CHT) Core application on a Kubernetes cluster. The deployment process utilizes a set of scripts and Helm charts for a simplified deployment experience.

The helm charts can be seen in the medic/helm-charts repository.

The primary script, cht-deploy, automatically installs the required Python packages and initiates the deployment of CHT Core on your Kubernetes cluster.

Prerequisites

This script is set to install all the necessary prerequisites.

Note: The first run of the script may take longer due to downloading and installing necessary packages.

Values Configuration

Before running the cht-deploy script, you need to provide values in the values.yaml file. Here is an explanation of the values you need to replace:

  • project_name: Replace <your-project-name> with your preferred project name.
  • namespace: Replace "cht-dev-namespace" with the desired namespace for the deployment.
  • chtversion: The version number of the CHT Core.
  • couchdb.password: Replace <password-value> with your preferred password for CouchDB.
  • couchdb.secret: Replace <secret-value> with your preferred secret for CouchDB.
  • couchdb.user: Replace <user-name> with your preferred user name for CouchDB.
  • couchdb.uuid: Replace <uuid-value> with the UUID of your CouchDB.
  • clusteredCouch.noOfCouchDBNodes: The number of CouchDB nodes in your cluster.
  • toleration: This is for the CouchDB pods. It's best not to change this unless you know what you're doing.
  • ingress: Configuration for ingress including annotations, group name, tags, certificate and host.
  • environment: Environment for the deployment. Can be "local" for local deployments using k3d/k3s or "remote" for remote deployments - remote kubernetes cluster (e.g. EKS)
  • local.diskPath: If the environment is set to "local", replace "/var/lib/couchdb" with your desired disk path for local storage.

Running the Script

To initiate the deployment process, you need to run the cht-deploy script with the -f flag followed by the path to your values.yaml file, like so:

./cht-deploy -f <path-to-your-values.yaml>

The script will then install the necessary Python packages, read your values.yaml file, and initiate the deployment process.

Troubleshooting

If the deployments are not created as expected, check the logs for any errors. If the issue is related to missing deployments, confirm that the correct number of CouchDB nodes is specified in the values.yaml file for example.

During the course of using or managing your CHT installation, you may encounter situations where things are not working as expected. These scripts provide a means to inspect the status of your installation and gather information about its configuration and behavior. Here's when to use which:

view-logs

Use this command when you want to check the logs of a specific deployment. This could be useful when you have identified a specific service or component that is not behaving correctly, and you want to inspect its runtime logs for error messages or other diagnostic information.

Example usage:

./view-logs cht-dev-namespace cht-couchdb-1

list-deployments

Use this command to list all the deployments in a specific namespace. This is useful when you want to see what deployments are running and check their status.

Example usage:

./list-deployments cht-dev-namespace

list-all-resources

This command provides a comprehensive view of all resources in a specific namespace, including services, pods, deployments etc. Use this when you want to get an overview of everything that's running in a particular namespace.

Example usage:

./list-all-resources cht-dev-namespace

describe-deployment

Use this command to get a detailed description of a specific deployment. This could be useful when you want to inspect the configuration, status and events related to a specific deployment.

Example usage:

./describe-deployment cht-dev-namespace cht-couchdb-1

Keep in mind that you will need to replace cht-dev-namespace and cht-couchdb-1 with your specific namespace and deployment names.