Skip to main content

Manage multiple apps across one or more k8s clusters.

Project description

GitOps

PyPI version versions Test Lint

Manage multiple apps across one or more k8s clusters.

Overview

Using CI/CD for applications is a wonderful technique to ease the pain of DevOps,wouldn't it be nice to apply the same workflow to cluster provisioning?

GitOps is a two-part system. A library of commands is used to manage a single-tenanted cluster within a git repository, and the server component watches the repository and provisions the calculated changes.

Currently Kubernetes/Helm is the only supported cluster interface. All changes to the cluster are performed as applications of Helm charts.

Installation

Secrets should be placed in secrets.env. The example file secrets.example.env has the environment variables you will need to supply.

Gitops has a helm chart defining its deployment. Invoke scripts are provided to make deployment painless. See tasks.py.

Add export GITOPS_APPS_DIRECTORY=~/<cluster-apps-folder> to invoke gitops from any directory.

Roadmap

  • Handle failure on initial application deployment.
  • Better error reporting on failures.
  • Forced redeployment interface.
  • Make kubernetes specific code modular so that we can start to support multiple deployment methods.
  • Invoke commands and other tools should be extracted from the uptick-cluster repo, added here and packaged up. Package should create /usr/bin/gitops to act as a CLI interface. Convert invoke commands to this new interface.
  • Add a command to create a template cluster repo (ala uptick-cluster) and give instructions to push it up and set up a webhook.

Developer experience should look something like:

pip install gitops
gitops create-repository
    -> Creates cluster repo (maybe with examples?)
    -> Explains or pushes repo up somewhere.
    -> Explains or sets up a webhook on that repo.
gitops create-secrets
    -> Either downloads secrets from AWS using awscli or
    -> Prompts for each secret individually.
gitops deploy-server
    -> helm upgrade gitops chart... (see tasks.py:deploy)
# Use as normal anywhere you want (like uptick-cluster invoke scripts)
gitops summary
gitops bump```


Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gitops-0.3.24.tar.gz (21.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gitops-0.3.24-py3-none-any.whl (24.8 kB view details)

Uploaded Python 3

File details

Details for the file gitops-0.3.24.tar.gz.

File metadata

  • Download URL: gitops-0.3.24.tar.gz
  • Upload date:
  • Size: 21.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for gitops-0.3.24.tar.gz
Algorithm Hash digest
SHA256 b536ad9824e28a5f2d2812c177097e4a74b7860c8ac36ab6deae618950d0256f
MD5 bf1f1552746398521185c193d51a32ea
BLAKE2b-256 915c1fa380b8fe4767afb06038f664735277ab1de89c936f13fa8058fe882d82

See more details on using hashes here.

File details

Details for the file gitops-0.3.24-py3-none-any.whl.

File metadata

  • Download URL: gitops-0.3.24-py3-none-any.whl
  • Upload date:
  • Size: 24.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for gitops-0.3.24-py3-none-any.whl
Algorithm Hash digest
SHA256 58472557cc43d5316ccaf38d28820d5a31cd47632041a774fd67af2805195382
MD5 1bfd2165b6df8f068054b35bfbe1ae84
BLAKE2b-256 2c01b084006ef2232e972b8d1cd3791f5185d4876e6ca2e5499ea650433c53b8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page