Giter Club home page Giter Club logo

kind-quickstart's Introduction

[[TOC]]

Kind QuickStart

The purpose of this automation is to install BigBang onto a Kind cluster running on your local machine

Prerequisites

Getting Started

  • Create an env file from the example cp example.env .env
  • Set environment variables in the .env file to fetch dependencies for bigbang and the git repo where your git ops configuration will live.
    • Get your username and CLI Secret from Registry1 for REGISTRY1_USERNAME and REGISTRY1_PASSWORD Registry1Image Registry1Image
    • Create an access token from your gitlab account with api permissions and set your GIT_ACCESS_TOKEN to that.
  • Set the GIT_BRANCH_NAME to a new branch you want your cluster to be managed from. This will be a branch on this repo
  • Run deploy.sh, grab some coffee, it'll take around 10-15 minutes to complete
  • Kiali will be the last service to come up, visit http://kiali.bigbang.dev

Go into the dev folder and update your bb configuration

cd bb-template/dev/

Modify the configmap.yaml to enable a new service

...
twistlock:
  enabled: false # Set to true
  values:
    console:
      persistence:
        size: 5Gi
...

Push the new configuration and watch your cluster update all GitOps like

git commit -am "enable twistlock"
git push
watch kubectl hr,po -A

Cleanup

  • To teardown run teardown.sh

Troubleshooting

If elasticsearch doesn't come up please do the following to give the image the minimum space it needs

sysctl -w vm.max_map_count=262144
echo "vm.max_map_count=262144" | sudo tee -a /etc/sysctl.conf

Similarly, fluentbit may enter crashLoopBackoff for an error [TIMESTAMP] [error] [plugins/in_tail/tail_fs_inotify.c:305 errno=24] Too many open files, the below are possible fixes for that

sysctl -w fs.inotify.max_user_instances=1500
echo "fs.inotify.max_user_instances=1500" | sudo tee -a /etc/sysctl.conf

Also check for a low value set, and change as below

cat /proc/sys/fs/inotify/max_user_watches

# If the value of the cmd above is low, then adjust like this
sysctl -w fs.inotify.max_user_watches=525000
echo "fs.inotify.max_user_watches=525000" | sudo tee -a /etc/sysctl.conf

kind-quickstart's People

Contributors

marcjmiller avatar pchapin-cse avatar drduker avatar harriscfn avatar

Watchers

James Cloos avatar  avatar

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.