Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
docker
yaml
README.md

README.md

Liberty Ingress

Alternative Kubernetes ingress with easy customization with Python and jinja templates

Image tedezed/liberty-dynamic-ingress

Backend modes

All backend use sticky session Nginx.

Service: IP backend from service. Annotation ingress-liberty/backend-entity: service

Pod (default): IP backend from Pod, ignore service IP. Annotation ingress-liberty/backend-entity: pod for session affinity.

Start/Stop namespace like Heroku using ingress

  • Add the next annotations to ingress: ingress-liberty/start-stop: "true"
  • You can exclude a deploy or an rc so that it is not affected in the namespace, using the annotation: ingress-liberty/start-stop: "false"

Deploy Ingress Liberty and filebeat

Operation Diagram

Env variables Liberty:

  • ELK="false"

Deploy ELK Liberty mode start

Env variables:

  • ELK="true"
  • ELK_MODE="start"
  • TIME_QUERY="35"
  • ELK_HOST="elasticsearch-client.namespace.svc.cluster.local"
  • ELK_LIBERTY_NAMES="liberty-test-1 liberty-test-2"

Functioning:

  • If the ingress was visited but returned an error 502 (usually because it is stopped) it tries to start

Cronjob [ 00 00 * * * ] ELK Liberty mode stop

Env variables:

  • ELK="true"
  • ELK_MODE="stop"
  • ELK_HOST="elasticsearch-client.namespace.svc.cluster.local"
  • ELK_LIBERTY_NAMES="liberty-test-1 liberty-test-2"

Functioning:

  • If the ingress was not visited yesterday it stops

Kube-Lego

Add to deployment of kube-lego:

LEGO_SUPPORTED_INGRESS_PROVIDER="nginx,liberty"
LEGO_SUPPORTED_INGRESS_CLASS="nginx,liberty"
You can’t perform that action at this time.