Giter Club home page Giter Club logo

go-ws-kafka's Introduction

Go Websocket kafka

Deployment on docker

  • docker build -t go-ws-kafka .
  • docker build --no-cache -t go-ws-kafka .
  • docker run -p 8090:8090 go-ws-kafka #Foreground
  • docker run -d -p 8090:8090 go-ws-kafka #Background

Deployment with docker-compose

  • docker-compose up -d #Start
  • docker-compose down #Stop and remove

IDE config

  • Enable "Go mod integration"

Push to docker hub

  • docker images
  • docker tag go-ws-kafka adel5210/go-websocket-kafka-backend:1.0.2
  • docker push adel5210/go-websocket-kafka-backend:1.0.2

Kube setup attempt 1

  • kubectl create -f kube-go-ws-kafka-pod.yml
  • kubectl get pods
  • kubectl get svc

Kube setup attempt 2

  • kubectl run go-ws-kafka --image=adel5210/go-websocket-kafka-backend:1.0.1 --port=8090
  • kubectl port-forward go-ws-kafka 8090:8090

Kube setup attempt 3

  • kubectl create deployment go-ws-kafka --image=adel5210/go-websocket-kafka-backend:1.0.1
  • kubectl expose deployment go-ws-kafka --type=NodePort --port=8090
  • kubectl get svc
  • minikube service go-ws-kafka --url

Kube setup attempt 4

  • kubectl apply -f k8s/deployment.yaml

Kube deploy as service

  • kubectl apply -f k8s/service.yaml

Others

  • kubectl get nodes -o wide
  • kubectl get svc go-ws-kafka-ui-service

go-ws-kafka's People

Contributors

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