Skip to content

Commit a11389d

Browse files
add automatic scaledown
1 parent 322dee8 commit a11389d

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

charts/cf-vcluster/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: cf-vcluster
33
description: Umbrella chart over vCluster adjusted for Codefresh use cases - mainly in Crossplane compositions
44
type: application
5-
version: 0.28.0-3
5+
version: 0.28.0-4
66
appVersion: "0.28.0"
77
dependencies:
88
- name: vcluster

charts/cf-vcluster/README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# cf-vcluster
22

3-
![Version: 0.28.0-3](https://img.shields.io/badge/Version-0.28.0--3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.28.0](https://img.shields.io/badge/AppVersion-0.28.0-informational?style=flat-square)
3+
![Version: 0.28.0-4](https://img.shields.io/badge/Version-0.28.0--4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.28.0](https://img.shields.io/badge/AppVersion-0.28.0-informational?style=flat-square)
44

55
Umbrella chart over vCluster adjusted for Codefresh use cases - mainly in Crossplane compositions
66

@@ -20,21 +20,26 @@ Umbrella chart over vCluster adjusted for Codefresh use cases - mainly in Crossp
2020

2121
| Key | Type | Default | Description |
2222
|-----|------|---------|-------------|
23+
| automaticScaleDown.enabled | bool | `false` | |
24+
| automaticScaleDown.httpScaler | object | `{"host":"keda-add-ons-http-external-scaler.keda","port":9090}` | Scaler address on vCluster host |
25+
| automaticScaleDown.initialCooldownPeriod | int | `120` | |
26+
| automaticScaleDown.interceptor | object | `{"host":"keda-add-ons-http-interceptor-proxy.keda","port":8443}` | Interceptor address on vCluster host |
27+
| automaticScaleDown.periodSeconds | int | `43200` | How many seconds of no requests to vcluster until it is scaled down to zero. Defaults to 12 hours (43200s) |
2328
| global.ingress.internal.annotations."nginx.ingress.kubernetes.io/backend-protocol" | string | `"HTTPS"` | |
2429
| global.ingress.internal.annotations."nginx.ingress.kubernetes.io/ssl-passthrough" | string | `"true"` | |
2530
| global.ingress.internal.annotations."nginx.ingress.kubernetes.io/ssl-redirect" | string | `"true"` | |
2631
| global.ingress.internal.backendServiceOverride | object | `{}` | Possibility to override backend service name for ingress. If not set default vcluster backend service will be used |
2732
| global.ingress.internal.enabled | bool | `false` | |
2833
| global.ingress.internal.host.domain | string | `"corp.local"` | |
29-
| global.ingress.internal.host.name | string | `"{{ .Release.Name }}"` | |
34+
| global.ingress.internal.host.name | string | `"{{ .Release.Namespace }}-vcluster"` | |
3035
| global.ingress.internal.ingressClassName | string | `"nginx-internal"` | |
3136
| global.ingress.public.annotations."nginx.ingress.kubernetes.io/backend-protocol" | string | `"HTTPS"` | |
3237
| global.ingress.public.annotations."nginx.ingress.kubernetes.io/ssl-passthrough" | string | `"true"` | |
3338
| global.ingress.public.annotations."nginx.ingress.kubernetes.io/ssl-redirect" | string | `"true"` | |
3439
| global.ingress.public.backendServiceOverride | object | `{}` | Possibility to override backend service name for ingress. If not set default vcluster backend service will be used |
3540
| global.ingress.public.enabled | bool | `false` | |
3641
| global.ingress.public.host.domain | string | `"example.com"` | |
37-
| global.ingress.public.host.name | string | `"{{ .Release.Name }}"` | |
42+
| global.ingress.public.host.name | string | `"{{ .Release.Namespace }}-vcluster"` | |
3843
| global.ingress.public.ingressClassName | string | `"nginx-public"` | |
3944
| vcluster.controlPlane.distro.k8s.apiServer.extraArgs[0] | string | `"--oidc-issuer-url=https://dexidp.shared-services.cf-infra.com"` | |
4045
| vcluster.controlPlane.distro.k8s.apiServer.extraArgs[1] | string | `"--oidc-client-id=vcluster-login"` | |

charts/cf-vcluster/values.test.rnd-sandbox.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ global:
55
enabled: true
66
className: nginx-internal
77
host:
8-
domain: rnd-sandbox.cf-infra.com
8+
domain: vclusters.rnd-sandbox.cf-infra.com
99

1010
automaticScaleDown:
1111
enabled: true

charts/cf-vcluster/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,11 @@ automaticScaleDown:
146146
initialCooldownPeriod: 120
147147
# -- How many seconds of no requests to vcluster until it is scaled down to zero. Defaults to 12 hours (43200s)
148148
periodSeconds: 43200
149+
# -- Interceptor address on vCluster host
149150
interceptor:
150151
host: "keda-add-ons-http-interceptor-proxy.keda"
151152
port: 8443
153+
# -- Scaler address on vCluster host
152154
httpScaler:
153155
host: keda-add-ons-http-external-scaler.keda
154156
port: 9090

0 commit comments

Comments
 (0)