host-ip-service
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
EndpointsandServiceresource 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
| Key | Type | Description | Default |
|---|---|---|---|
namespace | string | Namespace to deploy resources into | default |
endpoint.name | string | Name of the Endpoint and Service | docker-host |
endpoint.ip | string | IP address to route traffic to | 172.17.0.1 |
endpoint.ports[]
| Key | Type | Description |
|---|---|---|
name | string | Port name |
port | int | Port number |
ingress.enabled | bool | Whether to expose via Ingress |
ingress.host | string | Hostname for Ingress |
ingress.path | string | Path for Ingress |
ingress.annotations | object | Extra annotations for this Ingress |
ingress
| Key | Type | Description |
|---|---|---|
annotations | object | Global ingress annotations |
tls | list | TLS 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the charthost-ip-service is pinned at v0.2.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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