oscar
by GRyCAP
Open Source Serverless Computing for Data-Processing Applications
About this chart
OSCAR - Open Source Serverless Computing for Data-Processing Applications
OSCAR is an open-source platform to support Serverless computing for file-processing applications. It can be automatically deployed on multi-Clouds in order to create highly-parallel event-driven file-processing serverless applications that execute on customized runtime environments provided by Docker containers than run on an elastic Kubernetes cluster.
MinIO installation
OSCAR depends on MinIO for accessing the files to be processed and to store the results after services executions. The installation of MinIO has not been included as a dependency of this chart because there are multiple ways to install and configure it. Please follow the official documentation to deploy it.
It is important to have MinIO deployed on the same Kubernetes cluster as OSCAR in order to create the input/output bucket and folders, as well as correctly configure event notifications. Granting access to MinIO in an OSCAR deployment must be done through the chart configuration values.
Helm Chart
To install the OSCAR chart first add the GRyCAP repo:
helm repo add grycap https://grycap.github.io/helm-charts/
Create the oscar and oscar-svc namespaces if they don't exist:
kubectl apply -f https://raw.githubusercontent.com/grycap/oscar/master/deploy/yaml/oscar-namespaces.yaml
Then install the OSCAR chart (with Helm v2):
helm install --namespace=oscar --name=oscar grycap/oscar
Then install the IM chart (with Helm v3):
helm install --namespace=oscar oscar grycap/oscar
OSCAR can be exposed by a Kubernetes Ingress or HTTPRoute, so it expects an ingress controller or API Gateway installed and configured in the cluster.
Configuration
The following table lists the configurable parameters of the OSCAR chart and their default values.
| Parameter | Description | Default |
|---|---|---|
servicesNamespace | Namespace to deploy OSCAR services | oscar-svc |
authUser | Username for basic-auth | oscar |
authPass | Password for basic-auth | oscar123 |
serverlessBackend | Enable a Serverless backend for sync invocations (disabled if not set) (openfaas|knative|"") | "" |
openfaas.namespace | Namespace where the OpenFaaS gateway is deployed | openfaas |
openfaas.port | Service port where the OpenFaaS gateway is exposed (ClusterIP) | 8080 |
openfaas.basicAuthSecret | Name of the secret where the OpenFaaS basic auth credentials are stored | basic-auth |
openfaas.prometheusPort | Service port where the OpenFaaS prometheus server is exposed (ClusterIP) | 9090 |
openfaas.scaler.enable | Option to enable the bundled OpenFaaS scaler | false |
openfaas.scaler.interval | Time interval to check if there are idle OpenFaaS functions | 2m |
openfaas.scaler.inactivityDuration | Duration with no requests to consider that an OpenFaaS function is idle | 10m |
openfaas.watchdog.maxInflight | Limit the maximum number of requests in flight for the OpenFaaS watchdog | 1 |
openfaas.watchdog.writeDebug | Write all output, error messages, and additional information to the logs for the OpenFaaS watchdog | true |
openfaas.watchdog.execTimeout | Exec timeout for process exec'd for each incoming request (in seconds). Disabled if set to 0 | 0 |
openfaas.watchdog.readTimeout | HTTP timeout for reading the payload from the client caller (in seconds) | 300 |
openfaas.watchdog.writeTimeout | HTTP timeout for writing a response body from your function (in seconds) | 300 |
openfaas.watchdog.healthCheckInterval | Time interval to check if the watchdog is not processing any request in order to exit earlier during graceful shutdown (in seconds) | 5 |
yuniKorn.enable | Option to enable the integration with Apache YuniKorn | false |
yuniKorn.namespace | Namespace where the Apache YuniKorn's scheduler is deployed | yunikorn |
yuniKorn.configMap | Name of the Apache YuniKorn's configMap | yunikorn-configs |
yuniKorn.configFileName | Name of the Apache YuniKorn's filename inside the configMap | queues.yaml |
resourceManager.enable | Option to enable the Resource Manager to delegate jobs when there are no available resources in the cluster (if the service has replicas) | false |
resourceManager.interval | Time interval (in seconds) to update the available resources in the cluster | 15 |
reScheduler.enable | Option to enable the ReScheduler to delegate jobs to a replica | false |
reScheduler.interval | Time interval (in seconds) to check if pending jobs | 15 |
reScheduler.threshold | Time (in seconds) that a job (with replicas) can be queued before delegating it | 30 |
oidc.enable | Parameter to enable OpenID Connect support | false |
oidc.issuer | OpenID Connect issuer as returned in the "iss" field of the JWT payload | https://aai.egi.eu/auth/realms/egi |
oidc.subject | OpenID Connect Subject (user identifier) | "" |
oidc.groups | OpenID comma-separated group list to grant access in the cluster. Groups defined in the "eduperson_entitlement" OIDC scope, as described here | "" |
service.type | Type of service to expose OSCAR | NodePort |
service.port | ClusterIP port for OSCAR | 8080 |
service.nodePort | NodePort to expose OSCAR (if service.type is NodePort) | 30301 |
replicas | Number of replicas to deploy | 1 |
ingress.create | Create a Kubernetes ingress to expose OSCAR | false |
ingress.host | DNS Host for the ingress | "" |
ingress.certManagerIssuer | Cert-manager issuer to automatically assign TLS certificates | "" |
httproute.create | Create a Kubernetes HTTPRoute to expose OSCAR | false |
httproute.host | DNS Host for the HTTPRoute | "" |
httproute.type | HTTPRoute type (nginx, or traefik) | "traefik" |
httproute.gateway.name | Gateway name |
Deploy oscar with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has oscar on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartoscar is pinned at v4.3.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply