external-services

by acidsugarx

Helm chartv0.1.2App 1.0Verified publisher

A Helm chart for easily deploying external services with ingress and TLS termination in private Kubernetes networks

About this chart

External Services 🌐

A Helm chart for easily deploying external services with ingress and TLS termination in private Kubernetes networks.

This chart is designed for environments where all external traffic routes through a single Ingress endpoint, enabling you to expose internal network services and virtual machines directly through Kubernetes without provisioning separate load balancer instances.

Features

  • 🔐 TLS Ready: Automatic certificate generation or bring your own
  • ⚙️ Configurable: Flexible ingress and service settings
  • 🚀 Simple: Minimal configuration for quick deployments
  • 🔁 Protocol Support: HTTPS backend protocols and custom annotations

Quick Start

To quickly install with minimal configuration:

# Add repo to the Helm.
helm repo add homelab-charts https://acidsugarx.github.io/helm-open

# Set values with cli
helm install --namespace service --create-namespace my-external-service homelab-charts/external-services \
  --set externalServices.minimal-example.enabled=true \
  --set externalServices.minimal-example.externalName=example.com \
  --set externalServices.minimal-example.domain="example.local"

Or create a minimal values file:

externalServices:
  minimal-example:
    enabled: true
    externalName: example.com
    domain: "example.local"

Then install:

helm upgrade --namespace service --create-namespace my-external-service homelab-charts/external-services -f values.yaml 

Configuration

Global Parameters

ParameterDescriptionDefault
namespaceDefault namespace for servicesservice
defaultSettings.ingress.annotationsGlobal ingress annotations{cert-manager.io/cluster-issuer: "letsencrypt"}
defaultSettings.ingress.ingressClassNameGlobal ingress class namenginx
defaultSettings.ingress.tlsEnabledEnable TLS globallytrue
defaultSettings.ingress.useExistingCertUse existing certificate globallyfalse
defaultSettings.portsDefault port configuration[{port: 443, targetPort: 80, protocol: TCP, name: https}]
defaultSettings.annotationsDefault annotations for services{}
defaultSettings.backendProtocolDefault backend protocol""

Service Parameters

ParameterDescriptionDefault
externalServices.[name].enabledEnable the servicetrue
externalServices.[name].namespaceNamespace for the serviceservice
externalServices.[name].externalNameExternal name for the service""
externalServices.[name].domainDomain for the ingress rule""
externalServices.[name].annotationsService annotations{}
externalServices.[name].portsPort configuration[{port: 443, targetPort: 80, name: https}]
externalServices.[name].ingress.enabledEnable ingress for this servicetrue
externalServices.[name].ingress.annotationsIngress annotationsGlobal default
externalServices.[name].ingress.ingressClassNameIngress class nameGlobal default
externalServices.[name].ingress.tlsEnabledEnable TLS for this serviceGlobal default
externalServices.[name].ingress.useExistingCertUse existing certificateGlobal default
externalServices.[name].ingress.backendProtocolBackend protocol for ingressGlobal default
externalServices.[name].ingress.rulesCustom ingress rulesAuto-generated from domain

Service Definition

externalServices:
  my-service:
    enabled: true
    namespace: service
    externalName: service.example.com
    domain: "service.example.com"
    ingress:
      tlsEnabled: true
      useExistingCert: false  # Set to secret name for existing cert

Use Cases

  • Private Network Traffic: Route external services through Kubernetes
  • TLS Termination: Secure internal traffic with certificates
  • Service Abstraction: Hide complex external service details

Examples

Simple Service

externalServices:
  simple-service:
    enabled: true
    externalName: internal.service.com
    domain: "simple.example.com"

With Custom TLS

externalServices:
  secure-service:
    enabled: true
    externalName: secure.internal.com
    domain: "secure.example.com"
    ingress:
      tlsEnabled: true
      useExistingCert: "my-cert-secret"

Part of the Homelab Helm Charts collection.

Deploy external-services with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has external-services 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 chartexternal-services is pinned at v0.1.2 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