Categorygithub.com/moiot/gravity-operator
module
0.3.12
Repository: https://github.com/moiot/gravity-operator.git
Documentation: pkg.go.dev

# README

Gravity Operator

Build Status

Gravity Operator manages Gravity processes on Kubernetes.

Getting Started

This document introduces how to deploy, configure and upgrade a Gravity Operator.

Prerequisites

  • Kubernetes 1.11+ with CRD status subroutine
  • helm

Installing

$ cd charts/gravity-operator
$ helm install --name gravity-operator ./

This chart bootstraps a gravity-operator deployment on a Kubernetes cluster using the Helm package manager.

Gravity Cluster Configuration

The following table shows the configurable parameters of the gravity-operator chart and their default values. See deploy/k8s/gravity-operator/values.yaml.

ParameterDescriptionDefault Value
deploymentRulesArray of deployment rules which control Gravity deployment versionsSee DeploymentRules
operator.image.repositoryImage of the operatormoiot/gravity-operator
operator.image.tagImage tag of the operatorv0.1.0
operator.rollingThe maximum number of pipelines that can be upgraded in parallel. Value can be an absolute number (ex: 5) or a percentage (ex: 10%).25%
admin.image.repositoryImage of adminmoiot/gravity-admin
admin.image.tagImage tag of adminv0.2.0
admin.service.nodePortNode port of the admin service30066

By defining DeploymentRule, a Gravity cluster is divided into multiple groups based on the pipeline name and these groups can use different Gravity versions.

The default rule is as follows:

  - group: "default"
    pipelines: ["*"]
    image: "moiot/gravity:v0.9.15"
    command: ["/gravity", "-config=/etc/gravity/config.json"]
ParameterTypeDescription
groupStringName of the rule
pipelinesString arrayGlobal expression of the matched pipeline name
imageStringImage (including tag) of matched pipeline deployment. It will be written to pod template's container image field
commandString arrayCommand of running matched pipeline. It will be written to pod template's container command field

Gravity Cluster Upgrade

To upgrade a Gravity cluster, perform the following steps:

  1. Modify the values.yaml file in the chart.
  2. Use helm to upgrade the cluster.

Architecture

Architecture

License

This project is licensed under the Apache License 2.0 License - see the LICENSE file for details

# Packages

No description provided by the author
No description provided by the author