GithubHelp home page GithubHelp logo

waldofe / microgram-fe Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 144 KB

FE served through NGINX for the microgram project running on Kubernetes.

Dockerfile 0.94% JavaScript 3.25% TypeScript 78.58% HTML 10.02% SCSS 6.93% Shell 0.28%

microgram-fe's Introduction

microgram-fe

Frontend service for the microgram project.

Development

Run locally:

docker build --build-arg mode=dev -t microgram-fe .
docker run -p 4200:80 microgram-fe:latest

Kubernetes example

The deployment.yml. The infrastructure bit creation is up to the platform being used (e.g. AWS EKS):

apiVersion: apps/v1
kind: Deployment
metadata:
  name: microgram-fe
spec:
  replicas: 1
  selector:
    matchLabels:
      app: microgram-fe
  template:
    metadata:
      labels:
        app: microgram-fe
    spec:
      containers:
        - name: microgram-fe-app
          image: olsfer/microgram-fe:latest
          imagePullPolicy: Always
          ports:
            - name: web
              containerPort: 8080
              protocol: TCP

The service.yml with a simple load balancer. The infrastructure bit creation is up to the platform being used (e.g. AWS ELB).

apiVersion: v1
kind: Service
metadata:
  name: microgram-fe-svc
spec:
  type: LoadBalancer
  selector:
    app: microgram-fe
  ports:
    - protocol: TCP
      port: 80

Apply both to the Kubernetes cluster:

kubectl apply -f deployment.yml
kubectl apply -f load_balancer.yml

› kubectl get pods
NAME                              READY   STATUS    RESTARTS   AGE
microgram-fe-5f6fc7b9cf-qtz5n     1/1     Running   0          17m

microgram-fe's People

Contributors

waldofe 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.