szurubooru-client

by my0n

Helm chartv0.3.1App 2.5Verified publisher

An unofficial helm chart for the szurubooru client.

About this chart

my0n/szurubooru-client

An unofficial helm chart for the szurubooru client.

This chart is not maintained by the upstream project and any issues with the chart should be raised here.

Example usage

Install the helm chart:

helm repo add my0n https://my0n.github.io/helm-charts
helm repo update
helm install szurubooru-client my0n/szurubooru-client -f values.yaml

Sample values.yaml given below; see values.yaml for more details.

# values.yaml
backend:
  host: szurubooru-server.default.svc
  maxFileSize: 1000M
persistence:
  existingClaim: szurubooru-server
ingress:
  enabled: true
  host: szurubooru.example.local

Values

KeyTypeDefaultDescription
affinityobject{}Defines affinity constraint rules. Read more about affinity here.
autoscaling.enabledboolfalseEnable the horizontal pod autoscaler.
autoscaling.maxReplicasint100Max replicas for the horizontal pod autoscaler.
autoscaling.minReplicasint1Min replicas for the horiziontal pod autoscaler.
autoscaling.targetCPUUtilizationPercentageint80Target CPU utilization for the horizontal pod autoscaler.
backend.baseUrlstring"/"Path for the szurubooru-server service. Sets BASE_URL on the client pod.
backend.hoststring"localhost"Host for the szurubooru-server service. Sets BACKEND_HOST on the client pod.
backend.maxFileSizestring"1073741824"Max file size for the szurubooru-server service. Accepts nginx values. Read more about valid nginx configuration syntax here.
backend.portint6666Port for the szurubooru-server service.
fullnameOverridestring""Override for full name of generated resources.
image.pullPolicystring"IfNotPresent"Image pull policy.
image.repositorystring"szurubooru/client"Image repository.
image.tagstring""Image tag.
imagePullSecretslist[]Secrets for pulling an image.
ingress.annotationsobject{}Provide additional ingress annotations if needed.
ingress.enabledboolfalseEnables or disables the ingress.
ingress.hoststring"chart-example.local"Host address.
ingress.pathstring"/"Path.
ingress.pathTypestring"ImplementationSpecific"Ignored if not kubeVersion >= 1.18-0
ingress.tlslist[]Configure TLS for the ingress.
nameOverridestring""Override for name of generated resources.
nodeSelectorobject{}Defines node selection constraints. Read more about nodeSelector here.
persistence.existingClaimstring""Use an existing Persistent Volume Claim. This should be the same one used by szurubooru-server; the two share this volume for images and thumbnails.
podAnnotationsobject{}Annotations for the server pod.
podSecurityContextobject{}Pod security context.
replicaCountint1Number of desired pods.
resourcesobject{}Set the resource limits/requests for the pod.
securityContextobject{}Security context.
service.portint80The port for the service.
service.typestring"ClusterIP"The type of service.
serviceAccount.annotationsobject{}Annotations to add to the service account.
serviceAccount.createbooltrueSpecifies whether a service account should be created.
serviceAccount.namestring""The name of the service account to use. If not set and serviceAccount.create is true, a name is generated using the fullname template.
tolerationslist[]Specify taint tolerations. Read more about tolerations here.

Deploy szurubooru-client with OpenTenant

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