s3-proxy
by oxyno-zeta
A Helm chart for Kubernetes to deploy S3-Proxy
About this chart
s3-proxy
s3-proxy is a S3 proxy with multi bucket support, OIDC authentication, basic auth, ...
TL;DR;
$ helm repo add oxynozeta-stable https://oxyno-zeta.github.io/helm-charts-v2/
$ helm install oxynozeta-stable/s3-proxy
Introduction
This chart bootstraps a s3-proxy deployment on a Kubernetes cluster using the Helm package manager.
Installing the Chart
To install the chart with the release name my-release:
$ helm install oxynozeta-stable/s3-proxy --name my-release
The command deploys s3-proxy on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.
Uninstalling the Chart
To uninstall/delete the my-release deployment:
$ helm delete my-release
The command removes all the Kubernetes components associated with the chart and deletes the release.
Configuration
The following table lists the configurable parameters of the s3-proxy chart and their default values.
| Parameter | Description | Default |
|---|---|---|
replicaCount | Desired number of pods | 1 |
image.repository | Container image name (Including repository name if not hub.docker.com). | oxynozeta/s3-proxy |
image.pullPolicy | Container pull policy. | IfNotPresent |
image.tag | Container image tag. | 5.3.0 |
nameOverride | Name override | "" |
fullnameOverride | Fullname override | "" |
serviceAccount.create | Specifies whether a service account should be created | true |
serviceAccount.name | Service account name created if create is true or service account name to be linked. If empty and create at true, this will be generated. | "" |
serviceAccount.annotations | Additional annotations to apply to the pod. | {} |
service.annotations | Annotations to add to service | {} |
service.clusterIP | IP address to assign to service | "" |
service.externalIPs | Service external IP addresses | [] |
service.loadBalancerIP | IP address to assign to load balancer (if supported) | "" |
service.loadBalancerSourceRanges | List of IP CIDRs allowed access to load balancer (if supported) | [] |
service.port | Service port to expose | 80 |
service.type | Type of service to create | ClusterIP |
ingress.enabled | Enables Ingress | false |
ingress.annotations | Ingress annotations | {} |
ingress.hosts | Ingress accepted hostnames | [] |
ingress.tls | Ingress TLS configuration | [] |
customTemplates | S3 Proxy custom templates files (mounted in /proxy/custom-templates) | {} |
existingSecret | Existing secret (instead of secretFiles) | "" |
secretFiles | Secret files for secrets declaration and usage (mounted in /proxy/secret-files) | {} |
env | Environment variables | {} |
envFrom | Environment variables from Secrets and ConfigMaps | [] |
configFiles | S3 proxy configuration files) | Example of configuration |
resources | CPU/Memory resource requests/limits. | {} |
sidecars | Sidecars definitions | [] |
nodeSelector | Node labels for pod assignment | {} |
tolerations | List of node taints to tolerate (requires Kubernetes >= 1.6) | [] |
affinity | List of affinities (requires Kubernetes >=1.6) | {} |
livenessProbe | Liveness probe settings for logstash container | (see values.yaml) |
readinessProbe | Readiness probe settings for logstash container | (see values.yaml) |
prometheus.serviceMonitor.enabled | If true, a ServiceMonitor CRD is created for a prometheus operator | false |
prometheus.serviceMonitor.namespace | If set, the ServiceMonitor will be installed in a different namespace | "" |
prometheus.serviceMonitor.labels | Labels for prometheus operator | {} |
prometheus.serviceMonitor.interval | Interval at which metrics should be scraped | "" |
prometheus.serviceMonitor.scrapeTimeout | Timeout after which the scrape is ended | "" |
prometheus.serviceMonitor.scheme | Scheme to use for scraping | http |
prometheus.serviceMonitor.metricRelabelings | Metric relabelings | [] |
prometheus.serviceMonitor.relabelings | Relabelings | [] |
podAnnotations | Additional annotations to apply to the pod. | {} |
grafana.operator.enabled | If true, create a GrafanaDashboard custom resource using the CRD from grafana-operator. | false |
grafana.operator.namespace | If set, the GrafanaDashboard will be installed in a different namespace | "" |
grafana.operator.labels | Extra labels for selector | {} |
grafana.configmap.enabled | If true, create a ConfigMap resource compatible with the Grafana sidecar from kiwigrid/k8s-sidecar. | false |
grafana.configmap.namespace | If set, the ConfigMap will be installed in a different namespace | "" |
grafana.configmap.labels | Extra labels for selector | {} |
podDisruptionBudget.enabled | If true, create a pod disruption budget for prometheus pods. The created resource cannot be modified once created - it must be deleted to perform a change | false |
podDisruptionBudget.minAvailable | Minimum number / percentage of pods that should remain scheduled | 1 |
podDisruptionBudget.maxUnavailable | Maximum number / percentage of pods that may be made unavailable | "" |
podSecurityContext.fsGroup | Supplementary group ID | 1000 |
securityContext | Security context of the s3-proxy container | {} |
Deploy s3-proxy with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has s3-proxy 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the charts3-proxy is pinned at v2.29.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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