Merge branch 'master' of github.com:tus/tusd

This commit is contained in:
Marius 2021-07-01 18:49:42 +02:00
commit 5be2afa2f8
3 changed files with 20 additions and 3 deletions

View File

@ -1,4 +1,4 @@
FROM golang:1.12-alpine AS builder FROM golang:1.13-alpine AS builder
# Copy in the git repo from the build context # Copy in the git repo from the build context
COPY . /go/src/github.com/tus/tusd/ COPY . /go/src/github.com/tus/tusd/

View File

@ -7,8 +7,8 @@ import (
"github.com/tus/tusd/pkg/handler" "github.com/tus/tusd/pkg/handler"
) )
var stdout = log.New(os.Stdout, "[tusd] ", log.Ldate|log.Ltime) var stdout = log.New(os.Stdout, "[tusd] ", log.LstdFlags|log.Lmicroseconds)
var stderr = log.New(os.Stderr, "[tusd] ", log.Ldate|log.Ltime) var stderr = log.New(os.Stderr, "[tusd] ", log.LstdFlags|log.Lmicroseconds)
func logEv(logOutput *log.Logger, eventName string, details ...string) { func logEv(logOutput *log.Logger, eventName string, details ...string) {
handler.LogEvent(logOutput, eventName, details...) handler.LogEvent(logOutput, eventName, details...)

View File

@ -20,3 +20,20 @@ cd tusd
go build -o tusd cmd/tusd/main.go go build -o tusd cmd/tusd/main.go
``` ```
## Kubernetes installation
A Helm chart for installing Tusd on Kubernetes is available [here](https://github.com/sagikazarmark/helm-charts/tree/master/charts/tusd).
You can install it by running the following commands:
```bash
helm repo add skm https://charts.sagikazarmark.dev
helm install --generate-name --wait skm/tusd
```
Minimum requirements:
- Helm 3+
- Kubernetes 1.16+
Check out the available [values](https://github.com/sagikazarmark/helm-charts/tree/master/charts/tusd#values) for customizing the installation.