Sign inSign up

etiennecoutaud/curlme-controller

By etiennecoutaud

•Updated over 6 years ago

Image
0

982

etiennecoutaud/curlme-controller repository overview

⁠CurlMe Controller

CurlMeController Docker Cloud Build Status codecov Go Report Card

CurlMe controller is a simple Kubernetes controller that watches ConfigMap with x-k8s.io/curl-me-that annotation.

⁠Overview

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

⁠Quickstart

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

⁠Run locally

To run the app locally make sure you have go 1.14 install and KUBECONFIG environment var set.

$ make run-local

⁠Questions

docs/questions⁠

Tag summary

Content type

Image

Digest

Size

19.6 MB

Last updated

over 6 years ago

docker pull etiennecoutaud/curlme-controller