burkaydurdu / micro-service

Micro Service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Micro Service

Minikube start

minikube start --profile=custom

Bind Minikube to docker

If you exec docker command on local, the command will run in the minikube environment.

// Fish Shell
eval (minikube -p custom docker-env)
// Bash Shell
eval $(minikube -p custom docker-env)

Minikube SSH

minikube -p custom ssh

List of docker image in minikube

docker images

Skaffold Install

brew install skaffold

Skaffold Init

skaffold init --generate-manifests

Install K9s and Run

brew install k9s
k9s

Run Skaffold on Dev

skaffold dev

Install Hazelcast with helm

helm repo add hazelcast https://hazelcast-charts.s3.amazonaws.com/
helm repo update
helm install hz-hazelcast hazelcast/hazelcast --set cluster.memberCount=1 --set mancenter.enabled=false

K9s Keymap

  • d => describe
  • Shift + f => Port forward

Requests

curl -v http://localhost:3001/orders response:

> GET /orders HTTP/1.1
> Host: localhost:3001
> User-Agent: curl/7.64.1
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Sat, 22 Jan 2022 15:49:16 GMT
< Content-Length: 62
< Content-Type: text/plain; charset=utf-8
<
* Connection #0 to host localhost left intact
  I send create payment request and got back {"message": "paid"}* Closing connection 0

🎉 Thank you! Hüseyin Babal

About

Micro Service


Languages

Language:Go 100.0%