Giter Club home page Giter Club logo

crate-sonnet's Introduction

crate-sonnet

A jsonnet mixin library to create CrateDB Kubernetes manifests.


⚠️ Warning

This library is not meant for production usage yet!

The APIs are still subject to change.


🏗️ Usage

This library is intended to be used with Tanka to deploy Kubernetes manifests.

First, install the library using the jsonnet-bundler:

jb install https://github.com/chaudum/crate-sonnet@main

To use this library in a Tanka environment import the crate-sonnet/mai.libsonnet like in the following, minimal example that generates manifests for a 3 node cluster with general purpose nodes.

local crate = import 'crate-sonnet/main.libsonnet';

crate {
  _config+:: {
    namespace: 'my-cratedb-namespace',
    cluster: 'my-cratedb-cluster',

    general_purpose_replicas: 3,
    general_purpose_cpu: '1',
    general_purpose_memory: '1024Mi',
    general_purpose_heap: '512m',

    crate+: {
    },
  },
}

⚙️ Default configuration

{
  _config+:: {
    create_namespace: true,

    // versions
    version: 'latest',
    jmx_exporter_version: '1.0.0',

    // general purpose node
    general_purpose_replicas: 3,
    general_purpose_cpu: '8',
    general_purpose_memory: '16Gi',
    general_purpose_heap: '8g',
    general_purpose_name: 'general-purpose',

    // master node
    master_replicas: 3,
    master_cpu: '1',
    master_memory: '1Gi',
    master_heap: '512m',
    master_name: 'master',

    // data node
    data_replicas: 5,
    data_cpu: '8',
    data_memory: '16Gi',
    data_heap: '8g',
    data_name: 'data',

    // disks
    data_disks: 1,
    data_pvc_size: '100Gi',
    data_pvc_storage_class: 'fast',
    data_pvc_mount_path: '/data',

    // ports
    http_listen_port: 4200,
    transport_listen_port: 4300,
    psql_listen_port: 5432,
    jmx_listen_port: 7979,
    jmx_exporter_listen_port: 8080,

    // flags
    enable_blobs: false,
    enable_rolling_upgrades: false,
    enable_master_data_deployment: false,
    enable_jmx_api: false,
  },
}

crate-sonnet's People

Contributors

chaudum avatar

Watchers

 avatar  avatar

crate-sonnet's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.