Coder Social home page Coder Social logo

sytone / autosetup Goto Github PK

View Code? Open in Web Editor NEW

This project forked from autoapply/autosetup

0.0 2.0 0.0 343 KB

Quickly set up autoapply in a Kubernetes cluster

License: MIT License

JavaScript 70.49% Smarty 13.21% Dockerfile 0.87% Makefile 0.30% Shell 15.14%

autosetup's Introduction

autosetup

Build Status Docker build status License

Quickly set up autoapply in a Kubernetes cluster.

Technical overview

  1. Create a configuration file with the repository URL and required secrets
  2. Run autosetup to create Kubernetes resource files based on the configuration file
  3. Apply the resource files to your Kubernetes cluster to create the autoapply deployment

Usage

Run autosetup by using the Docker image autoapply/autosetup.

$ docker run --rm autoapply/autosetup \
    -c git.url=https://github.com/autoapply/template-kubectl \
    -c 'kubernetes.paths=["common","dev"]' \
    -c kubernetes.namespace=autoapply-test \
    > output.yaml
info: All templates successfully generated!
$ cat output.yaml
$ kubectl apply -f output.yaml

Alternatively, you can also install it locally using yarn global add autosetup or npm install -g autosetup.

Configuration

A simple configuration file looks like this:

git:
  url: "https://github.com/autoapply/template-kubectl"
kubernetes:
  paths:
    - "common"
    - "dev"

For more details, see example-config.yaml.

See template-kubectl and template-kustomize for example repositories.

SSH key

The SSH key to access Git repositories can be generated using

$ ssh-keygen -N '' -m PEM -b 4096 -t rsa -f id_rsa -C autoapply

yaml-crypt keys

A new yaml-crypt key can be generated using

$ yaml-crypt --generate-key

sops configuration

For information on how to setup sops, see the documentation.

License

MIT

autosetup's People

Contributors

dependabot[bot] avatar pascalgn avatar

Watchers

 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.