kappy

command module
v0.0.2 Latest Latest
Warning

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

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

README

Kappy

Kappy is an opinionated Kubernetes build and deployment helper.

If you have one or more services that make up a part of your stack, or even your entire application, you can use Kappy to orchestrate CI, building and deployment tasks for one or more individual services.

Configuration

docker_registry

You can define an alternative docker_registry. This will then be included in an image's tags where the image is defined in the services section along with a build section, if build section is not sepcified you must fully qualify your image names if using a private registry.

For example, if you have docker_registry: dkr.myregistry.com, and an image with a build section in the services.<name>.containers section, where image: my/image, a tag will be added to the built image like: dkr.myregistry.com/my/image so that it can be pushed using docker push to that registry.

In .kappy.yaml:

docker_registry: dkr.example.com
services

You can define a set of services to be managed by kappy in this section. services is a map of services that will correspond to the service's unique name in Kubernetes.

In .kappy.yaml:

services:
  frontend-nginx:
containers

An instance of a service is defined by a set of containers that make up a pod in kubernetes. A service can contain any number of containers which will be scheduled together. In future versions of Kappy you'll be able to define resource shares so that pods can share the pid namespace, or a shared volume.

Each container is a running instance of a docker image. Inside the container section you can define which image to use. Additionally you can specify how Kappy can build this for you.

services:
  service-name:
    containers:
      - name: container-name
        build:
          # ...
        image: my/image-name

If a build section is specified, the image will be tagged with the image name defined, and if the docker_registry key is defined additionally, this will be used to tag the image.

build

This section is inspired by docker-compose's build section: https://docs.docker.com/compose/compose-file/#build

services:
  service-name:
    containers:
      - name: container-name
        build:
          context: .
          dockerfile: api/myapi/Dockerfile
          args:
            buildNo: 1

// TODO

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
git

Jump to

Keyboard shortcuts

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