Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scnewma/app-controller
Example Kubernetes Controller.
https://github.com/scnewma/app-controller
Last synced: 10 days ago
JSON representation
Example Kubernetes Controller.
- Host: GitHub
- URL: https://github.com/scnewma/app-controller
- Owner: scnewma
- Created: 2019-11-11T00:25:56.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-11T00:33:48.000Z (about 5 years ago)
- Last Synced: 2024-06-19T04:06:15.532Z (5 months ago)
- Language: Go
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# App Controller
This is an example Kubernetes Controller + CRD build using [Kubebuilder](https://kubebuilder.io/). It abstracts a common webapp stack (deployment + service + ingress) into a new `WebApp` CRD.
> Note: This is not production ready.
With this new CRD, a web application can be created in a much more manageable way, like so:
```
apiVersion: webapp.com.shaunnewman/v1alpha1
kind: WebApp
metadata:
name: webapp-sample
spec:
instances: 2
image: gcr.io/kuar-demo/kuard-amd64:blue
healthCheckEndpoint: /healthy
cpu: 400m
memory: 56Mi
env:
TEST: some-value
routes:
- webapp-sample.example.com
```## How to use it
```
git clone https://github.com/scnewma/app-controller.git# install the CRDs into the cluster
make install# run locally
make run# run in-cluster (provide your own registry)
make docker-build docker-push IMG=/app-controller:latest
make deploy IMG=/app-controller:latest
```