Spaces:
Sleeping
Sleeping
Adrien
commited on
chore: add internal (#1828)
Browse filesSigned-off-by: Adrien <adrien@huggingface.co>
- chart/env/prod.yaml +15 -1
- chart/templates/ingress-internal.yaml +32 -0
- chart/values.yaml +7 -0
chart/env/prod.yaml
CHANGED
|
@@ -28,6 +28,20 @@ ingress:
|
|
| 28 |
alb.ingress.kubernetes.io/target-node-labels: "role-hub-utils=true"
|
| 29 |
kubernetes.io/ingress.class: "alb"
|
| 30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
envVars:
|
| 32 |
ADDRESS_HEADER: 'X-Forwarded-For'
|
| 33 |
ADMIN_CLI_LOGIN: "false"
|
|
@@ -545,7 +559,7 @@ envVars:
|
|
| 545 |
"max_new_tokens": 256
|
| 546 |
}
|
| 547 |
}
|
| 548 |
-
|
| 549 |
|
| 550 |
TEXT_EMBEDDING_MODELS: >
|
| 551 |
[{
|
|
|
|
| 28 |
alb.ingress.kubernetes.io/target-node-labels: "role-hub-utils=true"
|
| 29 |
kubernetes.io/ingress.class: "alb"
|
| 30 |
|
| 31 |
+
ingressInternal:
|
| 32 |
+
enabled: true
|
| 33 |
+
path: "/chat"
|
| 34 |
+
annotations:
|
| 35 |
+
alb.ingress.kubernetes.io/group.name: hub-prod-internal-public
|
| 36 |
+
alb.ingress.kubernetes.io/healthcheck-path: "/healthcheck"
|
| 37 |
+
alb.ingress.kubernetes.io/listen-ports: "[{\"HTTP\": 80}, {\"HTTPS\": 443}]"
|
| 38 |
+
alb.ingress.kubernetes.io/group.order: "60"
|
| 39 |
+
alb.ingress.kubernetes.io/load-balancer-name: hub-prod-internal-public
|
| 40 |
+
alb.ingress.kubernetes.io/target-group-attributes: deregistration_delay.timeout_seconds=30
|
| 41 |
+
alb.ingress.kubernetes.io/target-node-labels: role-hub-lb=true
|
| 42 |
+
alb.ingress.kubernetes.io/target-type: ip
|
| 43 |
+
kubernetes.io/ingress.class: "alb"
|
| 44 |
+
|
| 45 |
envVars:
|
| 46 |
ADDRESS_HEADER: 'X-Forwarded-For'
|
| 47 |
ADMIN_CLI_LOGIN: "false"
|
|
|
|
| 559 |
"max_new_tokens": 256
|
| 560 |
}
|
| 561 |
}
|
| 562 |
+
|
| 563 |
|
| 564 |
TEXT_EMBEDDING_MODELS: >
|
| 565 |
[{
|
chart/templates/ingress-internal.yaml
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{{- if $.Values.ingressInternal.enabled }}
|
| 2 |
+
apiVersion: networking.k8s.io/v1
|
| 3 |
+
kind: Ingress
|
| 4 |
+
metadata:
|
| 5 |
+
annotations: {{ toYaml .Values.ingressInternal.annotations | nindent 4 }}
|
| 6 |
+
labels: {{ include "labels.standard" . | nindent 4 }}
|
| 7 |
+
name: {{ include "name" . }}-internal
|
| 8 |
+
namespace: {{ .Release.Namespace }}
|
| 9 |
+
spec:
|
| 10 |
+
{{ if $.Values.ingressInternal.className }}
|
| 11 |
+
ingressClassName: {{ .Values.ingressInternal.className }}
|
| 12 |
+
{{ end }}
|
| 13 |
+
{{- with .Values.ingressInternal.tls }}
|
| 14 |
+
tls:
|
| 15 |
+
- hosts:
|
| 16 |
+
- {{ $.Values.domain | quote }}
|
| 17 |
+
{{- with .secretName }}
|
| 18 |
+
secretName: {{ . }}
|
| 19 |
+
{{- end }}
|
| 20 |
+
{{- end }}
|
| 21 |
+
rules:
|
| 22 |
+
- host: {{ .Values.domain }}
|
| 23 |
+
http:
|
| 24 |
+
paths:
|
| 25 |
+
- backend:
|
| 26 |
+
service:
|
| 27 |
+
name: {{ include "name" . }}
|
| 28 |
+
port:
|
| 29 |
+
name: http
|
| 30 |
+
path: {{ $.Values.ingressInternal.path | default "/" }}
|
| 31 |
+
pathType: Prefix
|
| 32 |
+
{{- end }}
|
chart/values.yaml
CHANGED
|
@@ -31,6 +31,13 @@ ingress:
|
|
| 31 |
tls: { }
|
| 32 |
# secretName: XXX
|
| 33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
resources:
|
| 35 |
requests:
|
| 36 |
cpu: 2
|
|
|
|
| 31 |
tls: { }
|
| 32 |
# secretName: XXX
|
| 33 |
|
| 34 |
+
ingressInternal:
|
| 35 |
+
enabled: false
|
| 36 |
+
path: "/"
|
| 37 |
+
annotations: { }
|
| 38 |
+
# className: "nginx"
|
| 39 |
+
tls: { }
|
| 40 |
+
|
| 41 |
resources:
|
| 42 |
requests:
|
| 43 |
cpu: 2
|