Skip to content

etiennecoutaud/curlme-controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published