All Projects → Wattpad → ship-it

Wattpad / ship-it

Licence: MIT license
Wattpad's tool for continuously deploying code to Kubernetes quickly, safely, and observably.

Programming Languages

go
31211 projects - #10 most used programming language
javascript
184084 projects - #8 most used programming language
Makefile
30231 projects
Mustache
554 projects
Dockerfile
14818 projects
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to ship-it

Flux
Successor: https://github.com/fluxcd/flux2 — The GitOps Kubernetes operator
Stars: ✭ 6,688 (+47671.43%)
Mutual labels:  continuous-delivery, helm, continuous-deployment, gitops
Argo Cd
Declarative continuous deployment for Kubernetes.
Stars: ✭ 7,887 (+56235.71%)
Mutual labels:  continuous-delivery, helm, continuous-deployment, gitops
Captain
A Helm 3 Controller
Stars: ✭ 129 (+821.43%)
Mutual labels:  helm, helm-charts, kubernetes-operator
Helm Charts
Helm Charts for Jaeger backend
Stars: ✭ 94 (+571.43%)
Mutual labels:  helm, helm-charts, kubernetes-operator
bump-everywhere
🚀 Automate versioning, changelog creation, README updates and GitHub releases using GitHub Actions,npm, docker or bash.
Stars: ✭ 24 (+71.43%)
Mutual labels:  continuous-delivery, continuous-deployment, gitops
charts
Helm charts for creating reproducible and maintainable deployments of Polyaxon with Kubernetes.
Stars: ✭ 32 (+128.57%)
Mutual labels:  helm, helm-charts, gitops
bodywork-ml-pipeline-project
Deployment template for a continuous training pipeline.
Stars: ✭ 22 (+57.14%)
Mutual labels:  continuous-delivery, continuous-deployment, gitops
Liquibase
Main Liquibase Source
Stars: ✭ 2,910 (+20685.71%)
Mutual labels:  continuous-delivery, continuous-deployment
Cdeasy
Continuous Delivery made Easy ;)
Stars: ✭ 143 (+921.43%)
Mutual labels:  continuous-delivery, continuous-deployment
Rocket
Automated software delivery as fast and easy as possible 🚀
Stars: ✭ 217 (+1450%)
Mutual labels:  continuous-delivery, continuous-deployment
Ayespy
A performant visual regression testing tool
Stars: ✭ 150 (+971.43%)
Mutual labels:  continuous-delivery, continuous-deployment
charts
Helm charts for using F5 products and services in Kubernetes and OpenShift environments.
Stars: ✭ 28 (+100%)
Mutual labels:  helm, helm-charts
Build
Netlify Build runs the build command, Build Plugins and bundles Netlify Functions.
Stars: ✭ 135 (+864.29%)
Mutual labels:  continuous-delivery, continuous-deployment
generator-nullfactory-xrm
Yeoman generator for Dynamics 365 Solutions. It generates a project structure that facilitates the quick creation builds and automated release strategies with minimal effort.
Stars: ✭ 15 (+7.14%)
Mutual labels:  continuous-delivery, continuous-deployment
Sshdeploy
A command-line tool that enables quick build and run deployments over SSH.
Stars: ✭ 131 (+835.71%)
Mutual labels:  continuous-delivery, continuous-deployment
Terrahub
Terraform Automation and Orchestration Tool (Open Source)
Stars: ✭ 148 (+957.14%)
Mutual labels:  continuous-delivery, continuous-deployment
Bbrun
Run Bitbucket Pipelines locally
Stars: ✭ 127 (+807.14%)
Mutual labels:  continuous-delivery, continuous-deployment
Bodywork Core
Deploy machine learning projects developed in Python, to Kubernetes. Accelerated MLOps 🚀
Stars: ✭ 145 (+935.71%)
Mutual labels:  continuous-delivery, continuous-deployment
helm-charts
Source & Repo of https://charts.kubesphere.io/main & https://charts.kubesphere.io/test
Stars: ✭ 85 (+507.14%)
Mutual labels:  helm, helm-charts
Nevergreen
🐤 A build monitor with attitude
Stars: ✭ 170 (+1114.29%)
Mutual labels:  continuous-delivery, continuous-deployment

Ship it! Build Status Go Report Card

Ship it! is Wattpad's tool for continuous deployment to Kubernetes.

The technical background and architecture of Ship-it can be found in the overview documentation here

Operations

Continuous Deployment

Ship-it watches HelmRelease custom resources in the namespace in which it is deployed. Whenever a HelmRelease resource is created/updated/destroyed, Ship-it performs the appropriate install/upgrade/delete Helm operation on the associated Helm release.

An example of a minimal HelmRelease definition:

apiVersion: shipit.wattpad.com/v1beta1
kind: HelmRelease
metadata:
  name: my-release-name
  annotations:
    helmreleases.shipit.wattpad.com/autodeploy: "true"
spec:
  releaseName: my-release-name

  chart:
    repository: my-chart-repository
    name: my-chart-name
    version: my-chart-version

  values: {}

As a quick overview, there are 4 important sections to take note of.

  • metadata.annotations enrich the HelmRelease with additional information. Annotations are always optional, however the HelmRelease will not autodeploy as the default is false. All annotations recognized by Ship-it are prefixed by helmreleases.shipit.wattpad.com/
Annotation Description Default Value
autodeploy Toggle auto-deployment of the release "false"
code Source code URL ""
datadog Datadog dashboard URL ""
squad Squad owner of the release ""
slack Slack channel of the owner ""
sumologic Sumologic query URL of the release ""
  • spec.releaseName defines the desired name of the Helm release

  • spec.chart provides the desired chart name and version

  • spec.values provides the desired chart values. In this example the service does not provide any overriding values for the chart, however the field is still explicitly required

A much more thorough documentation of the HelmRelease custom resource can be found in the resource definition, or by kubectl describe crd/helmreleases.shipit.wattpadhq.com in a cluster namespace where the CRD exists.

Automatic Rollback

Ship-it initially has limited support for automatic rollbacks. When a Helm release enters the FAILED state, Ship-it will perform a Helm rollback operation to the most recent successful release version. Most often, this will be the immediately previous release version.

Developers should take note that a FAILED Helm release is caused by deployment errors, not application runtime errors. Some non-exhaustive examples are: incomplete chart values or corrupted manifests produced by invalid templates, failure to create resources in the desired namespace, or tiller internal error. A Helm release will not fail because a Pod crashes after its deployment is successfully rolled out.

In the future, we plan to add support for more advanced rollback strategies such as rollbacks triggered by failing liveness/readiness health probes or developer defined conditional expressions on service metrics.

Local Development

This project uses kind for local development and testing. To get started, you'll need to install these tools to your development machine:

  1. Create a new kind cluster
$ make kind-up
  1. Update kubectl's cluster context
$ export KUBECONFIG=$(kind get kubeconfig-path --name="ship-it-dev")
$ kubectl config current-context
kubernetes-admin@ship-it-dev
  1. Build local images
$ TARGET=ship-it-api make build
$ TARGET=ship-it-syncd make build
$ cd operator && make docker-build
  1. Deploy local ship-it images
$ make kind-deploy
  1. Connect to the service's node port (check the chart values)
curl -i http://localhost:31901/api/releases

or

open http://localhost:31901
  1. Destroy cluster when finished
make kind-down
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].