drud/crd-app-controller

Name: crd-app-controller

Owner: DRUD

Description: Demonstrative implementation of Kubernetes Custom Resource Definitions (CRD)

Created: 2017-07-26 17:52:51.0

Updated: 2017-11-09 23:16:17.0

Pushed: 2017-07-26 18:30:15.0

Homepage: null

Size: 2504

Language: Makefile

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

crd-app-controller

Demonstrative implementation of Kubernetes Custom Resource Definitions (CRD).

This project provides a Custom Resource Definition for Apps, a few example App resources to deploy, and a controller to do something when resource events happen (create, delete, etc). The controller will create helm deployments for Drupal or WordPress applications as applicable.

Usage
Create the Custom Resource Definition
ctl create -f app-resourcedef.yml
Run the controller

The controller can be run from outside the cluster, which is handy for development.

 darwin

d -kubeconfig=$HOME/.kube/config
Create app resources

In another terminal, create app resources. Watch the output from the controller terminal window as you create or delete resources. You should see helm charts install for valid app types (wp and drupal), and you should see a failed deploy status for app-entry-invalid.yml.

ctl create -f app-entry-[pickOne].yml

See your apps alongside other kube resources:

t apps

scribe app [my-app-name]

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.