cernbox

by ScienceBox

Helm chartv0.0.4App 1.4.1

The chart to deploy and configure CERNBox in ScienceBox

About this chart

cernbox

The chart to deploy and configure CERNBox in ScienceBox

A collection of other charts to deploy CERNBox in ScienceBox:

  • revad ~ CS3org charts for the Reva interoperability platform
  • ocis ~ ownCloud Infinite Scale extensions
  • nginx ~ Bitnami's chart for NGINX webserver used to server CERNBox web assets and theme

Requirements

RepositoryNameVersion
https://charts.bitnami.com/bitnamicernbox-web(nginx)13.0.0
https://cs3org.github.io/chartsgateway(revad)1.4.1
https://cs3org.github.io/chartsstorageprovideruser(revad)1.4.1
https://cs3org.github.io/chartsstorageproviderpublic(revad)1.4.1
https://cs3org.github.io/chartsauthprovidermachine(revad)1.4.1
https://cs3org.github.io/chartsauthproviderbearer(revad)1.4.1
https://cs3org.github.io/chartsstorageproviderhome(revad)1.4.1
https://registry.cern.ch/chartrepo/scienceboxocis0.0.8

Values

KeyTypeDefaultDescription
authproviderbearer.cfgmapNamestring"authprovider-bearer-config"cfgmap containing revad authprovider bearer TOML configuratinos
authproviderbearer.image.repositorystring"ghcr.io/cernbox/reva"authproviderbearer image to use for deployment
authproviderbearer.image.tagstring"cernbox"image tag to use
authproviderbearer.service.grpc.portint9158port the grpc service listens on
authprovidermachine.cfgmapNamestring"authprovider-machine-config"
authprovidermachine.image.repositorystring"ghcr.io/cernbox/reva"
authprovidermachine.image.tagstring"cernbox"
authprovidermachine.service.grpc.portint9166
cernbox-web.args[0]string"-c"
cernbox-web.args[1]string"/etc/nginx/nginx.conf"
cernbox-web.command[0]string"/opt/bitnami/nginx/sbin/nginx"
cernbox-web.extraDeploylistnonemechanism to deploy extra "kubernetes" components
cernbox-web.extraDeploy[0].data."nginx.conf"stringnonenginx configuration
cernbox-web.extraVolumeMounts[0].mountPathstring"/var/www/web/config.json"
cernbox-web.extraVolumeMounts[0].namestring"web-config"
cernbox-web.extraVolumeMounts[0].subPathstring"config.json"
cernbox-web.extraVolumeMounts[1].mountPathstring"/etc/nginx/nginx.conf"
cernbox-web.extraVolumeMounts[1].namestring"nginx-conf"
cernbox-web.extraVolumeMounts[1].subPathstring"nginx.conf"
cernbox-web.extraVolumeMounts[2].mountPathstring"/var/www/web/"
cernbox-web.extraVolumeMounts[2].namestring"web-content"
cernbox-web.extraVolumes[0].configMap.defaultModeint493
cernbox-web.extraVolumes[0].configMap.namestring"cernbox-web-init"
cernbox-web.extraVolumes[0].namestring"web-init"
cernbox-web.extraVolumes[1].emptyDirobject{}
cernbox-web.extraVolumes[1].namestring"web-content"
cernbox-web.extraVolumes[2].configMap.namestring"cernbox-web-config"
cernbox-web.extraVolumes[2].namestring"web-config"
cernbox-web.extraVolumes[3].configMap.namestring"nginx-conf"
cernbox-web.extraVolumes[3].namestring"nginx-conf"
cernbox-web.initContainers[0].commandlist["/bin/sh","/root/cbox_init.sh"]Command that the initContainer runs after startup
cernbox-web.initContainers[0].envlist[{"name":"WEB_ASSET","value":"https://github.com/cernbox/web-release/releases/download/v0.0.9/web.tar.gz"},{"name":"WEB_THEME","value":"https://github.com/cernbox/web-extensions/releases/download/theme-cernbox/v0.1.7/theme-cernbox.tar.gz"}]Environment Variables
cernbox-web.initContainers[0].env[0]object{"name":"WEB_ASSET","value":"https://github.com/cernbox/web-release/releases/download/v0.0.9/web.tar.gz"}URL for the cernbox web asset tarball
cernbox-web.initContainers[0].env[0].valuestring"https://github.com/cernbox/web-release/releases/download/v0.0.9/web.tar.gz"value for the web-asset env var
cernbox-web.initContainers[0].env[1].valuestring"https://github.com/cernbox/web-extensions/releases/download/theme-cernbox/v0.1.7/theme-cernbox.tar.gz"value for the web-theme env var
cernbox-web.initContainers[0].imagestring"busybox"image that the initContainer should use
cernbox-web.initContainers[0].namestring"cernbox-web-init"
cernbox-web.initContainers[0].volumeMountslist[{"mountPath":"/root/cbox_init.sh","name":"web-init","subPath":"cbox_init.sh"},{"mountPath":"/var/www/web/","name":"web-content"}]volume mount for the initContainer
cernbox-web.initContainers[0].volumeMounts[0]object{"mountPath":"/root/cbox_init.sh","name":"web-init","subPath":"cbox_init.sh"}web-init volume mount to mount the init shell script onto the initContainer
cernbox-web.initContainers[0].volumeMounts[0].mountPathstring"/root/cbox_init.sh"web-init volume mount path
cernbox-web.initContainers[0].volumeMounts[1].mountPathstring"/var/www/web/"web-content volume mount path
cernbox-web.livenessProbe.enabledboolfalse
cernbox-web.readinessProbe.enabledboolfalse
cernboxconfig.serverstring"https://cernbox.hostname"
gateway.cfgmapNamestring"gateway-config"configMap containing revad gateway TOML configurations
gateway.env.XrdSecPROTOCOLstring"sss"XrdSecPROTOCOL - protocol used to authenticate against EOS
gateway.image.repositorystring"cs3org/revad"gateway image to use for deployment
gateway.image.tagstring"v1.19.0"image tag to use
gateway.serviceobject{"grpc":{"port":9142},"http":{"port":9143}}revad gateway service configuration
gateway.service.grpcobject{"port":9142}grpc port
gateway.service.grpc.portint9142port that gateway grpc service listens on
gateway.service.httpobject{"port":9143}http port
gateway.service.http.portint9143port that gateway http service listens on
ocis.env.ACCOUNTS_DEMO_USERS_AND_GROUPSboolfalse
ocis.env.IDM_CREATE_DEMO_USERSboolfalse
ocis.env.IDP_ACCESS_TOKEN_EXPIRATIONint28800IDP Config - https://owncloud.dev/services/idp/configuration/#environment-variables
ocis.env.IDP_HTTP_ADDRstring"0.0.0.0:9130"Port on which the IDP listens
ocis.env.IDP_INSECUREbooltrueset insecure flag for the idp
ocis.env.IDP_ISSstring"https://sciencebox.local"IDP issuer URL
ocis.env.IDP_LDAP_LOGIN_ATTRIBUTEstring"uid"
ocis.env.IDP_LDAP_UUID_ATTRIBUTEstring"ownclouduuid"
ocis.env.IDP_LDAP_UUID_ATTRIBUTE_TYPEstring"binary"
ocis.env.LDAP_BIND_DNstring"cn=readuser,dc=owncloud,dc=com"LDAP - Bind DN
ocis.env.LDAP_BIND_PASSWORDstring"readuser"LDAP - Bind password
ocis.env.LDAP_GROUPFILTERstring"(objectclass=owncloud)"LDAP - group filter
ocis.env.LDAP_GROUP_BASE_DNstring"dc=owncloud,dc=com"LDAP - group base dn
ocis.env.LDAP_GROUP_OBJECTCLASSstring"groupOfUniqueNames"LDAP - group object class
ocis.env.LDAP_INSECUREbooltrueset insecure flag for the LDAP
ocis.env.LDAP_LOGIN_ATTRIBUTESstring"uid,mail"LDAP - Login attributes
ocis.env.LDAP_URIstring"ldaps://sciencebox-ldap:636"LDAP URI address
ocis.env.LDAP_USERFILTERstring"(objectclass=owncloud)"LDAP - user filter
ocis.env.LDAP_USER_BASE_DNstring"dc=owncloud,dc=com"LDAP - user base dn
ocis.env.LDAP_USER_OBEJECTCLASSstring"inetOrgPerson"LDAP - user object class
ocis.env.OCIS_INSECUREbooltrue
ocis.env.OCIS_JWT_SECRETstring"Pive-Fumkiu4"
ocis.env.OCIS_LOG_LEVELstring"debug"
ocis.env.OCIS_MACHINE_AUTH_API_KEYstring"random_api_key"
ocis.env.PROXY_ACCOUNT_BACKEND_TYPEstring"cs3"Proxy Config - https://owncloud.dev/services/proxy/configuration/
ocis.env.PROXY_ENABLE_BASIC_AUTHboolfalse
ocis.env.PROXY_TLSbooltrue
ocis.env.REVA_GATEWAYstring"sciencebox-gateway.default.svc.cluster.local:9142"Reva Gateway address (Cernbox backend)
ocis.env.STORAGE_TRANSFER_SECRETstring"replace-me-with-a-transfer-secret"
ocis.extensionslist["proxy","idp"]ocis extensions (https://owncloud.dev/services/)
ocis.image.repositorystring"gitlab-registry.cern.ch/sciencebox/docker-images/ocis"image to use for deploying ocis
ocis.image.tagstring"1.20.0"image tag to use
ocis.ingress.annotationobject{"nginx.ingress.kubernetes.io/backend-protocol":"HTTPS"}ingress annotation
ocis.ingress.enabledbooltrueenable ingress for ocis
ocis.ingress.exposeIdpbooltrueexpose the IDP via the ingress
storageproviderhome.cfgmapNamestring"storageprovider-home-config"configMap containing revad storageproviderhome TOML configurations
storageproviderhome.env.XrdSecPROTOCOLstring"sss"XrdSecPROTOCOL - protocol used to authenticate against EOS
storageproviderhome.image.repositorystring"cs3org/revad"storageproviderhome image to use for deployment
storageproviderhome.image.tagstring"v1.19.0-eos"image tag to use
storageproviderhome.serviceobject{"grpc":{"port":18000},"http":{"port":17000}}service configurations
storageproviderhome.service.grpcobject{"port":18000}grpc port
storageproviderhome.service.grpc.portint18000port that grpc service listens on
storageproviderhome.service.httpobject{"port":17000}http port
storageproviderhome.service.http.portint17000port that http service listens on
storageproviderpublic.cfgmapNamestring"storageprovider-public-config"configMap containing revad storageproviderpublic TOML configurations
storageproviderpublic.env.XrdSecPROTOCOLstring"sss"XrdSecPROTOCOL - protocol used to authenticate against EOS
storageproviderpublic.image.repositorystring"cs3org/revad"storageproviderpublic image to use for deployment
storageproviderpublic.image.tagstring"v1.19.0-eos"image tag to use
storageproviderpublic.serviceobject{"grpc":{"port":9278}}service configurations
storageproviderpublic.service.grpcobject{"port":9278}grpc port
storageproviderpublic.service.grpc.portint9278port the grpc service listens on
storageprovideruser.cfgmapNamestring"storageprovider-user-config"configMap containing revad storageprovideruser TOML configurations
storageprovideruser.env.XrdSecPROTOCOLstring"sss"XrdSecPROTOCOL - protocol used to authenticate against EOS
storageprovideruser.image.repositorystring"cs3org/revad"storageprovideruser image to use for deployment
storageprovideruser.image.tagstring"v1.19.0-eos"image tag to use
storageprovideruser.service.grpc.portint16000port the grpc service listens on
storageprovideruser.service.http.portint15000port the http service listens on

Limitations

This chart is an umbrella meant to group all the CERNBox charts together for deployment in ScienceBox:

  • It cannot be used to deploy CERNBox in stand-alone mode, for now.
  • The configuration provided here relies on external components (e.g., LDAP, MariaDB) that are not provided in this chart.
  • It is possible to deploy a toy version of CERNBox (w/o external dependencies) but this requires reconfiguration of several components -- Contributions are welcome

Autogenerated from chart metadata using helm-docs v1.11.0

Deploy cernbox with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has cernbox 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 chartcernbox is pinned at v0.0.4 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