Skip to content

Private nginx webserver serving content from GCS (gcsfuse) or S3 (s3fs-fuse)

License

Notifications You must be signed in to change notification settings

multilayer-io/bucky

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Bucky

Nginx webserver serving content from GCS (gcsfuse) or S3 (s3fs-fuse). Bucky connects nginx containers with private buckets (gcs and s3) to host them private or public in your own VPC/network.

At Multilayer we invest in Open Source, and most of our solutions are based on projects such as Kubernetes, Airflow, Snowplow, dbt, elementary-data, Airbyte, to name a few. Bucky was created to host elementary-data reports for our internal dbt-core project.

Note: the project was inspired by k8s-storage-buckets

How to deploy bucky in GKE(Google Kubernetes Engine)?

You will need the following components:

  • Deployment
  • Service
  • Ingress
  • Service account (IAM)
  • gcs bucket

Note: if you don't know how to setup all the components follow this example

apiVersion: apps/v1
kind: Deployment
metadata:
  name: bucky
  namespace: bucky
spec:
  replicas: 1
  selector:
    matchLabels:
      app: bucky
  template:
    metadata:
      labels:
        app: bucky
    spec:
      serviceAccount: bucky
      volumes:
        - name: nginx-content
          emptyDir: {}  
      containers:
      - name: "nginx"
        image: multilayerlabs/bucky:gcsfuse-latest
        securityContext:
          privileged: true
          capabilities:
            add:
              - SYS_ADMIN
        ports:
          - name: http
            containerPort: 8080
        lifecycle:
            preStop:
              exec:
                command: ["/usr/sbin/nginx","-s","quit","&&","fusermount", "-u", "/content"]
        env:
          - name: GCS_BUCKET_NAME
            value: ""

About

Private nginx webserver serving content from GCS (gcsfuse) or S3 (s3fs-fuse)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published