ingress-proxy

by Mario-F

Helm chartv1.4.0Verified publisher

A simple ingress proxy helm chart

About this chart

Ingress Proxy

This helm charts aims to make cluster external http(s) endpoints accessible through the clusters ingress.

Reasons to do this could be any of:

  • Use the clusters Hostname/DNS service
  • Use the clusters certificate managment
  • Use clusters ingress IP (maybe a single ipv4 WAN endpoint)
  • ... sure there will be more

Usage

Using the helm chart simply by executing the following commands:

helm repo add mariof-charts https://mario-f.github.io/helm-charts/
helm install ingress-proxy mariof-charts/ingress-proxy

Examples (values.yaml)

Simply forward to a server on the network without tls:

simple:
  enabled: true
  endpoint:
    ip: 10.10.10.10
    port: 8080
  ingress:
    hostnames:
      - my.example.com

Forward to a server using tls, custom ingress class, annotations and secure with basic-auth:

simple:
  enabled: true
  endpoint:
    ip: 10.10.10.10
    port: 8080
    tls: "true" # Set annotations for secure-backend without validation
  ingress:
    hostnames:
      - my.example.com
    class: "custom-nginx"
    tls:
      clusterIssuer: "letsencrypt-stage"
    annotations:
      nginx.ingress.kubernetes.io/proxy-body-size: "0"
  auth:
    username: dummyuser
    password: securepassword1234

Templates

This chart provides a template render mechanism for rendering additional ressources bound to this release.

It works like bedag/raw helm chart but not on subchart level, see this example (values.yaml):

templates:
  - enabled: true
    content: |
      apiVersion: v1
      kind: ConfigMap
      metadata:
        name: {{ include "parent.fullname" . }}-additional
        labels:
          {{- include "parent.labels" . | nindent 4 }}
      data:
        example.data: |
          nothing special here
          out

Deploy ingress-proxy with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has ingress-proxy on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartingress-proxy is pinned at v1.4.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply