initial commit
All checks were successful
Build and Publish TechDocs (Helm Chart Resource) / build-and-publish-helm-chart (push) Successful in 1m12s

Change-Id: If67c32e979b6d03a135072c836ca54ee01c99e66
This commit is contained in:
Scaffolder
2026-04-15 16:23:13 +00:00
commit ea619ba456
179 changed files with 12011 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
controller:
kind: DaemonSet
service:
type: NodePort
http:
port: 8080
targetPort: 8080
nodePort: 30080
https:
port: 8443
targetPort: 8443
nodePort: 30443

View File

@@ -0,0 +1,2 @@
controller:
kind: DaemonSet

View File

@@ -0,0 +1,5 @@
controller:
kind: DaemonSet
extraArgs:
- --controller-name=gate.haproxy.org/hug
- --namespaces=default

View File

@@ -0,0 +1,7 @@
controller:
kind: DaemonSet
extraEnvs:
- name: TEST_STR1
value: foo
- name: TEST_STR2
value: baz

View File

@@ -0,0 +1,21 @@
## Test: DaemonSet with extra container and service ports, including host ports
controller:
kind: DaemonSet
containerPort:
http: 31080
https: 31443
stat: 31024
custom: 8080
daemonset:
useHostPort: true
hostPorts:
http: 80
https: 443
stat: 1024
custom: 8080
service:
extraPorts:
- name: custom
port: 8080
targetPort: 8080
protocol: TCP

View File

@@ -0,0 +1,8 @@
controller:
kind: DaemonSet
daemonset:
useHostPort: true
hostPorts:
http: 80
https: 443
stat: 1024

View File

@@ -0,0 +1,5 @@
controller:
kind: DaemonSet
service:
annotations:
service.beta.kubernetes.io/aws-load-balancer-internal: 0.0.0.0/0

View File

@@ -0,0 +1,7 @@
controller:
kind: DaemonSet
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
maxSurge: 1

View File

@@ -0,0 +1,11 @@
controller:
service:
type: NodePort
http:
port: 8080
targetPort: 8080
nodePort: 30080
https:
port: 8443
targetPort: 8443
nodePort: 30443

View File

@@ -0,0 +1 @@
#

View File

@@ -0,0 +1,4 @@
crdjob:
enabled: false
gwapijob:
enabled: false

View File

@@ -0,0 +1,4 @@
controller:
extraArgs:
- --controller-name=gate.haproxy.org/hug
- --namespaces=default

View File

@@ -0,0 +1,6 @@
controller:
extraEnvs:
- name: TEST_STR1
value: foo
- name: TEST_STR2
value: baz

View File

@@ -0,0 +1,14 @@
## Test: Deployment with extra container and service ports
controller:
kind: Deployment
containerPort:
http: 31080
https: 31443
stat: 31024
custom: 8080
service:
extraPorts:
- name: custom
port: 8080
targetPort: 8080
protocol: TCP

View File

@@ -0,0 +1,6 @@
controller:
autoscaling:
enabled: true
minReplicas: 1
maxReplicas: 5
targetCPUUtilizationPercentage: 80

View File

@@ -0,0 +1,8 @@
hugconf:
logging:
defaultLevel: Debug
categoryLevelList:
- category: "gate"
level: "Debug"
- category: "k8s"
level: "Info"

View File

@@ -0,0 +1,34 @@
controller:
keda:
enabled: true
minReplicas: 1
maxReplicas: 10
pollingInterval: 15
cooldownPeriod: 600
restoreToOriginalReplicaCount: true
scaledObject:
annotations: {}
fallback:
failureThreshold: 3
replicas: 5
horizontalPodAutoscalerConfig:
behavior:
scaleDown:
stabilizationWindowSeconds: 300
policies:
- type: Pods
value: 1
periodSeconds: 300
triggers:
- type: prometheus
metadata:
serverAddress: http://prometheus:9090
metricName: haproxy_process_idle_time_percent
threshold: '50'
query: avg(100-avg_over_time(haproxy_process_idle_time_percent{job="haproxy-unified-gateway"}[2m]))
# HPA should be ignored when KEDA is enabled
autoscaling:
enabled: true
minReplicas: 1
maxReplicas: 5
targetCPUUtilizationPercentage: 80

View File

@@ -0,0 +1,18 @@
controller:
keda:
enabled: true
minReplicas: 2
maxReplicas: 20
pollingInterval: 30
cooldownPeriod: 300
restoreToOriginalReplicaCount: false
scaledObject:
annotations:
test-annotation: "test-value"
triggers:
- type: prometheus
metadata:
serverAddress: http://prometheus:9090
metricName: haproxy_process_idle_time_percent
threshold: '50'
query: avg(100-avg_over_time(haproxy_process_idle_time_percent{job="haproxy-unified-gateway"}[2m]))

View File

@@ -0,0 +1,14 @@
## Test: Deployment with metricsAuth=none (plain HTTP controller metrics)
controller:
metricsAuth: none
serviceMonitor:
enabled: true
endpoints:
- port: stat
path: /metrics
scheme: http
interval: 30s
- port: metrics
path: /metrics
scheme: http
interval: 30s

View File

@@ -0,0 +1,5 @@
controller:
replicaCount: 2
podDisruptionBudget:
enabled: true
minAvailable: 1

View File

@@ -0,0 +1,10 @@
controller:
podMonitor:
enabled: true
extraLabels:
release: prometheus
endpoints:
- port: stat
path: /metrics
scheme: http
interval: 30s

View File

@@ -0,0 +1,18 @@
## Test: Deployment with ServiceMonitor (both stat and controller metrics endpoints)
controller:
serviceMonitor:
enabled: true
extraLabels:
release: prometheus
endpoints:
- port: stat
path: /metrics
scheme: http
interval: 30s
- port: metrics
path: /metrics
scheme: https
interval: 30s
tlsConfig:
insecureSkipVerify: true
bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token

View File

@@ -0,0 +1,6 @@
controller:
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
maxSurge: 1