CurlMe controller is a simple Kubernetes controller that watches ConfigMap with x-k8s.io/curl-me-that annotation.
CurMe controller watches ConfigMap resources like below
apiVersion: v1
kind: ConfigMap
metadata:
name: example
annotations:
x-k8s.io/curl-me-that: joke=curl-a-joke.herokuapp.com
data: {}
curl-a-joke.herokuapp.com response request will be stored into the configmap datas under joke key.
If the request fails, a warning event will be raised
To deploy the controller into your kubernetes cluster :
$ kubectl apply -f https://raw.githubusercontent.com/etiennecoutaud/curlme-controller/master/manifests/all-in-one.yaml
If you use Prometheus operator and ServiceMonitor CRD into your cluster. You can monitor your cluster with :
$ kubectl apply -f https://raw.githubusercontent.com/etiennecoutaud/curlme-controller/master/manifests/monitoring.yaml
To run the app locally make sure you have go 1.14 install and KUBECONFIG environment var set.
$ make run-local
Content type
Image
Digest
Size
19.6 MB
Last updated
over 6 years ago
docker pull etiennecoutaud/curlme-controller