Coder Social home page Coder Social logo

kind-tf-k8s-minio's Introduction

Task:

  1. Setup two clusters locally using Kind and Terraform
  2. Deploy minio object storages in one cluster
  3. Deploy an application which fetches images from a bucket in minio running in another cluster and display it on the frontend.

Pre-Requisites:

Required Tools:
  • Kind
  • Terraform
  • Docker
  • Kubernetes

Steps to deploy locally:

  1. Clone the repo

  2. Change Directory to infra and run:

    • terraform fmt
    • terraform init
    • terraform plan
    • terraform apply This should create two kind clusters with names "kind-infrastructure" and "kind-application"
  3. Goto root directory and run command to change context to kind-infrastructure

    • kubectl config use-context kind-infrastructure
  4. Change Directory to metallb and run:

    • kubectl apply -f metallb-native.yaml
    • kubectl wait --namespace metallb-system
      --for=condition=ready pod
      --selector=app=metallb
      --timeout=90s
    • kubectl apply -f metallb-config.yaml
  5. Goto Root Directory again and now deploy minio by running command:

    • kubectl apply -f minio-deployment.yaml
  6. List out the svc in minio namespace, and note down the External IP, and update the jw-scaler-deplpyment.yaml line 22 and 33 with that IP:9000

  7. We need to change the context to another cluster now and for that run command:

    • kubectl config use-context kind-application
  8. Now, we can go ahead and deploy the application which would create the bucket in minio and then displays those images in our frontend, for that run command:

    • kubectl apply -f jw-scaler-deployment.yaml
  9. Now port forward your jw-scaler service to desired port and access it on your localhost.

kind-tf-k8s-minio's People

Contributors

samaysinghbisht avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.