Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

kube-appdeploy

Work-in-progress deployment tool for Kubernetes-hosted applications.

Getting started

First build the command line client. Make sure kubectl is available on your path and a cluster is running.

go install github.com/rubenv/kube-appdeploy/bin/kube-appdeploy

The examples folder contains .yaml files to deploy nginx on your cluster. To do just that, run:

kube-appdeploy ./example/

The appdeploy script will pick up all .yaml files in the folder and process these. You can use text/template syntax to change the computed content of the deploy configuration. This example deploys 2 nodes in production and 1 node in all other environments:

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: my-nginx
spec:
{{ if eq .Variables.env "production" }}
  replicas: 2
{{ else }}
  replicas: 1
{{ end }}
  template:
    metadata:
      labels:
    run: my-nginx
    spec:
      containers:
      - name: my-nginx
    image: nginx
    ports:
    - containerPort: 80

The "env" variable is set in "variables.yaml" in yaml syntax as shown here:

env: "development"

About

No description, website, or topics provided.

Resources

License

Releases

No releases published

Packages

No packages published