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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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.
ctl create -f app-resourcedef.yml
The controller can be run from outside the cluster, which is handy for development.
darwin
d -kubeconfig=$HOME/.kube/config
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]