easyhaproxy
by byjg
Helm chartv2.0.11App 6.5.3MITVerified publisher
EasyHAProxy - A service discovery backed on HAProxy
About this chart
EasyHAProxy
EasyHAProxy is a simple and easy way to automate the creation of HAProxy configuration file based on Docker containers.
The Helm package makes it easy to deploy EasyHAProxy on Kubernetes.
More information about EasyHAProxy.
Install
helm repo add byjg https://opensource.byjg.com/helm
helm repo update byjg
helm upgrade --install --create-namespace -n easyhaproxy easyhaproxy byjg/easyhaproxy
Deployment Types
EasyHAProxy can be deployed in two ways:
- DaemonSet (default): When
service.create: false, EasyHAProxy is deployed as a DaemonSet with hostPort, and will only be scheduled on nodes with the masterNode label. - Deployment: When
service.create: true, EasyHAProxy is deployed as a Deployment with a Service (ClusterIP, NodePort or LoadBalancer), and thereplicaCountvalue determines the number of replicas (defaults to 1 if not specified).
Parameters
replicaCount: 1 # Only applies when service.create is true (defaults to 1 if not specified)
image:
repository: byjg/easy-haproxy
pullPolicy: Always # IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: ""
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
service:
create: false # If false, it will create a Daemonset with hostPort. The easiest.
type: ClusterIP # ClusterIP, NodePort or LoadBalancer
annotations: {}
binding:
ports:
http: 80
https: 443
stats: 1936
additionalPorts: []
easyhaproxy:
stats:
enabled: true
username: admin
password: password
refresh: "10"
customErrors: "true"
sslMode: loose
logLevel:
certbot: DEBUG
easyhaproxy: DEBUG
haproxy: DEBUG
certbot:
email: ""
# Persist ACME/Certbot certificates (/etc/easyhaproxy/certs/certbot)
persistence:
certbot:
enabled: false
existingClaim: ""
storageClass: ""
accessMode: ReadWriteOnce
size: 1Gi
# Master node configuration - only used when service.create is false (DaemonSet mode)
# When service.create is true (Deployment with ClusterIP/NodePort), this is ignored
masterNode:
label: easyhaproxy/node
values:
- master
Deploy easyhaproxy with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has easyhaproxy 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 charteasyhaproxy is pinned at v2.0.11 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