Skip to content

Multiple s3gw Instances in one Kubernetes Cluster

Moritz Röhrich edited this page Apr 5, 2023 · 3 revisions

Overview of the highlevel architecture of a two-node Kubernetes cluster with two instances of the s3gw, two bucktes and its own volume each:

---
title: s3gw Architecture
---
flowchart LR;


  subgraph cluster [Kubernetes]
    direction TB;

    subgraph node1[Node 1]
      direction LR;

      subgraph s3gw1[s3gw 1]
        direction TB;

        bucket1;
        bucket2;
      end

      volume1[Longhorn Volume 1];

      subgraph storage1
        direction TB;

        disk1;
        disk2;
      end
    end

    subgraph node2[Node 2]
      direction LR;

      subgraph s3gw2[s3gw 2]
        direction TB;

        bucket3;
        bucket4;
      end

      volume2[Longhorn Volume 2];

      subgraph storage2
        direction TB;

        disk3;
        disk4;
      end
    end

    subgraph ingress[Ingress]
      subgraph ingress1[s3gw 1 ingress]
        direction TB;

        i1["bucket{1,2}.s3gw1.endpoint"];
      end

      subgraph ingress2[s3gw 2 ingress]
        direction TB;
        i2["bucket{3,4}.s3gw2.endpoint"];
      end
    end
  end

  c1[S3 client];

  c1 --> i1;
  i1 --> bucket1;
  i1 --> bucket2;

  c1 --> i2;
  i2 --> bucket3;
  i2 --> bucket4;

  s3gw1 --> volume1 --> disk1 & disk3;
  s3gw2 --> volume2 --> disk2 & disk4;
Loading