kubectl-deploy

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

README

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        If true, only print the object that would be sent, without sending it
  -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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL