Giter Site home page Giter Site logo

kubectl-deploy's Introduction

kubectl-deploy

kubectl + render + crypt family

kubectl-deploy it's a really simple kubectl plugin which renders Kubernetes manifests (go-template) and applies them.

The way it works is similar to tiller-less Helm 3, but:

Installation

Place kubectl-deploy in your PATH:

curl -#L \
    --url "https://raw.githubusercontent.com/VirtusLab/kubectl-deploy/master/kubectl-deploy" \
    --output "/usr/local/bin/kubectl-deploy"
chmod +x "/usr/local/bin/kubectl-deploy"

More info at Extend kubectl with plugins.

Usage

Ensure kubectl-deploy plugin is recognized by kubectl:

kubectl plugin list

Example usage:

Usage:
  kubectl deploy [flags]

Flags:
      --config string      config.yaml (required)
  -c, --context string     k8s context (optional)
  -d, --debug              enable debug logging level output (optional)
      --dry-run            If true, only print the object that would be sent, without sending it
  -f, --file string        k8s manifest or directory
  -h, --help               help for kubectl
  -n, --namespace string   k8s namespace (optional)
  -t, --trace              enable trace logging level output (optional)

For more advanced templates and rendering please take a look at render#usage.

Examples

Kubernetes manifests

kubectl deploy --file examples/manifests --config examples/config.yaml

Helm Charts

Currently rendering and applying the Helm chart is not supported. Mostly because Helm does not follow the standard go-template API.

As a workaround please use helm template command first.

Similar projects

Contribution

Feel free to file issues or pull requests.

kubectl-deploy's People

Contributors

antoniaklja avatar

Stargazers

 avatar

Watchers

Paweł Prażak avatar James Cloos avatar  avatar pdolega avatar Rafał Pokrywka avatar Mikołaj Kromka 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.