gradle-cache

by slamdev

Helm chartv0.2.0App 11.0

Helm chart to deploy [gradle-cache](https://docs.gradle.com/build-cache-node/).

About this chart

gradle-cache

Helm chart to deploy gradle-cache.

Homepage: https://github.com/slamdev/helm-charts/tree/master/charts/gradle-cache

Maintainers

NameEmailUrl
slamdev[email protected]

Values

KeyTypeDefaultDescription
affinityobject{}affinity for scheduler pod assignment
argslist["start","--no-warn-anon-cache-write","--no-warn-anon-ui-access"]args to pass to the container
configSecret.contentstring"version: 4\ncache:\n accessControl:\n anonymousLevel: readwrite\n maxEntryAgeInHours: null\n freeSpaceBufferSize: 1024\n maxArtifactSize: 100\n targetSize:\n type: fixed\n size: 10000\nuiAccess:\n type: open"
configSecret.createbooltruespecifies whether a secret should be created
configSecret.namestringnilthe name of the secret to use; if not set and create is true, a name is generated using the fullname template
envlist[]additional environment variables for the deployment
fullnameOverridestring""full name of the chart.
image.pullPolicystring"IfNotPresent"image pull policy
image.repositorystring"gradle/build-cache-node"image repository
image.tagstring""image tag (chart's appVersion value will be used if not set)
imagePullSecretslist[]image pull secret for private images
ingress.annotationsobject{}ingress annotations
ingress.enabledboolfalseenables Ingress for gradle-cache
ingress.hostslist[]ingress accepted hostnames
ingress.tlslist[]ingress TLS configuration
ingress.ingressClassNamestring""ingress name of the IngressClass cluster resource
initContainer.image.repositorystring"busybox"image repository for initContainer
initContainer.image.tagstring"1.33.0"image tag for initContainer
livenessProbe.httpGet.pathstring"/"path for liveness probe
livenessProbe.httpGet.portstring"http"port for liveness probe
nameOverridestring""override name of the chart
nodeSelectorobject{}node for scheduler pod assignment
podSecurityContextobject{}specifies security settings for a pod
readinessProbe.httpGet.pathstring"/"path for readiness probe
readinessProbe.httpGet.portstring"http"port for readiness probe
resourcesobject{}custom resource configuration
securityContextobject{}specifies security settings for a container
service.annotationsobject{}service annotations
service.portint80service port
service.typestring"ClusterIP"service type
serviceAccount.annotationsobject{}annotations to add to the service account
serviceAccount.createboolfalsespecifies whether a service account should be created
serviceAccount.namestringnilthe name of the service account to use; if not set and create is true, a name is generated using the fullname template
tolerationslist[]tolerations for scheduler pod assignment
volumeslist[{"emptyDir":{},"name":"cache"}]volumes

Deploy gradle-cache with OpenTenant

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