-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathvalues.yaml
More file actions
119 lines (114 loc) · 4.08 KB
/
values.yaml
File metadata and controls
119 lines (114 loc) · 4.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# ClickStack with AWS ALB Ingress
#
# This example deploys ClickStack with an AWS Application Load Balancer
# instead of the chart's built-in nginx Ingress. It uses additionalManifests
# to define a fully custom Ingress resource with ALB-specific annotations.
#
# Prerequisites:
# - AWS Load Balancer Controller installed in the cluster
# https://kubernetes-sigs.github.io/aws-load-balancer-controller/
# - ACM certificate provisioned for your domain
# - Subnets tagged for ALB auto-discovery (or specify them explicitly)
#
# Usage:
# helm install my-clickstack clickstack/clickstack -f values.yaml
# # From repo root:
# # helm install my-clickstack clickstack/clickstack -f examples/alb-ingress/values.yaml
#
# Customize the values below for your environment:
# - Replace certificate-arn with your ACM certificate ARN
# - Replace clickstack.example.com with your domain
# - Adjust ALB annotations as needed (scheme, target-type, etc.)
hyperdx:
ingress:
enabled: false # disable the built-in nginx Ingress
deployment:
replicas: 2
resources:
requests:
cpu: 500m
memory: 512Mi
limits:
cpu: "2"
memory: 2Gi
additionalManifests:
# -- ALB Ingress for the HyperDX app (public-facing) --
- apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: '{{ include "clickstack.fullname" . }}-alb'
annotations:
alb.ingress.kubernetes.io/scheme: internet-facing
alb.ingress.kubernetes.io/target-type: ip
alb.ingress.kubernetes.io/certificate-arn: "arn:aws:acm:us-east-1:123456789:certificate/your-cert-id"
alb.ingress.kubernetes.io/listen-ports: '[{"HTTPS":443}]'
alb.ingress.kubernetes.io/ssl-redirect: "443"
alb.ingress.kubernetes.io/group.name: clickstack
alb.ingress.kubernetes.io/healthcheck-path: /api/health
alb.ingress.kubernetes.io/healthcheck-interval-seconds: "15"
alb.ingress.kubernetes.io/healthcheck-timeout-seconds: "5"
alb.ingress.kubernetes.io/healthy-threshold-count: "2"
alb.ingress.kubernetes.io/unhealthy-threshold-count: "3"
alb.ingress.kubernetes.io/target-group-attributes: stickiness.enabled=true,stickiness.lb_cookie.duration_seconds=3600
spec:
ingressClassName: alb
rules:
- host: clickstack.example.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: '{{ include "clickstack.fullname" . }}-app'
port:
name: app
# -- ALB Ingress for the OTEL collector (internal) --
- apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: '{{ include "clickstack.fullname" . }}-alb-otel'
annotations:
alb.ingress.kubernetes.io/scheme: internal
alb.ingress.kubernetes.io/target-type: ip
alb.ingress.kubernetes.io/group.name: clickstack-otel
alb.ingress.kubernetes.io/healthcheck-path: /
alb.ingress.kubernetes.io/healthcheck-port: "13133"
spec:
ingressClassName: alb
rules:
- host: otel.internal.example.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: '{{ include "clickstack.otel.fullname" . }}'
port:
number: 4318
# -- HorizontalPodAutoscaler for the HyperDX app --
- apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: '{{ include "clickstack.fullname" . }}-hpa'
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: '{{ include "clickstack.fullname" . }}-app'
minReplicas: 2
maxReplicas: 10
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 75
- type: Resource
resource:
name: memory
target:
type: Utilization
averageUtilization: 80