oscar

by GRyCAP

Helm chartv4.3.0Apache-2.0Verified publisher

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.

ParameterDescriptionDefault
servicesNamespaceNamespace to deploy OSCAR servicesoscar-svc
authUserUsername for basic-authoscar
authPassPassword for basic-authoscar123
serverlessBackendEnable a Serverless backend for sync invocations (disabled if not set) (openfaas|knative|"")""
openfaas.namespaceNamespace where the OpenFaaS gateway is deployedopenfaas
openfaas.portService port where the OpenFaaS gateway is exposed (ClusterIP)8080
openfaas.basicAuthSecretName of the secret where the OpenFaaS basic auth credentials are storedbasic-auth
openfaas.prometheusPortService port where the OpenFaaS prometheus server is exposed (ClusterIP)9090
openfaas.scaler.enableOption to enable the bundled OpenFaaS scalerfalse
openfaas.scaler.intervalTime interval to check if there are idle OpenFaaS functions2m
openfaas.scaler.inactivityDurationDuration with no requests to consider that an OpenFaaS function is idle10m
openfaas.watchdog.maxInflightLimit the maximum number of requests in flight for the OpenFaaS watchdog1
openfaas.watchdog.writeDebugWrite all output, error messages, and additional information to the logs for the OpenFaaS watchdogtrue
openfaas.watchdog.execTimeoutExec timeout for process exec'd for each incoming request (in seconds). Disabled if set to 00
openfaas.watchdog.readTimeoutHTTP timeout for reading the payload from the client caller (in seconds)300
openfaas.watchdog.writeTimeoutHTTP timeout for writing a response body from your function (in seconds)300
openfaas.watchdog.healthCheckIntervalTime interval to check if the watchdog is not processing any request in order to exit earlier during graceful shutdown (in seconds)5
yuniKorn.enableOption to enable the integration with Apache YuniKornfalse
yuniKorn.namespaceNamespace where the Apache YuniKorn's scheduler is deployedyunikorn
yuniKorn.configMapName of the Apache YuniKorn's configMapyunikorn-configs
yuniKorn.configFileNameName of the Apache YuniKorn's filename inside the configMapqueues.yaml
resourceManager.enableOption to enable the Resource Manager to delegate jobs when there are no available resources in the cluster (if the service has replicas)false
resourceManager.intervalTime interval (in seconds) to update the available resources in the cluster15
reScheduler.enableOption to enable the ReScheduler to delegate jobs to a replicafalse
reScheduler.intervalTime interval (in seconds) to check if pending jobs15
reScheduler.thresholdTime (in seconds) that a job (with replicas) can be queued before delegating it30
oidc.enableParameter to enable OpenID Connect supportfalse
oidc.issuerOpenID Connect issuer as returned in the "iss" field of the JWT payloadhttps://aai.egi.eu/auth/realms/egi
oidc.subjectOpenID Connect Subject (user identifier)""
oidc.groupsOpenID comma-separated group list to grant access in the cluster. Groups defined in the "eduperson_entitlement" OIDC scope, as described here""
service.typeType of service to expose OSCARNodePort
service.portClusterIP port for OSCAR8080
service.nodePortNodePort to expose OSCAR (if service.type is NodePort)30301
replicasNumber of replicas to deploy1
ingress.createCreate a Kubernetes ingress to expose OSCARfalse
ingress.hostDNS Host for the ingress""
ingress.certManagerIssuerCert-manager issuer to automatically assign TLS certificates""
httproute.createCreate a Kubernetes HTTPRoute to expose OSCARfalse
httproute.hostDNS Host for the HTTPRoute""
httproute.typeHTTPRoute type (nginx, or traefik)"traefik"
httproute.gateway.nameGateway 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartoscar is pinned at v4.3.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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