This is an automated email from the ASF dual-hosted git repository.
tiagobento pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-tools.git
The following commit(s) were added to refs/heads/main by this push:
new 3fc44bf705f kie-issues#936: KIE Sandbox Helm chart - Kubernetes
installation improvements (#2159)
3fc44bf705f is described below
commit 3fc44bf705f16f2d8c26dc71aaaff23c378e168f
Author: Rodrigo Antunes <[email protected]>
AuthorDate: Thu Feb 15 14:42:00 2024 -0300
kie-issues#936: KIE Sandbox Helm chart - Kubernetes installation
improvements (#2159)
---
packages/kie-sandbox-helm-chart/README.md | 111 +++++++++++++--------
packages/kie-sandbox-helm-chart/src/Chart.lock | 2 +-
packages/kie-sandbox-helm-chart/src/README.md | 80 +++++++--------
.../src/charts/cors_proxy/README.md | 26 ++---
.../charts/cors_proxy/templates/ingress.yaml.helm | 4 +-
.../src/charts/cors_proxy/values.yaml | 6 +-
.../src/charts/extended_services/README.md | 26 ++---
.../extended_services/templates/ingress.yaml.helm | 4 +-
.../src/charts/extended_services/values.yaml | 6 +-
.../src/charts/kie_sandbox/README.md | 28 +++---
.../charts/kie_sandbox/templates/ingress.yaml.helm | 4 +-
.../src/charts/kie_sandbox/values.yaml | 10 +-
.../kie-sandbox-helm-chart/src/templates/NOTES.txt | 20 ++--
.../src/values-kubernetes.yaml | 25 +++++
.../src/values-minikube-nginx.yaml | 33 ++----
packages/kie-sandbox-helm-chart/src/values.yaml | 8 +-
16 files changed, 224 insertions(+), 169 deletions(-)
diff --git a/packages/kie-sandbox-helm-chart/README.md
b/packages/kie-sandbox-helm-chart/README.md
index 4767bb3df2b..eee733c702e 100644
--- a/packages/kie-sandbox-helm-chart/README.md
+++ b/packages/kie-sandbox-helm-chart/README.md
@@ -81,10 +81,34 @@ Run the following commands:
echo "$MINIKUBE_IP cors-proxy.local" | sudo tee -a /etc/hosts
echo "$MINIKUBE_IP extended-services.local" | sudo tee -a /etc/hosts
echo "$MINIKUBE_IP kie-sandbox.local" | sudo tee -a /etc/hosts
+```
+
+### Kubernetes install
+
+To install the chart with the release name `kie-sandbox`:
+
+```console
+$ helm install kie-sandbox ./src --values ./src/values-kubernetes.yaml --set
global.kubernetesClusterDomain="<YOUR_KUBERNETES_CLUSTER_DOMAIN>" --set
global.kubernetesIngressClass="<YOUR_KUBERNETES_INGRESS_CLASS>"
+```
+
+Following message should be displayed on your console.
+```console
+NAME: kie-sandbox
+LAST DEPLOYED: Wed Nov 29 17:09:04 2023
+NAMESPACE: default
+STATUS: deployed
+REVISION: 1
+NOTES:
+1. CORS Proxy available at:
+ http://cors-proxy.<YOUR_KUBERNETES_CLUSTER_DOMAIN>
+2. Extended Services available at:
+ http://extended-services.<YOUR_KUBERNETES_CLUSTER_DOMAIN>
+3. KIE Sandbox available at:
+ http://kie-sandbox.<YOUR_KUBERNETES_CLUSTER_DOMAIN>
```
-Run above commands to add the custom hostnames to you hosts file. After this,
KIE Sandbox should be accessible via http://kie-sandbox.local
+No need to run any commands. KIE Sandbox should be accessible via
https://kie-sandbox.<YOUR_KUBERNETES_CLUSTER_DOMAIN>
### OpenShift install
@@ -138,6 +162,13 @@ $ helm pull oci://quay.io/kie-tools/kie-sandbox-helm-chart
--version=0.0.0 --unt
$ helm install kie-sandbox ./kie-sandbox-helm-chart --values
./kie-sandbox-helm-chart/values-minikube-nginx.yaml
```
+### Kubernetes install
+
+```console
+$ helm pull oci://quay.io/kie-tools/kie-sandbox-helm-chart --version=0.0.0
--untar
+$ helm install kie-sandbox ./kie-sandbox-helm-chart --values
./kie-sandbox-helm-chart/values-kubernetes.yaml --set
global.kubernetesClusterDomain="<YOUR_KUBERNETES_CLUSTER_DOMAIN>" --set
global.kubernetesIngressClass="<YOUR_KUBERNETES_INGRESS_CLASS>"
+```
+
### OpenShift install
```console
@@ -184,44 +215,46 @@ $ helm-docs --document-dependency-values=true
--chart-search-root=.
<!-- CHART_VALUES_README -->
-| Key | Type | Default
| Description
|
-| ---------------------------------- | ------ |
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------------------------------------------------------
|
-| global.ingressSource | string | `""`
| Which ingress
source is being used (none/"minikube"/"openshift") Obs.: For NOTES generation
only |
-| global.openshiftRouteDomain | string | `""`
| If using
OpenShift Routes, set the Route domain
|
-| fullnameOverride | string | `""`
| Overrides
charts full name
|
-| nameOverride | string | `""`
| Overrides
charts name
|
-| cors_proxy.autoscaling | object |
`{"enabled":false,"maxReplicas":100,"minReplicas":1,"targetCPUUtilizationPercentage":80}`
| CORS Proxy HorizontalPodAutoscaler configuration
(https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/)
|
-| cors_proxy.fullnameOverride | string | `""`
| Overrides
charts full name
|
-| cors_proxy.image | object |
`{"account":"kie-tools","name":"cors-proxy-image","pullPolicy":"IfNotPresent","registry":"quay.io","tag":"latest"}`
| Image source
configuration for the CORS Proxy image
|
-| cors_proxy.imagePullSecrets | list | `[]`
| Pull secrets
used when pulling CORS Proxy image
|
-| cors_proxy.ingress | object |
`{"annotations":{},"className":"","enabled":false,"hosts":[{"host":"chart-example.local","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}],"tls":[]}`
| CORS Proxy Ingress configuration
(https://kubernetes.io/docs/concepts/services-networking/ingress/)
|
-| cors_proxy.name | string | `"cors-proxy"`
| The CORS Proxy
application name
|
-| cors_proxy.nameOverride | string | `""`
| Overrides
charts name
|
-| cors_proxy.openshiftRoute | object |
`{"annotations":{},"enabled":false,"host":"cors-proxy.{{
.Values.global.openshiftRouteDomain
}}","tls":{"insecureEdgeTerminationPolicy":"None","termination":"edge"}}`
| CORS Proxy OpenShift Route configuration
(https://docs.openshift.com/container-platform/4.14/networking/routes/route-configuration.html)
|
-| cors_proxy.service | object |
`{"nodePort":"","port":8080,"type":"ClusterIP"}`
| CORS Proxy Service configuration
(https://kubernetes.io/docs/concepts/services-networking/service/)
|
-| cors_proxy.serviceAccount | object |
`{"annotations":{},"create":true,"name":""}`
| CORS Proxy ServiceAccount configuration
(https://kubernetes.io/docs/concepts/security/service-accounts/)
|
-| extended_services.autoscaling | object |
`{"enabled":false,"maxReplicas":100,"minReplicas":1,"targetCPUUtilizationPercentage":80}`
| Extended Services HorizontalPodAutoscaler configuration
(https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/)
|
-| extended_services.fullnameOverride | string | `""`
| Overrides
charts full name
|
-| extended_services.image | object |
`{"account":"kie-tools","name":"kie-sandbox-extended-services-image","pullPolicy":"IfNotPresent","registry":"quay.io","tag":"latest"}`
| Image source configuration for the
Extended Services image
|
-| extended_services.imagePullSecrets | list | `[]`
| Pull secrets
used when pulling Extended Services image
|
-| extended_services.ingress | object |
`{"annotations":{},"className":"","enabled":false,"hosts":[{"host":"chart-example.local","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}],"tls":[]}`
| Extended Services Ingress configuration
(https://kubernetes.io/docs/concepts/services-networking/ingress/)
|
-| extended_services.name | string | `"extended-services"`
| The Extended
Services application name
|
-| extended_services.nameOverride | string | `""`
| Overrides
charts name
|
-| extended_services.openshiftRoute | object |
`{"annotations":{},"enabled":false,"host":"extended-services.{{
.Values.global.openshiftRouteDomain
}}","tls":{"insecureEdgeTerminationPolicy":"None","termination":"edge"}}` |
Extended Services OpenShift Route configuration
(https://docs.openshift.com/container-platform/4.14/networking/routes/route-configuration.html)
|
-| extended_services.service | object |
`{"nodePort":"","port":21345,"type":"ClusterIP"}`
| Extended Services Service configuration
(https://kubernetes.io/docs/concepts/services-networking/service/)
|
-| extended_services.serviceAccount | object |
`{"annotations":{},"create":true,"name":""}`
| Extended Services ServiceAccount configuration
(https://kubernetes.io/docs/concepts/security/service-accounts/)
|
-| kie_sandbox.autoscaling | object |
`{"enabled":false,"maxReplicas":100,"minReplicas":1,"targetCPUUtilizationPercentage":80}`
| KIE Sandbox HorizontalPodAutoscaler configuration
(https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/)
|
-| kie_sandbox.env | list |
`[{"name":"KIE_SANDBOX_EXTENDED_SERVICES_URL","value":"http://127.0.0.1:21345\""},{"name":"KIE_SANDBOX_CORS_PROXY_URL","value":"http://127.0.0.1:8081"}]`
| Env variables for KIE Sandbox deployment
|
-| kie_sandbox.fullnameOverride | string | `""`
| Overrides
charts full name
|
-| kie_sandbox.image | object |
`{"account":"kie-tools","name":"kie-sandbox-image","pullPolicy":"IfNotPresent","registry":"quay.io","tag":"latest"}`
| Image source
configuration for the KIE Sandbox image
|
-| kie_sandbox.imagePullSecrets | list | `[]`
| Pull secrets
used when pulling KIE Sandbox image
|
-| kie_sandbox.ingress | object |
`{"annotations":{},"className":"","enabled":false,"hosts":[{"host":"kie-sandbox.domain.com","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}],"tls":[]}`
| KIE Sandbox Ingress configuration
(https://kubernetes.io/docs/concepts/services-networking/ingress/)
|
-| kie_sandbox.name | string | `"kie-sandbox"`
| The KIE
Sandbox application name
|
-| kie_sandbox.nameOverride | string | `""`
| Overrides
charts name
|
-| kie_sandbox.openshiftRoute | object |
`{"annotations":{},"enabled":false,"host":"kie-sandbox.{{
.Values.global.openshiftRouteDomain
}}","tls":{"insecureEdgeTerminationPolicy":"None","termination":"edge"}}`
| KIE Sandbox OpenShift Route configuration
(https://docs.openshift.com/container-platform/4.14/networking/routes/route-configuration.html)
|
-| kie_sandbox.service | object |
`{"nodePort":"","port":8080,"type":"ClusterIP"}`
| KIE Sandbox Service configuration
(https://kubernetes.io/docs/concepts/services-networking/service/)
|
-| kie_sandbox.serviceAccount | object |
`{"annotations":{},"create":true,"name":""}`
| KIE Sandbox ServiceAccount configuration
(https://kubernetes.io/docs/concepts/security/service-accounts/)
|
+| Key | Type | Default
| Description
|
+| ---------------------------------- | ------ |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------------------------------------------------------
|
+| global.ingressSource | string | `""`
| Which ingress source
is being used (none/"minikube"/"kubernetes"/"openshift") Obs.: For NOTES
generation only |
+| global.kubernetesClusterDomain | string | `""`
| If using Minikube or
Kubernetes, set the cluster domain
|
+| global.kubernetesIngressClass | string | `""`
| If using Minikube or
Kubernetes, set the Ingress class (i.e: nginx)
|
+| global.openshiftRouteDomain | string | `""`
| If using OpenShift
Routes, set the Route domain
|
+| fullnameOverride | string | `""`
| Overrides charts full
name
|
+| nameOverride | string | `""`
| Overrides charts name
|
+| cors_proxy.autoscaling | object |
`{"enabled":false,"maxReplicas":100,"minReplicas":1,"targetCPUUtilizationPercentage":80}`
|
CORS Proxy HorizontalPodAutoscaler configuration
(https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/)
|
+| cors_proxy.fullnameOverride | string | `""`
| Overrides charts full
name
|
+| cors_proxy.image | object |
`{"account":"kie-tools","name":"cors-proxy-image","pullPolicy":"IfNotPresent","registry":"quay.io","tag":"latest"}`
| Image source
configuration for the CORS Proxy image
|
+| cors_proxy.imagePullSecrets | list | `[]`
| Pull secrets used
when pulling CORS Proxy image
|
+| cors_proxy.ingress | object |
`{"annotations":{},"className":"{{ .Values.global.kubernetesIngressClass
}}","enabled":false,"hosts":[{"host":"cors-proxy.{{
.Values.global.kubernetesClusterDomain
}}","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}],"tls":[]}`
| CORS Proxy Ingress configuration
(https://kubernetes.io/docs/concepts/services-networking/ingress/)
|
+| cors_proxy.name | string | `"cors-proxy"`
| The CORS Proxy
application name
|
+| cors_proxy.nameOverride | string | `""`
| Overrides charts name
|
+| cors_proxy.openshiftRoute | object |
`{"annotations":{},"enabled":false,"host":"cors-proxy.{{
.Values.global.openshiftRouteDomain
}}","tls":{"insecureEdgeTerminationPolicy":"None","termination":"edge"}}`
|
CORS Proxy OpenShift Route configuration
(https://docs.openshift.com/container-platform/4.14/networking/routes/route-configuration.html)
|
+| cors_proxy.service | object |
`{"nodePort":"","port":8080,"type":"ClusterIP"}`
| CORS Proxy Service configuration
(https://kubernetes.io/docs/concepts/services-networking/service/)
|
+| cors_proxy.serviceAccount | object |
`{"annotations":{},"create":true,"name":""}`
| CORS Proxy ServiceAccount configuration
(https://kubernetes.io/docs/concepts/security/service-accounts/)
|
+| extended_services.autoscaling | object |
`{"enabled":false,"maxReplicas":100,"minReplicas":1,"targetCPUUtilizationPercentage":80}`
|
Extended Services HorizontalPodAutoscaler configuration
(https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/)
|
+| extended_services.fullnameOverride | string | `""`
| Overrides charts full
name
|
+| extended_services.image | object |
`{"account":"kie-tools","name":"kie-sandbox-extended-services-image","pullPolicy":"IfNotPresent","registry":"quay.io","tag":"latest"}`
| Image source configuration for the Extended
Services image
|
+| extended_services.imagePullSecrets | list | `[]`
| Pull secrets used
when pulling Extended Services image
|
+| extended_services.ingress | object |
`{"annotations":{},"className":"{{ .Values.global.kubernetesIngressClass
}}","enabled":false,"hosts":[{"host":"extended-services.{{
.Values.global.kubernetesClusterDomain
}}","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}],"tls":[]}` |
Extended Services Ingress configuration
(https://kubernetes.io/docs/concepts/services-networking/ingress/)
|
+| extended_services.name | string | `"extended-services"`
| The Extended Services
application name
|
+| extended_services.nameOverride | string | `""`
| Overrides charts name
|
+| extended_services.openshiftRoute | object |
`{"annotations":{},"enabled":false,"host":"extended-services.{{
.Values.global.openshiftRouteDomain
}}","tls":{"insecureEdgeTerminationPolicy":"None","termination":"edge"}}`
| Extended
Services OpenShift Route configuration
(https://docs.openshift.com/container-platform/4.14/networking/routes/route-configuration.html)
|
+| extended_services.service | object |
`{"nodePort":"","port":21345,"type":"ClusterIP"}`
| Extended Services Service configuration
(https://kubernetes.io/docs/concepts/services-networking/service/)
|
+| extended_services.serviceAccount | object |
`{"annotations":{},"create":true,"name":""}`
| Extended Services ServiceAccount configuration
(https://kubernetes.io/docs/concepts/security/service-accounts/)
|
+| kie_sandbox.autoscaling | object |
`{"enabled":false,"maxReplicas":100,"minReplicas":1,"targetCPUUtilizationPercentage":80}`
|
KIE Sandbox HorizontalPodAutoscaler configuration
(https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/)
|
+| kie_sandbox.env | list |
`[{"name":"KIE_SANDBOX_EXTENDED_SERVICES_URL","value":"http://127.0.0.1:21345"},{"name":"KIE_SANDBOX_CORS_PROXY_URL","value":"http://127.0.0.1:8081"}]`
| Env variables for KIE Sandbox deployment
|
+| kie_sandbox.fullnameOverride | string | `""`
| Overrides charts full
name
|
+| kie_sandbox.image | object |
`{"account":"kie-tools","name":"kie-sandbox-image","pullPolicy":"IfNotPresent","registry":"quay.io","tag":"latest"}`
| Image source configuration
for the KIE Sandbox image
|
+| kie_sandbox.imagePullSecrets | list | `[]`
| Pull secrets used
when pulling KIE Sandbox image
|
+| kie_sandbox.ingress | object |
`{"annotations":{},"className":"{{ .Values.global.kubernetesIngressClass
}}","enabled":false,"hosts":[{"host":"kie-sandbox.{{
.Values.global.kubernetesClusterDomain
}}","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}],"tls":[]}`
| KIE Sandbox Ingress configuration
(https://kubernetes.io/docs/concepts/services-networking/ingress/)
|
+| kie_sandbox.name | string | `"kie-sandbox"`
| The KIE Sandbox
application name
|
+| kie_sandbox.nameOverride | string | `""`
| Overrides charts name
|
+| kie_sandbox.openshiftRoute | object |
`{"annotations":{},"enabled":false,"host":"kie-sandbox.{{
.Values.global.openshiftRouteDomain
}}","tls":{"insecureEdgeTerminationPolicy":"None","termination":"edge"}}`
| KIE
Sandbox OpenShift Route configuration
(https://docs.openshift.com/container-platform/4.14/networking/routes/route-configuration.html)
|
+| kie_sandbox.service | object |
`{"nodePort":"","port":8080,"type":"ClusterIP"}`
| KIE Sandbox Service configuration
(https://kubernetes.io/docs/concepts/services-networking/service/)
|
+| kie_sandbox.serviceAccount | object |
`{"annotations":{},"create":true,"name":""}`
| KIE Sandbox ServiceAccount configuration
(https://kubernetes.io/docs/concepts/security/service-accounts/)
|
---
-Autogenerated from chart metadata using [helm-docs
v1.11.3](https://github.com/norwoodj/helm-docs/releases/v1.11.3)
+Autogenerated from chart metadata using [helm-docs
v1.12.0](https://github.com/norwoodj/helm-docs/releases/v1.12.0)
diff --git a/packages/kie-sandbox-helm-chart/src/Chart.lock
b/packages/kie-sandbox-helm-chart/src/Chart.lock
index eaea96d0bc6..698051cd11a 100644
--- a/packages/kie-sandbox-helm-chart/src/Chart.lock
+++ b/packages/kie-sandbox-helm-chart/src/Chart.lock
@@ -9,4 +9,4 @@ dependencies:
repository: ""
version: 0.0.0
digest: sha256:ee1b087ee299c43fb848d512e5b4c97f914dc2f6d3bd45294f64b7d06006a84f
-generated: "2024-01-02T16:33:11.063426-03:00"
+generated: "2024-02-14T10:04:22.532439-03:00"
diff --git a/packages/kie-sandbox-helm-chart/src/README.md
b/packages/kie-sandbox-helm-chart/src/README.md
index 173fa85ec4c..37441439a25 100644
--- a/packages/kie-sandbox-helm-chart/src/README.md
+++ b/packages/kie-sandbox-helm-chart/src/README.md
@@ -1,4 +1,4 @@
-# kie_sandbox_helm_chart
+# kie-sandbox-helm-chart



@@ -14,44 +14,46 @@ A Helm chart to deploy KIE Sandbox and related services on
Kubernetes
## Values
-| Key | Type | Default
| Description
|
-| ---------------------------------- | ------ |
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------------------------------------------------------
|
-| global.ingressSource | string | `""`
| Which ingress
source is being used (none/"minikube"/"openshift") Obs.: For NOTES generation
only |
-| global.openshiftRouteDomain | string | `""`
| If using
OpenShift Routes, set the Route domain
|
-| fullnameOverride | string | `""`
| Overrides
charts full name
|
-| nameOverride | string | `""`
| Overrides
charts name
|
-| cors_proxy.autoscaling | object |
`{"enabled":false,"maxReplicas":100,"minReplicas":1,"targetCPUUtilizationPercentage":80}`
| CORS Proxy HorizontalPodAutoscaler configuration
(https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/)
|
-| cors_proxy.fullnameOverride | string | `""`
| Overrides
charts full name
|
-| cors_proxy.image | object |
`{"account":"kie-tools","name":"cors-proxy-image","pullPolicy":"IfNotPresent","registry":"quay.io","tag":"latest"}`
| Image source
configuration for the CORS Proxy image
|
-| cors_proxy.imagePullSecrets | list | `[]`
| Pull secrets
used when pulling CORS Proxy image
|
-| cors_proxy.ingress | object |
`{"annotations":{},"className":"","enabled":false,"hosts":[{"host":"chart-example.local","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}],"tls":[]}`
| CORS Proxy Ingress configuration
(https://kubernetes.io/docs/concepts/services-networking/ingress/)
|
-| cors_proxy.name | string | `"cors-proxy"`
| The CORS Proxy
application name
|
-| cors_proxy.nameOverride | string | `""`
| Overrides
charts name
|
-| cors_proxy.openshiftRoute | object |
`{"annotations":{},"enabled":false,"host":"cors-proxy.{{
.Values.global.openshiftRouteDomain
}}","tls":{"insecureEdgeTerminationPolicy":"None","termination":"edge"}}`
| CORS Proxy OpenShift Route configuration
(https://docs.openshift.com/container-platform/4.14/networking/routes/route-configuration.html)
|
-| cors_proxy.service | object |
`{"nodePort":"","port":8080,"type":"ClusterIP"}`
| CORS Proxy Service configuration
(https://kubernetes.io/docs/concepts/services-networking/service/)
|
-| cors_proxy.serviceAccount | object |
`{"annotations":{},"create":true,"name":""}`
| CORS Proxy ServiceAccount configuration
(https://kubernetes.io/docs/concepts/security/service-accounts/)
|
-| extended_services.autoscaling | object |
`{"enabled":false,"maxReplicas":100,"minReplicas":1,"targetCPUUtilizationPercentage":80}`
| Extended Services HorizontalPodAutoscaler configuration
(https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/)
|
-| extended_services.fullnameOverride | string | `""`
| Overrides
charts full name
|
-| extended_services.image | object |
`{"account":"kie-tools","name":"kie-sandbox-extended-services-image","pullPolicy":"IfNotPresent","registry":"quay.io","tag":"latest"}`
| Image source configuration for the
Extended Services image
|
-| extended_services.imagePullSecrets | list | `[]`
| Pull secrets
used when pulling Extended Services image
|
-| extended_services.ingress | object |
`{"annotations":{},"className":"","enabled":false,"hosts":[{"host":"chart-example.local","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}],"tls":[]}`
| Extended Services Ingress configuration
(https://kubernetes.io/docs/concepts/services-networking/ingress/)
|
-| extended_services.name | string | `"extended-services"`
| The Extended
Services application name
|
-| extended_services.nameOverride | string | `""`
| Overrides
charts name
|
-| extended_services.openshiftRoute | object |
`{"annotations":{},"enabled":false,"host":"extended-services.{{
.Values.global.openshiftRouteDomain
}}","tls":{"insecureEdgeTerminationPolicy":"None","termination":"edge"}}` |
Extended Services OpenShift Route configuration
(https://docs.openshift.com/container-platform/4.14/networking/routes/route-configuration.html)
|
-| extended_services.service | object |
`{"nodePort":"","port":21345,"type":"ClusterIP"}`
| Extended Services Service configuration
(https://kubernetes.io/docs/concepts/services-networking/service/)
|
-| extended_services.serviceAccount | object |
`{"annotations":{},"create":true,"name":""}`
| Extended Services ServiceAccount configuration
(https://kubernetes.io/docs/concepts/security/service-accounts/)
|
-| kie_sandbox.autoscaling | object |
`{"enabled":false,"maxReplicas":100,"minReplicas":1,"targetCPUUtilizationPercentage":80}`
| KIE Sandbox HorizontalPodAutoscaler configuration
(https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/)
|
-| kie_sandbox.env | list |
`[{"name":"KIE_SANDBOX_EXTENDED_SERVICES_URL","value":"http://127.0.0.1:21345\""},{"name":"KIE_SANDBOX_CORS_PROXY_URL","value":"http://127.0.0.1:8081"}]`
| Env variables for KIE Sandbox deployment
|
-| kie_sandbox.fullnameOverride | string | `""`
| Overrides
charts full name
|
-| kie_sandbox.image | object |
`{"account":"kie-tools","name":"kie-sandbox-image","pullPolicy":"IfNotPresent","registry":"quay.io","tag":"latest"}`
| Image source
configuration for the KIE Sandbox image
|
-| kie_sandbox.imagePullSecrets | list | `[]`
| Pull secrets
used when pulling KIE Sandbox image
|
-| kie_sandbox.ingress | object |
`{"annotations":{},"className":"","enabled":false,"hosts":[{"host":"kie-sandbox.domain.com","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}],"tls":[]}`
| KIE Sandbox Ingress configuration
(https://kubernetes.io/docs/concepts/services-networking/ingress/)
|
-| kie_sandbox.name | string | `"kie-sandbox"`
| The KIE
Sandbox application name
|
-| kie_sandbox.nameOverride | string | `""`
| Overrides
charts name
|
-| kie_sandbox.openshiftRoute | object |
`{"annotations":{},"enabled":false,"host":"kie-sandbox.{{
.Values.global.openshiftRouteDomain
}}","tls":{"insecureEdgeTerminationPolicy":"None","termination":"edge"}}`
| KIE Sandbox OpenShift Route configuration
(https://docs.openshift.com/container-platform/4.14/networking/routes/route-configuration.html)
|
-| kie_sandbox.service | object |
`{"nodePort":"","port":8080,"type":"ClusterIP"}`
| KIE Sandbox Service configuration
(https://kubernetes.io/docs/concepts/services-networking/service/)
|
-| kie_sandbox.serviceAccount | object |
`{"annotations":{},"create":true,"name":""}`
| KIE Sandbox ServiceAccount configuration
(https://kubernetes.io/docs/concepts/security/service-accounts/)
|
+| Key | Type | Default
| Description
|
+| ---------------------------------- | ------ |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------------------------------------------------------
|
+| global.ingressSource | string | `""`
| Which ingress source
is being used (none/"minikube"/"kubernetes"/"openshift") Obs.: For NOTES
generation only |
+| global.kubernetesClusterDomain | string | `""`
| If using Minikube or
Kubernetes, set the cluster domain
|
+| global.kubernetesIngressClass | string | `""`
| If using Minikube or
Kubernetes, set the Ingress class (i.e: nginx)
|
+| global.openshiftRouteDomain | string | `""`
| If using OpenShift
Routes, set the Route domain
|
+| fullnameOverride | string | `""`
| Overrides charts full
name
|
+| nameOverride | string | `""`
| Overrides charts name
|
+| cors_proxy.autoscaling | object |
`{"enabled":false,"maxReplicas":100,"minReplicas":1,"targetCPUUtilizationPercentage":80}`
|
CORS Proxy HorizontalPodAutoscaler configuration
(https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/)
|
+| cors_proxy.fullnameOverride | string | `""`
| Overrides charts full
name
|
+| cors_proxy.image | object |
`{"account":"kie-tools","name":"cors-proxy-image","pullPolicy":"IfNotPresent","registry":"quay.io","tag":"latest"}`
| Image source
configuration for the CORS Proxy image
|
+| cors_proxy.imagePullSecrets | list | `[]`
| Pull secrets used
when pulling CORS Proxy image
|
+| cors_proxy.ingress | object |
`{"annotations":{},"className":"{{ .Values.global.kubernetesIngressClass
}}","enabled":false,"hosts":[{"host":"cors-proxy.{{
.Values.global.kubernetesClusterDomain
}}","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}],"tls":[]}`
| CORS Proxy Ingress configuration
(https://kubernetes.io/docs/concepts/services-networking/ingress/)
|
+| cors_proxy.name | string | `"cors-proxy"`
| The CORS Proxy
application name
|
+| cors_proxy.nameOverride | string | `""`
| Overrides charts name
|
+| cors_proxy.openshiftRoute | object |
`{"annotations":{},"enabled":false,"host":"cors-proxy.{{
.Values.global.openshiftRouteDomain
}}","tls":{"insecureEdgeTerminationPolicy":"None","termination":"edge"}}`
|
CORS Proxy OpenShift Route configuration
(https://docs.openshift.com/container-platform/4.14/networking/routes/route-configuration.html)
|
+| cors_proxy.service | object |
`{"nodePort":"","port":8080,"type":"ClusterIP"}`
| CORS Proxy Service configuration
(https://kubernetes.io/docs/concepts/services-networking/service/)
|
+| cors_proxy.serviceAccount | object |
`{"annotations":{},"create":true,"name":""}`
| CORS Proxy ServiceAccount configuration
(https://kubernetes.io/docs/concepts/security/service-accounts/)
|
+| extended_services.autoscaling | object |
`{"enabled":false,"maxReplicas":100,"minReplicas":1,"targetCPUUtilizationPercentage":80}`
|
Extended Services HorizontalPodAutoscaler configuration
(https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/)
|
+| extended_services.fullnameOverride | string | `""`
| Overrides charts full
name
|
+| extended_services.image | object |
`{"account":"kie-tools","name":"kie-sandbox-extended-services-image","pullPolicy":"IfNotPresent","registry":"quay.io","tag":"latest"}`
| Image source configuration for the Extended
Services image
|
+| extended_services.imagePullSecrets | list | `[]`
| Pull secrets used
when pulling Extended Services image
|
+| extended_services.ingress | object |
`{"annotations":{},"className":"{{ .Values.global.kubernetesIngressClass
}}","enabled":false,"hosts":[{"host":"extended-services.{{
.Values.global.kubernetesClusterDomain
}}","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}],"tls":[]}` |
Extended Services Ingress configuration
(https://kubernetes.io/docs/concepts/services-networking/ingress/)
|
+| extended_services.name | string | `"extended-services"`
| The Extended Services
application name
|
+| extended_services.nameOverride | string | `""`
| Overrides charts name
|
+| extended_services.openshiftRoute | object |
`{"annotations":{},"enabled":false,"host":"extended-services.{{
.Values.global.openshiftRouteDomain
}}","tls":{"insecureEdgeTerminationPolicy":"None","termination":"edge"}}`
| Extended
Services OpenShift Route configuration
(https://docs.openshift.com/container-platform/4.14/networking/routes/route-configuration.html)
|
+| extended_services.service | object |
`{"nodePort":"","port":21345,"type":"ClusterIP"}`
| Extended Services Service configuration
(https://kubernetes.io/docs/concepts/services-networking/service/)
|
+| extended_services.serviceAccount | object |
`{"annotations":{},"create":true,"name":""}`
| Extended Services ServiceAccount configuration
(https://kubernetes.io/docs/concepts/security/service-accounts/)
|
+| kie_sandbox.autoscaling | object |
`{"enabled":false,"maxReplicas":100,"minReplicas":1,"targetCPUUtilizationPercentage":80}`
|
KIE Sandbox HorizontalPodAutoscaler configuration
(https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/)
|
+| kie_sandbox.env | list |
`[{"name":"KIE_SANDBOX_EXTENDED_SERVICES_URL","value":"http://127.0.0.1:21345"},{"name":"KIE_SANDBOX_CORS_PROXY_URL","value":"http://127.0.0.1:8081"}]`
| Env variables for KIE Sandbox deployment
|
+| kie_sandbox.fullnameOverride | string | `""`
| Overrides charts full
name
|
+| kie_sandbox.image | object |
`{"account":"kie-tools","name":"kie-sandbox-image","pullPolicy":"IfNotPresent","registry":"quay.io","tag":"latest"}`
| Image source configuration
for the KIE Sandbox image
|
+| kie_sandbox.imagePullSecrets | list | `[]`
| Pull secrets used
when pulling KIE Sandbox image
|
+| kie_sandbox.ingress | object |
`{"annotations":{},"className":"{{ .Values.global.kubernetesIngressClass
}}","enabled":false,"hosts":[{"host":"kie-sandbox.{{
.Values.global.kubernetesClusterDomain
}}","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}],"tls":[]}`
| KIE Sandbox Ingress configuration
(https://kubernetes.io/docs/concepts/services-networking/ingress/)
|
+| kie_sandbox.name | string | `"kie-sandbox"`
| The KIE Sandbox
application name
|
+| kie_sandbox.nameOverride | string | `""`
| Overrides charts name
|
+| kie_sandbox.openshiftRoute | object |
`{"annotations":{},"enabled":false,"host":"kie-sandbox.{{
.Values.global.openshiftRouteDomain
}}","tls":{"insecureEdgeTerminationPolicy":"None","termination":"edge"}}`
| KIE
Sandbox OpenShift Route configuration
(https://docs.openshift.com/container-platform/4.14/networking/routes/route-configuration.html)
|
+| kie_sandbox.service | object |
`{"nodePort":"","port":8080,"type":"ClusterIP"}`
| KIE Sandbox Service configuration
(https://kubernetes.io/docs/concepts/services-networking/service/)
|
+| kie_sandbox.serviceAccount | object |
`{"annotations":{},"create":true,"name":""}`
| KIE Sandbox ServiceAccount configuration
(https://kubernetes.io/docs/concepts/security/service-accounts/)
|
---
-Autogenerated from chart metadata using [helm-docs
v1.11.3](https://github.com/norwoodj/helm-docs/releases/v1.11.3)
+Autogenerated from chart metadata using [helm-docs
v1.12.0](https://github.com/norwoodj/helm-docs/releases/v1.12.0)
diff --git a/packages/kie-sandbox-helm-chart/src/charts/cors_proxy/README.md
b/packages/kie-sandbox-helm-chart/src/charts/cors_proxy/README.md
index 03ec6aca104..304582dc5db 100644
--- a/packages/kie-sandbox-helm-chart/src/charts/cors_proxy/README.md
+++ b/packages/kie-sandbox-helm-chart/src/charts/cors_proxy/README.md
@@ -6,19 +6,19 @@ A Helm chart to deploy CORS Proxy on Kubernetes
## Values
-| Key | Type | Default
| Description
|
-| ---------------- | ------ |
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
----------------------------------------------------------------------------------------------------------------------------------------
|
-| autoscaling | object |
`{"enabled":false,"maxReplicas":100,"minReplicas":1,"targetCPUUtilizationPercentage":80}`
|
CORS Proxy HorizontalPodAutoscaler configuration
(https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/)
|
-| fullnameOverride | string | `""`
| Overrides charts full name
|
-| image | object |
`{"account":"kie-tools","name":"cors-proxy-image","pullPolicy":"IfNotPresent","registry":"quay.io","tag":"latest"}`
| Image source
configuration for the CORS Proxy image
|
-| imagePullSecrets | list | `[]`
| Pull secrets used when pulling CORS
Proxy image
|
-| ingress | object |
`{"annotations":{},"className":"","enabled":false,"hosts":[{"host":"chart-example.local","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}],"tls":[]}`
| CORS Proxy Ingress configuration
(https://kubernetes.io/docs/concepts/services-networking/ingress/)
|
-| name | string | `"cors-proxy"`
| The CORS Proxy application name
|
-| nameOverride | string | `""`
| Overrides charts name
|
-| openshiftRoute | object |
`{"annotations":{},"enabled":false,"host":"cors-proxy.{{
.Values.global.openshiftRouteDomain
}}","tls":{"insecureEdgeTerminationPolicy":"None","termination":"edge"}}` |
CORS Proxy OpenShift Route configuration
(https://docs.openshift.com/container-platform/4.14/networking/routes/route-configuration.html)
|
-| service | object | `{"nodePort":"","port":8080,"type":"ClusterIP"}`
| CORS Proxy Service configuration
(https://kubernetes.io/docs/concepts/services-networking/service/)
|
-| serviceAccount | object | `{"annotations":{},"create":true,"name":""}`
| CORS Proxy ServiceAccount configuration
(https://kubernetes.io/docs/concepts/security/service-accounts/)
|
+| Key | Type | Default
| Description
|
+| ---------------- | ------ |
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
----------------------------------------------------------------------------------------------------------------------------------------
|
+| autoscaling | object |
`{"enabled":false,"maxReplicas":100,"minReplicas":1,"targetCPUUtilizationPercentage":80}`
| CORS
Proxy HorizontalPodAutoscaler configuration
(https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/)
|
+| fullnameOverride | string | `""`
| Overrides charts full name
|
+| image | object |
`{"account":"kie-tools","name":"cors-proxy-image","pullPolicy":"IfNotPresent","registry":"quay.io","tag":"latest"}`
| Image source configuration for
the CORS Proxy image
|
+| imagePullSecrets | list | `[]`
| Pull secrets used when pulling CORS Proxy
image
|
+| ingress | object | `{"annotations":{},"className":"{{
.Values.global.kubernetesIngressClass
}}","enabled":false,"hosts":[{"host":"cors-proxy.{{
.Values.global.kubernetesClusterDomain
}}","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}],"tls":[]}` |
CORS Proxy Ingress configuration
(https://kubernetes.io/docs/concepts/services-networking/ingress/)
|
+| name | string | `"cors-proxy"`
| The CORS Proxy application name
|
+| nameOverride | string | `""`
| Overrides charts name
|
+| openshiftRoute | object |
`{"annotations":{},"enabled":false,"host":"cors-proxy.{{
.Values.global.openshiftRouteDomain
}}","tls":{"insecureEdgeTerminationPolicy":"None","termination":"edge"}}`
| CORS Proxy
OpenShift Route configuration
(https://docs.openshift.com/container-platform/4.14/networking/routes/route-configuration.html)
|
+| service | object | `{"nodePort":"","port":8080,"type":"ClusterIP"}`
| CORS Proxy Service configuration
(https://kubernetes.io/docs/concepts/services-networking/service/)
|
+| serviceAccount | object | `{"annotations":{},"create":true,"name":""}`
| CORS Proxy ServiceAccount configuration
(https://kubernetes.io/docs/concepts/security/service-accounts/)
|
---
-Autogenerated from chart metadata using [helm-docs
v1.11.3](https://github.com/norwoodj/helm-docs/releases/v1.11.3)
+Autogenerated from chart metadata using [helm-docs
v1.12.0](https://github.com/norwoodj/helm-docs/releases/v1.12.0)
diff --git
a/packages/kie-sandbox-helm-chart/src/charts/cors_proxy/templates/ingress.yaml.helm
b/packages/kie-sandbox-helm-chart/src/charts/cors_proxy/templates/ingress.yaml.helm
index 9eb8cfd15a2..64a5f442965 100644
---
a/packages/kie-sandbox-helm-chart/src/charts/cors_proxy/templates/ingress.yaml.helm
+++
b/packages/kie-sandbox-helm-chart/src/charts/cors_proxy/templates/ingress.yaml.helm
@@ -24,7 +24,7 @@ metadata:
{{- end }}
spec:
{{- if and .Values.ingress.className (semverCompare ">=1.18-0"
.Capabilities.KubeVersion.GitVersion) }}
- ingressClassName: {{ .Values.ingress.className }}
+ ingressClassName: {{ tpl .Values.ingress.className . | quote }}
{{- end }}
{{- if .Values.ingress.tls }}
tls:
@@ -38,7 +38,7 @@ spec:
{{- end }}
rules:
{{- range .Values.ingress.hosts }}
- - host: {{ .host | quote }}
+ - host: {{ tpl .host $ | quote }}
http:
paths:
{{- range .paths }}
diff --git a/packages/kie-sandbox-helm-chart/src/charts/cors_proxy/values.yaml
b/packages/kie-sandbox-helm-chart/src/charts/cors_proxy/values.yaml
index 66ca1f86796..02c6142abd4 100644
--- a/packages/kie-sandbox-helm-chart/src/charts/cors_proxy/values.yaml
+++ b/packages/kie-sandbox-helm-chart/src/charts/cors_proxy/values.yaml
@@ -45,10 +45,10 @@ service:
# -- CORS Proxy Ingress configuration
(https://kubernetes.io/docs/concepts/services-networking/ingress/)
ingress:
enabled: false
- className: ""
+ className: "{{ .Values.global.kubernetesIngressClass }}"
annotations: {}
hosts:
- - host: chart-example.local
+ - host: cors-proxy.{{ .Values.global.kubernetesClusterDomain }}
paths:
- path: /
pathType: ImplementationSpecific
@@ -86,3 +86,5 @@ affinity: {}
# @ignored
global:
openshiftRouteDomain: ocp-example.com
+ kubernetesIngressClass: nginx
+ kubernetesClusterDomain: k8s-example.com
diff --git
a/packages/kie-sandbox-helm-chart/src/charts/extended_services/README.md
b/packages/kie-sandbox-helm-chart/src/charts/extended_services/README.md
index 4a74345723d..a70a717561c 100644
--- a/packages/kie-sandbox-helm-chart/src/charts/extended_services/README.md
+++ b/packages/kie-sandbox-helm-chart/src/charts/extended_services/README.md
@@ -6,19 +6,19 @@ A Helm chart to deploy Extended Services on Kubernetes
## Values
-| Key | Type | Default
| Description
|
-| ---------------- | ------ |
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------------------------------------------------------
|
-| autoscaling | object |
`{"enabled":false,"maxReplicas":100,"minReplicas":1,"targetCPUUtilizationPercentage":80}`
| Extended Services HorizontalPodAutoscaler configuration
(https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/)
|
-| fullnameOverride | string | `""`
| Overrides charts full name
|
-| image | object |
`{"account":"kie-tools","name":"kie-sandbox-extended-services-image","pullPolicy":"IfNotPresent","registry":"quay.io","tag":"latest"}`
| Image source configuration for the
Extended Services image
|
-| imagePullSecrets | list | `[]`
| Pull secrets used when pulling
Extended Services image
|
-| ingress | object |
`{"annotations":{},"className":"","enabled":false,"hosts":[{"host":"chart-example.local","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}],"tls":[]}`
| Extended Services Ingress configuration
(https://kubernetes.io/docs/concepts/services-networking/ingress/)
|
-| name | string | `"extended-services"`
| The Extended Services
application name
|
-| nameOverride | string | `""`
| Overrides charts name
|
-| openshiftRoute | object |
`{"annotations":{},"enabled":false,"host":"extended-services.{{
.Values.global.openshiftRouteDomain
}}","tls":{"insecureEdgeTerminationPolicy":"None","termination":"edge"}}` |
Extended Services OpenShift Route configuration
(https://docs.openshift.com/container-platform/4.14/networking/routes/route-configuration.html)
|
-| service | object |
`{"nodePort":"","port":21345,"type":"ClusterIP"}`
| Extended Services Service configuration
(https://kubernetes.io/docs/concepts/services-networking/service/)
|
-| serviceAccount | object | `{"annotations":{},"create":true,"name":""}`
| Extended Services ServiceAccount
configuration (https://kubernetes.io/docs/concepts/security/service-accounts/)
|
+| Key | Type | Default
| Description
|
+| ---------------- | ------ |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------------------------------------------------------
|
+| autoscaling | object |
`{"enabled":false,"maxReplicas":100,"minReplicas":1,"targetCPUUtilizationPercentage":80}`
|
Extended Services HorizontalPodAutoscaler configuration
(https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/)
|
+| fullnameOverride | string | `""`
| Overrides charts full name
|
+| image | object |
`{"account":"kie-tools","name":"kie-sandbox-extended-services-image","pullPolicy":"IfNotPresent","registry":"quay.io","tag":"latest"}`
| Image source configuration for the Extended
Services image
|
+| imagePullSecrets | list | `[]`
| Pull secrets used when pulling Extended
Services image
|
+| ingress | object | `{"annotations":{},"className":"{{
.Values.global.kubernetesIngressClass
}}","enabled":false,"hosts":[{"host":"extended-services.{{
.Values.global.kubernetesClusterDomain
}}","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}],"tls":[]}` |
Extended Services Ingress configuration
(https://kubernetes.io/docs/concepts/services-networking/ingress/)
|
+| name | string | `"extended-services"`
| The Extended Services application name
|
+| nameOverride | string | `""`
| Overrides charts name
|
+| openshiftRoute | object |
`{"annotations":{},"enabled":false,"host":"extended-services.{{
.Values.global.openshiftRouteDomain
}}","tls":{"insecureEdgeTerminationPolicy":"None","termination":"edge"}}`
| Extended
Services OpenShift Route configuration
(https://docs.openshift.com/container-platform/4.14/networking/routes/route-configuration.html)
|
+| service | object |
`{"nodePort":"","port":21345,"type":"ClusterIP"}`
| Extended Services Service configuration
(https://kubernetes.io/docs/concepts/services-networking/service/)
|
+| serviceAccount | object | `{"annotations":{},"create":true,"name":""}`
| Extended Services ServiceAccount
configuration (https://kubernetes.io/docs/concepts/security/service-accounts/)
|
---
-Autogenerated from chart metadata using [helm-docs
v1.11.3](https://github.com/norwoodj/helm-docs/releases/v1.11.3)
+Autogenerated from chart metadata using [helm-docs
v1.12.0](https://github.com/norwoodj/helm-docs/releases/v1.12.0)
diff --git
a/packages/kie-sandbox-helm-chart/src/charts/extended_services/templates/ingress.yaml.helm
b/packages/kie-sandbox-helm-chart/src/charts/extended_services/templates/ingress.yaml.helm
index f42ba4cfc07..72f807763bf 100644
---
a/packages/kie-sandbox-helm-chart/src/charts/extended_services/templates/ingress.yaml.helm
+++
b/packages/kie-sandbox-helm-chart/src/charts/extended_services/templates/ingress.yaml.helm
@@ -24,7 +24,7 @@ metadata:
{{- end }}
spec:
{{- if and .Values.ingress.className (semverCompare ">=1.18-0"
.Capabilities.KubeVersion.GitVersion) }}
- ingressClassName: {{ .Values.ingress.className }}
+ ingressClassName: {{ tpl .Values.ingress.className . | quote }}
{{- end }}
{{- if .Values.ingress.tls }}
tls:
@@ -38,7 +38,7 @@ spec:
{{- end }}
rules:
{{- range .Values.ingress.hosts }}
- - host: {{ .host | quote }}
+ - host: {{ tpl .host $ | quote }}
http:
paths:
{{- range .paths }}
diff --git
a/packages/kie-sandbox-helm-chart/src/charts/extended_services/values.yaml
b/packages/kie-sandbox-helm-chart/src/charts/extended_services/values.yaml
index 347f44984ab..8b0c69a9b52 100644
--- a/packages/kie-sandbox-helm-chart/src/charts/extended_services/values.yaml
+++ b/packages/kie-sandbox-helm-chart/src/charts/extended_services/values.yaml
@@ -45,10 +45,10 @@ service:
# -- Extended Services Ingress configuration
(https://kubernetes.io/docs/concepts/services-networking/ingress/)
ingress:
enabled: false
- className: ""
+ className: "{{ .Values.global.kubernetesIngressClass }}"
annotations: {}
hosts:
- - host: chart-example.local
+ - host: extended-services.{{ .Values.global.kubernetesClusterDomain }}
paths:
- path: /
pathType: ImplementationSpecific
@@ -86,3 +86,5 @@ affinity: {}
# @ignored
global:
openshiftRouteDomain: ocp-example.com
+ kubernetesIngressClass: nginx
+ kubernetesClusterDomain: k8s-example.com
diff --git a/packages/kie-sandbox-helm-chart/src/charts/kie_sandbox/README.md
b/packages/kie-sandbox-helm-chart/src/charts/kie_sandbox/README.md
index 30e97150143..77c75dd699b 100644
--- a/packages/kie-sandbox-helm-chart/src/charts/kie_sandbox/README.md
+++ b/packages/kie-sandbox-helm-chart/src/charts/kie_sandbox/README.md
@@ -6,20 +6,20 @@ A Helm chart to deploy KIE Sandbox on Kubernetes
## Values
-| Key | Type | Default
| Description
|
-| ---------------- | ------ |
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------------------------------------------------
|
-| autoscaling | object |
`{"enabled":false,"maxReplicas":100,"minReplicas":1,"targetCPUUtilizationPercentage":80}`
| KIE Sandbox HorizontalPodAutoscaler configuration
(https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/)
|
-| env | list |
`[{"name":"KIE_SANDBOX_EXTENDED_SERVICES_URL","value":"http://127.0.0.1:21345\""},{"name":"KIE_SANDBOX_CORS_PROXY_URL","value":"http://127.0.0.1:8081"}]`
| Env variables for KIE Sandbox deployment
|
-| fullnameOverride | string | `""`
| Overrides charts full name
|
-| image | object |
`{"account":"kie-tools","name":"kie-sandbox-image","pullPolicy":"IfNotPresent","registry":"quay.io","tag":"latest"}`
| Image source
configuration for the KIE Sandbox image
|
-| imagePullSecrets | list | `[]`
| Pull secrets used when pulling KIE
Sandbox image
|
-| ingress | object |
`{"annotations":{},"className":"","enabled":false,"hosts":[{"host":"kie-sandbox.domain.com","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}],"tls":[]}`
| KIE Sandbox Ingress configuration
(https://kubernetes.io/docs/concepts/services-networking/ingress/)
|
-| name | string | `"kie-sandbox"`
| The KIE Sandbox application name
|
-| nameOverride | string | `""`
| Overrides charts name
|
-| openshiftRoute | object |
`{"annotations":{},"enabled":false,"host":"kie-sandbox.{{
.Values.global.openshiftRouteDomain
}}","tls":{"insecureEdgeTerminationPolicy":"None","termination":"edge"}}` | KIE
Sandbox OpenShift Route configuration
(https://docs.openshift.com/container-platform/4.14/networking/routes/route-configuration.html)
|
-| service | object | `{"nodePort":"","port":8080,"type":"ClusterIP"}`
| KIE Sandbox Service configuration
(https://kubernetes.io/docs/concepts/services-networking/service/)
|
-| serviceAccount | object | `{"annotations":{},"create":true,"name":""}`
| KIE Sandbox ServiceAccount
configuration (https://kubernetes.io/docs/concepts/security/service-accounts/)
|
+| Key | Type | Default
| Description
|
+| ---------------- | ------ |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------------------------------------------------
|
+| autoscaling | object |
`{"enabled":false,"maxReplicas":100,"minReplicas":1,"targetCPUUtilizationPercentage":80}`
| KIE
Sandbox HorizontalPodAutoscaler configuration
(https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/)
|
+| env | list |
`[{"name":"KIE_SANDBOX_EXTENDED_SERVICES_URL","value":"http://127.0.0.1:21345"},{"name":"KIE_SANDBOX_CORS_PROXY_URL","value":"http://127.0.0.1:8081"}]`
| Env variables for KIE Sandbox deployment
|
+| fullnameOverride | string | `""`
| Overrides charts full name
|
+| image | object |
`{"account":"kie-tools","name":"kie-sandbox-image","pullPolicy":"IfNotPresent","registry":"quay.io","tag":"latest"}`
| Image source configuration for
the KIE Sandbox image
|
+| imagePullSecrets | list | `[]`
| Pull secrets used when pulling KIE Sandbox
image
|
+| ingress | object | `{"annotations":{},"className":"{{
.Values.global.kubernetesIngressClass
}}","enabled":false,"hosts":[{"host":"kie-sandbox.{{
.Values.global.kubernetesClusterDomain
}}","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}],"tls":[]}` |
KIE Sandbox Ingress configuration
(https://kubernetes.io/docs/concepts/services-networking/ingress/)
|
+| name | string | `"kie-sandbox"`
| The KIE Sandbox application name
|
+| nameOverride | string | `""`
| Overrides charts name
|
+| openshiftRoute | object |
`{"annotations":{},"enabled":false,"host":"kie-sandbox.{{
.Values.global.openshiftRouteDomain
}}","tls":{"insecureEdgeTerminationPolicy":"None","termination":"edge"}}`
| KIE
Sandbox OpenShift Route configuration
(https://docs.openshift.com/container-platform/4.14/networking/routes/route-configuration.html)
|
+| service | object | `{"nodePort":"","port":8080,"type":"ClusterIP"}`
| KIE Sandbox Service configuration
(https://kubernetes.io/docs/concepts/services-networking/service/)
|
+| serviceAccount | object | `{"annotations":{},"create":true,"name":""}`
| KIE Sandbox ServiceAccount configuration
(https://kubernetes.io/docs/concepts/security/service-accounts/)
|
---
-Autogenerated from chart metadata using [helm-docs
v1.11.3](https://github.com/norwoodj/helm-docs/releases/v1.11.3)
+Autogenerated from chart metadata using [helm-docs
v1.12.0](https://github.com/norwoodj/helm-docs/releases/v1.12.0)
diff --git
a/packages/kie-sandbox-helm-chart/src/charts/kie_sandbox/templates/ingress.yaml.helm
b/packages/kie-sandbox-helm-chart/src/charts/kie_sandbox/templates/ingress.yaml.helm
index e83bb792838..786997e1314 100644
---
a/packages/kie-sandbox-helm-chart/src/charts/kie_sandbox/templates/ingress.yaml.helm
+++
b/packages/kie-sandbox-helm-chart/src/charts/kie_sandbox/templates/ingress.yaml.helm
@@ -24,7 +24,7 @@ metadata:
{{- end }}
spec:
{{- if and .Values.ingress.className (semverCompare ">=1.18-0"
.Capabilities.KubeVersion.GitVersion) }}
- ingressClassName: {{ .Values.ingress.className }}
+ ingressClassName: {{ tpl .Values.ingress.className . | quote }}
{{- end }}
{{- if .Values.ingress.tls }}
tls:
@@ -38,7 +38,7 @@ spec:
{{- end }}
rules:
{{- range .Values.ingress.hosts }}
- - host: {{ .host | quote }}
+ - host: {{ tpl .host $ | quote }}
http:
paths:
{{- range .paths }}
diff --git a/packages/kie-sandbox-helm-chart/src/charts/kie_sandbox/values.yaml
b/packages/kie-sandbox-helm-chart/src/charts/kie_sandbox/values.yaml
index 696b8113c44..980b9576294 100644
--- a/packages/kie-sandbox-helm-chart/src/charts/kie_sandbox/values.yaml
+++ b/packages/kie-sandbox-helm-chart/src/charts/kie_sandbox/values.yaml
@@ -52,10 +52,10 @@ service:
# -- KIE Sandbox Ingress configuration
(https://kubernetes.io/docs/concepts/services-networking/ingress/)
ingress:
enabled: false
- className: ""
+ className: "{{ .Values.global.kubernetesIngressClass }}"
annotations: {}
hosts:
- - host: kie-sandbox.domain.com
+ - host: kie-sandbox.{{ .Values.global.kubernetesClusterDomain }}
paths:
- path: /
pathType: ImplementationSpecific
@@ -88,3 +88,9 @@ tolerations: []
# @ignored
affinity: {}
+
+# @ignored
+global:
+ openshiftRouteDomain: ocp-example.com
+ kubernetesIngressClass: nginx
+ kubernetesClusterDomain: k8s-example.com
diff --git a/packages/kie-sandbox-helm-chart/src/templates/NOTES.txt
b/packages/kie-sandbox-helm-chart/src/templates/NOTES.txt
index 059747da313..b155f3a50bf 100644
--- a/packages/kie-sandbox-helm-chart/src/templates/NOTES.txt
+++ b/packages/kie-sandbox-helm-chart/src/templates/NOTES.txt
@@ -1,13 +1,13 @@
{{- if not .Values.global.ingressSource }}
-In order to get KIE Sandbox running you need to run these commands:
+In order to get {{ .Release.Name }} running you need to run these commands:
{{- if .Values.cors_proxy.ingress.enabled }}
1. CORS Proxy available at:
{{- range $host := .Values.cors_proxy.ingress.hosts }}
{{- range .paths }}
- http{{ if $.Values.cors_proxy.ingress.tls }}s{{ end }}://{{ $host.host }}{{
.path }}
+ http{{ if $.Values.cors_proxy.ingress.tls }}s{{ end }}://{{ tpl $host.host $
}}{{ .path }}
{{- end }}
{{- end }}
{{- else }}
@@ -35,7 +35,7 @@ In order to get KIE Sandbox running you need to run these
commands:
2. Extended Services available at:
{{- range $host := .Values.extended_services.ingress.hosts }}
{{- range .paths }}
- http{{ if $.Values.extended_services.ingress.tls }}s{{ end }}://{{
$host.host }}{{ .path }}
+ http{{ if $.Values.extended_services.ingress.tls }}s{{ end }}://{{ tpl
$host.host $ }}{{ .path }}
{{- end }}
{{- end }}
{{- else }}
@@ -63,7 +63,7 @@ In order to get KIE Sandbox running you need to run these
commands:
3. KIE Sandbox available at:
{{- range $host := .Values.kie_sandbox.ingress.hosts }}
{{- range .paths }}
- http{{ if $.Values.kie_sandbox.ingress.tls }}s{{ end }}://{{ $host.host }}{{
.path }}
+ http{{ if $.Values.kie_sandbox.ingress.tls }}s{{ end }}://{{ tpl $host.host
$ }}{{ .path }}
{{- end }}
{{- end }}
{{- else }}
@@ -95,17 +95,17 @@ Run the following commands:
echo "\n# Minikube KIE Sandbox Helm Chart hostnames" | sudo tee -a /etc/hosts
{{- range $host := .Values.cors_proxy.ingress.hosts }}
{{- range .paths }}
- echo "$MINIKUBE_IP {{ $host.host }}" | sudo tee -a /etc/hosts
+ echo "$MINIKUBE_IP {{ tpl $host.host $ }}" | sudo tee -a /etc/hosts
{{- end }}
{{- end }}
{{- range $host := .Values.extended_services.ingress.hosts }}
{{- range .paths }}
- echo "$MINIKUBE_IP {{ $host.host }}" | sudo tee -a /etc/hosts
+ echo "$MINIKUBE_IP {{ tpl $host.host $ }}" | sudo tee -a /etc/hosts
{{- end }}
{{- end }}
{{- range $host := .Values.kie_sandbox.ingress.hosts }}
{{- range .paths }}
- echo "$MINIKUBE_IP {{ $host.host }}" | sudo tee -a /etc/hosts
+ echo "$MINIKUBE_IP {{ tpl $host.host $ }}" | sudo tee -a /etc/hosts
{{- end }}
{{- end }}
@@ -123,7 +123,7 @@ Run the following commands:
1. CORS Proxy available at:
{{- range $host := .Values.cors_proxy.ingress.hosts }}
{{- range .paths }}
- http{{ if $.Values.cors_proxy.ingress.tls }}s{{ end }}://{{ $host.host }}{{
.path }}
+ http{{ if $.Values.cors_proxy.ingress.tls }}s{{ end }}://{{ tpl $host.host $
}}{{ .path }}
{{- end }}
{{- end }}
{{- end }}
@@ -131,7 +131,7 @@ Run the following commands:
2. Extended Services available at:
{{- range $host := .Values.extended_services.ingress.hosts }}
{{- range .paths }}
- http{{ if $.Values.extended_services.ingress.tls }}s{{ end }}://{{
$host.host }}{{ .path }}
+ http{{ if $.Values.extended_services.ingress.tls }}s{{ end }}://{{ tpl
$host.host $ }}{{ .path }}
{{- end }}
{{- end }}
{{- end }}
@@ -139,7 +139,7 @@ Run the following commands:
3. KIE Sandbox available at:
{{- range $host := .Values.kie_sandbox.ingress.hosts }}
{{- range .paths }}
- http{{ if $.Values.kie_sandbox.ingress.tls }}s{{ end }}://{{ $host.host }}{{
.path }}
+ http{{ if $.Values.kie_sandbox.ingress.tls }}s{{ end }}://{{ tpl $host.host
$ }}{{ .path }}
{{- end }}
{{- end }}
{{- end }}
diff --git a/packages/kie-sandbox-helm-chart/src/values-kubernetes.yaml
b/packages/kie-sandbox-helm-chart/src/values-kubernetes.yaml
new file mode 100644
index 00000000000..aacb55777ad
--- /dev/null
+++ b/packages/kie-sandbox-helm-chart/src/values-kubernetes.yaml
@@ -0,0 +1,25 @@
+# KIE Sandbox application
+kie_sandbox:
+ env:
+ - name: "KIE_SANDBOX_EXTENDED_SERVICES_URL"
+ value: "http://extended-services.{{
.Values.global.kubernetesClusterDomain }}"
+ - name: "KIE_SANDBOX_CORS_PROXY_URL"
+ value: "http://cors-proxy.{{ .Values.global.kubernetesClusterDomain }}"
+
+ ingress:
+ enabled: true
+
+# Cors Proxy component
+cors_proxy:
+ ingress:
+ enabled: true
+
+# Extended Services component
+extended_services:
+ ingress:
+ enabled: true
+
+global:
+ ingressSource: "kubernetes"
+ kubernetesIngressClass: nginx
+ kubernetesClusterDomain: k8s-example.com
diff --git a/packages/kie-sandbox-helm-chart/src/values-minikube-nginx.yaml
b/packages/kie-sandbox-helm-chart/src/values-minikube-nginx.yaml
index ca7dddb3f05..e59418e2c43 100644
--- a/packages/kie-sandbox-helm-chart/src/values-minikube-nginx.yaml
+++ b/packages/kie-sandbox-helm-chart/src/values-minikube-nginx.yaml
@@ -2,45 +2,24 @@
kie_sandbox:
env:
- name: "KIE_SANDBOX_EXTENDED_SERVICES_URL"
- value: "http://extended-services.local"
+ value: "http://extended-services.{{
.Values.global.kubernetesClusterDomain }}"
- name: "KIE_SANDBOX_CORS_PROXY_URL"
- value: "http://cors-proxy.local"
+ value: "http://cors-proxy.{{ .Values.global.kubernetesClusterDomain }}"
+
ingress:
enabled: true
- className: nginx
- annotations: {}
- hosts:
- - host: kie-sandbox.local
- paths:
- - path: /
- pathType: ImplementationSpecific
- tls: []
# Cors Proxy component
cors_proxy:
ingress:
enabled: true
- className: nginx
- annotations: {}
- hosts:
- - host: cors-proxy.local
- paths:
- - path: /
- pathType: ImplementationSpecific
- tls: []
-# Extended services component
+# Extended Services component
extended_services:
ingress:
enabled: true
- className: nginx
- annotations: {}
- hosts:
- - host: extended-services.local
- paths:
- - path: /
- pathType: ImplementationSpecific
- tls: []
global:
ingressSource: "minikube"
+ kubernetesIngressClass: nginx
+ kubernetesClusterDomain: local
diff --git a/packages/kie-sandbox-helm-chart/src/values.yaml
b/packages/kie-sandbox-helm-chart/src/values.yaml
index 62a7263a2da..da7c2bcad8d 100644
--- a/packages/kie-sandbox-helm-chart/src/values.yaml
+++ b/packages/kie-sandbox-helm-chart/src/values.yaml
@@ -4,7 +4,13 @@ nameOverride: ""
fullnameOverride: ""
global:
- # -- Which ingress source is being used (none/"minikube"/"openshift") Obs.:
For NOTES generation only
+ # -- Which ingress source is being used
(none/"minikube"/"kubernetes"/"openshift") Obs.: For NOTES generation only
ingressSource: ""
+
+ # -- If using Minikube or Kubernetes, set the Ingress class (i.e: nginx)
+ kubernetesIngressClass: ""
+ # -- If using Minikube or Kubernetes, set the cluster domain
+ kubernetesClusterDomain: ""
+
# -- If using OpenShift Routes, set the Route domain
openshiftRouteDomain: ""
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]