From ed85c526cb61e139e26c9a6869f6057fe746c8c0 Mon Sep 17 00:00:00 2001 From: "Ifedapo .A. Olarewaju" Date: Fri, 11 Sep 2020 19:47:45 +0100 Subject: [PATCH] build: remove k8s related build (#426) * build: remove k8s related build * build: there's more --- .github/workflows/main.yml | 9 +---- infra/console.sh | 17 -------- infra/kube/tusd-kube.yaml | 82 -------------------------------------- 3 files changed, 1 insertion(+), 107 deletions(-) delete mode 100755 infra/console.sh delete mode 100644 infra/kube/tusd-kube.yaml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7402633..aa064f9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -57,11 +57,4 @@ jobs: - name: Build and push docker image run: | docker build -t tusproject/tusd:$GITHUB_SHA . - docker push tusproject/tusd:$GITHUB_SHA - - name: Deploy to cluster - uses: steebchen/kubectl@master - env: - KUBE_CONFIG_DATA: | - ${{ secrets.KUBECONFIG }} - with: - args: set image --record deployment/tusd tusd=tusproject/tusd:$GITHUB_SHA -n tus + docker push tusproject/tusd:$GITHUB_SHA diff --git a/infra/console.sh b/infra/console.sh deleted file mode 100755 index df88705..0000000 --- a/infra/console.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash -# Copyright (c) 2018, Transloadit Ltd. -# Authors: -# - Kevin van Zonneveld - -set -o pipefail -set -o errexit -set -o nounset -# set -o xtrace - -# # Set magic variables for current FILE & DIR -# __dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -# __file="${__dir}/$(basename "${0}")" -# __base="$(basename ${__file})" -# __root="$(cd "$(dirname "${__dir}")" && pwd)" - -kubectl exec -it $(kubectl get pods --namespace tus -o go-template --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}') --namespace tus -- /bin/sh \ No newline at end of file diff --git a/infra/kube/tusd-kube.yaml b/infra/kube/tusd-kube.yaml deleted file mode 100644 index 17604a1..0000000 --- a/infra/kube/tusd-kube.yaml +++ /dev/null @@ -1,82 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: tusd - namespace: tus -spec: - replicas: 1 - template: - metadata: - labels: - app: tusd - spec: - containers: - - image: docker.io/tusproject/tusd:latest - imagePullPolicy: Always - args: ["-s3-bucket","tusdtest.transloadit.com","-port=8080","-behind-proxy","-max-size=20000000000","-timeout=6000"] - name: tusd - resources: - limits: - memory: "1Gi" - requests: - memory: "1Gi" - ports: - - name: tusd-web - containerPort: 8080 - envFrom: - - secretRef: - name: tusd-env ---- -apiVersion: v1 -kind: Service -metadata: - name: tusd - namespace: tus -spec: - ports: - - name: tusd-web - port: 80 - targetPort: 8080 - protocol: TCP - selector: - app: tusd ---- -apiVersion: networking.k8s.io/v1beta1 -kind: Ingress -metadata: - name: tusd - namespace: tus - annotations: - certmanager.k8s.io/cluster-issuer: "letsencrypt-prod" - certmanager.k8s.io/acme-challenge-type: "http01" - kubernetes.io/tls-acme: "true" - kubernetes.io/ingress.class: "nginx" - nginx.ingress.kubernetes.io/proxy-body-size: 0m - nginx.ingress.kubernetes.io/proxy-connect-timeout: "300" - nginx.ingress.kubernetes.io/proxy-read-timeout: "300" - nginx.ingress.kubernetes.io/proxy-request-buffering: "off" - nginx.ingress.kubernetes.io/proxy-send-timeout: "300" - nginx.ingress.kubernetes.io/ssl-redirect: "false" -spec: - tls: - - hosts: - - tusd.tus.io - secretName: tusd-tls - - hosts: - - master.tus.io - secretName: master-tls - rules: - - host: tusd.tus.io - http: - paths: - - path: / - backend: - serviceName: tusd - servicePort: 80 - - host: master.tus.io - http: - paths: - - path: / - backend: - serviceName: tusd - servicePort: 80