acceleration

by Buttahtoast

Helm chartv0.1.0App 0.2.13Verified publisher

Harbor Acceleration Service

About this chart

acceleration

Harbor Acceleration Service

Homepage: https://github.com/goharbor/acceleration-service

Maintainers

NameEmailUrl
oliverbaehler[email protected]
chifu1234[email protected]

Source Code

Requirements

RepositoryNameVersion
https://buttahtoast.github.io/helm-charts/library3.0.0-rc.3

Values

KeyTypeDefaultDescription
affinityobject{}
autoscaling.enabledboolfalse
autoscaling.maxReplicasint100
autoscaling.minReplicasint1
autoscaling.targetCPUUtilizationPercentageint80
config.converterobject{"driver":{"config":{"with_referrer":true},"type":"nydus"},"harbor_annotation":true,"platforms":"","rules":{"additional":[],"overwrite":[]},"worker":5}Converter Configuration
config.converter.driver.configobject{"with_referrer":true}driver configuration
config.converter.driver.typestring"nydus"select which driver to use, nydus or estargz
config.converter.harbor_annotationbooltrueenable to add harbor specified annotations to converted image for tracking.
config.converter.platformsstring""only convert images for specific platforms, leave empty for all platforms (eg. linux/amd64,linux/arm64)
config.converter.rulesobject{"additional":[],"overwrite":[]}Additional rules
config.converter.rules.additionallist[]Additional rules (appened to driver preset rules)
config.converter.rules.overwritelist[]Overwrite rules (overwrite driver preset rules)
config.converter.workerint5number of worker for executing conversion task
config.customConfigurationobject{}Custom Configuration (instead of using template). Can be map or multiline string, templating is supported.
config.harbor.authstring""Authentication Token
config.harbor.hoststring"harbor.company.com"
config.harbor.insecureboolfalseskip verifying server certs for HTTPS source registry
config.templatestring"# Configuration file of Harbor Acceleration Service\n\n# http related config\nserver:\n name: API\n # listened host for http\n host: 0.0.0.0\n # port for http\n port: 2077\n\nmetric:\n # export metrics on /metricsendpoint\n enabled: true\n\nprovider:\n source:\n # hostname of harbor service\n {{ $.Values.config.harbor.host }}:\n # base64 encoded:` for robot\n # account created in harbor\n # auth: YTpiCg==\n # skip verifying server certs for HTTPS source registry\n insecure: {{ $.Values.config.harbor.insecure }}\n webhook:\n # webhook request auth header configured in harbor\n auth_header: header\n localhost:\n # If auth is not provided, it will attempt to read from docker config\n # auth: YWRtaW46SGFyYm9yMTIzNDU=\n # work directory of acceld\n work_dir: {{ $.Values.config.workDir.path }}\n gcpolicy:\n # size threshold that triggers GC, the oldest used blobs will be reclaimed if exceeds the size.\n threshold: 1000MB\n # remote cache record capacity of converted layers, default is 200.\n cache_size: 200\n # remote cache version, cache in remote must match the specified version, or discard cache.\n cache_version: v1 \n\nconverter:\n worker: {{ $.Values.config.converter.worker }}\n harbor_annotation: {{ $.Values.config.converter.harbor_annotation }}\n platforms: {{ $.Values.config.converter.platforms }}\n rules:\n {{- if $.Values.config.converter.overwrite }}\n {{- toYaml $.Values.config.converter.overwritenindent 8 }}\n {{- else }}\n {{- if (include "acceleration.driver.is.nydus" $) }}\n # add suffix to tag of source image reference as target image reference\n - tag_suffix: -nydus\n # set tag of source image reference as remote cache reference, leave empty to disable remote cache.\n - cache_tag: nydus-cache\n {{- end }}\n {{- if (include "acceleration.driver.is.estargz" $) }}\n - tag_suffix: -esgz\n {{- end }}\n {{- with $.Values.config.converter.rules.additional }}\n {{- toYaml .
config.workDirobject{"emptyDir":{"enabled":true,"medium":"","sizeLimit":""},"path":"/tmp"}Working Directory (EmptyDir)
config.workDir.emptyDir.enabledbooltrueEnable EmptyDir for working directory
config.workDir.emptyDir.mediumstring""EmptyDir medium
config.workDir.emptyDir.sizeLimitstring""EmptyDir size limit
fullnameOverridestring""
image.pullPolicystring"IfNotPresent"
image.repositorystring"goharbor/harbor-acceld"
image.tagstring""
imagePullSecretslist[]
ingress.annotationsobject{}
ingress.enabledboolfalse
ingress.hosts[0].hoststring"chart-example.local"
ingress.hosts[0].paths[0].pathstring"/"
ingress.hosts[0].paths[0].pathTypestring"ImplementationSpecific"
ingress.ingressClassNamestring""
ingress.tlslist[]
nameOverridestring""
nodeSelectorobject{}
podAnnotationsobject{}
podSecurityContextobject{}
replicaCountint1
resourcesobject{}
securityContextobject{}
service.annotationsobject{}
service.clusterIPstring""
service.labelsobject{}
service.loadBalancerIPstring""
service.loadBalancerSourceRangeslist[]
service.portint80
service.typestring"ClusterIP"
serviceAccount.annotationsobject{}
serviceAccount.createbooltrue
serviceAccount.namestring""
serviceMonitor.annotationsobject{}Assign additional Annotations
serviceMonitor.enabledboolfalseEnable ServiceMonitor
serviceMonitor.endpoint.intervalstring"15s"Set the scrape interval for the endpoint of the serviceMonitor
serviceMonitor.endpoint.metricRelabelingslist[]Set metricRelabelings for the endpoint of the serviceMonitor
serviceMonitor.endpoint.relabelingslist[]Set relabelings for the endpoint of the serviceMonitor
serviceMonitor.endpoint.scrapeTimeoutstring""Set the scrape timeout for the endpoint of the serviceMonitor
serviceMonitor.jobLabelstring"app.kubernetes.io/name"Set JobLabel for the serviceMonitor
serviceMonitor.labelsobject{}Assign additional labels according to Prometheus' serviceMonitorSelector matching labels
serviceMonitor.matchLabelsobject{}Change matching labels
serviceMonitor.namespacestring""Install the ServiceMonitor into a different Namespace, as the monitoring stack one (default: the release one)
serviceMonitor.targetLabelslist[]Set targetLabels for the serviceMonitor
tolerationslist[]

Autogenerated from chart metadata using helm-docs v1.11.0

Deploy acceleration with OpenTenant

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