@@ -77,3 +77,114 @@ vault:
7777 token : " vault-token-placeholder"
7878 vault_token_renew_interval : " 24h"
7979 vault_token_renew_seconds : " 600"
80+
81+ # --- Proxy Configuration ---
82+ # Proxy is used to limit the number of requests per second
83+ # and to provide a single entry point for the Balius network
84+ proxy :
85+ namespace : balius
86+ role : balius-proxy
87+ replicas : 1
88+
89+ serviceAccountName : " balius"
90+
91+ image :
92+ repository : ghcr.io/demeter-run/ext-balius-proxy
93+ tag : " 86aa2dbfc2202fe4eeafd961064567255b33daf7"
94+ pullPolicy : IfNotPresent
95+
96+ resources :
97+ limits :
98+ cpu : " 1"
99+ memory : " 1Gi"
100+ requests :
101+ cpu : " 200m"
102+ memory : " 256Mi"
103+
104+ ports :
105+ metrics : 8080
106+ proxy : 9090
107+
108+ tolerations : []
109+
110+ proxyAddr : " 0.0.0.0:9090"
111+ prometheusAddr : " 0.0.0.0:8080"
112+ baliusPort : " 80"
113+ baliusDns : " balius-preview.balius.svc.cluster.local"
114+ defaultBaliusVersion : " v2"
115+
116+ podMonitor :
117+ enabled : false
118+ labels : {}
119+
120+ # Proxy Config
121+ tiers :
122+ - name : " 0"
123+ rates :
124+ - interval : " 1m"
125+ limitPerReplica : 1 # per second
126+ - interval : " 1d"
127+ limitPerReplica : 80000
128+ - name : " 1"
129+ rates :
130+ - interval : " 1m"
131+ limitPerReplica : 5
132+ - interval : " 1d"
133+ limitPerReplica : 400000
134+ - name : " 2"
135+ rates :
136+ - interval : " 1m"
137+ limitPerReplica : 40
138+ - interval : " 1d"
139+ limitPerReplica : 2000000
140+ - name : " 3"
141+ rates :
142+ - interval : " 1m"
143+ limitPerReplica : 80
144+ - interval : " 1d"
145+ limitPerReplica : 4000000
146+
147+ proxyCertificate :
148+ enabled : false
149+ secretName : balius-tls
150+ dnsNames :
151+ - " example.balius.example.com"
152+ - " *.example.balius.blinklabs.cloud"
153+ issuerKind : ClusterIssuer
154+ issuerName : letsencrypt-example-com
155+
156+ # Proxy service configuration LoadBalancer
157+ proxyService :
158+ enabled : false
159+ name : balius-proxy
160+ namespace : balius
161+ labels : {}
162+ # Google Cloud Load Balancer labels
163+ # cloud.google.com/load-balancer-type: Internal
164+ annotations : {}
165+ # Google Cloud Load Balancer annotations
166+ # cloud.google.com/l4-rbs: enabled
167+ # external-dns.alpha.kubernetes.io/hostname: proxy.balius.example.com
168+ spec :
169+ type : LoadBalancer
170+ ports :
171+ - name : proxy
172+ port : 443
173+ targetPort : 9090
174+ selector :
175+ role : balius-proxy
176+
177+ # Rely on external DNS to create the DNS records
178+ dnsEndpoint :
179+ enabled : false
180+ name : balius-cname-preview
181+ namespace : kube-system
182+ endpoints :
183+ - dnsName : my.balius.example.com
184+ recordType : CNAME
185+ targets :
186+ - proxy.balius.example.com
187+ providerSpecific : {}
188+ # Cloudflare specific annotation
189+ # - name: external-dns.alpha.kubernetes.io/cloudflare-proxied
190+ # value: "false"
0 commit comments