host-ip-service

by nginx-cert-charts

Helm chartv0.2.0

Helm chart to expose host IP services and generate optional Ingress entries per port.

About this chart

host-ip-service

A flexible Helm chart for exposing host IP services as Kubernetes Services and optionally creating Ingress resources per port.

Features

  • Creates a Kubernetes Endpoints and Service resource to route traffic to a host IP.
  • Optionally exposes each port via Ingress, with per-port customization.
  • Supports global and per-ingress annotations.
  • TLS configuration is supported via ingress.tls.

Values

Top-level values

KeyTypeDescriptionDefault
namespacestringNamespace to deploy resources intodefault
endpoint.namestringName of the Endpoint and Servicedocker-host
endpoint.ipstringIP address to route traffic to172.17.0.1

endpoint.ports[]

KeyTypeDescription
namestringPort name
portintPort number
ingress.enabledboolWhether to expose via Ingress
ingress.hoststringHostname for Ingress
ingress.pathstringPath for Ingress
ingress.annotationsobjectExtra annotations for this Ingress

ingress

KeyTypeDescription
annotationsobjectGlobal ingress annotations
tlslistTLS configuration

Example

namespace: docker-host
endpoint:
  name: docker-host
  ip: 172.17.0.1
  ports:
    - name: gitlab
      port: 80
      ingress:
        enabled: true
        host: gitlab.test.com
        path: /
        annotations:
          nginx.ingress.kubernetes.io/proxy-body-size: 50m

ingress:
  annotations:
    nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
    nginx.ingress.kubernetes.io/ssl-redirect: "false"
  tls:
    - secretName: gitlab-tls
      hosts:
        - gitlab.test.com

Deploy host-ip-service with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has host-ip-service 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 charthost-ip-service is pinned at v0.2.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