ropa1998 / infra-dstr

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

infra-dstr

You should define where would this run. Our recommendation, use minikube to test it locally.

Dashboard

Use this to monitor the status of the services more comfortably

minikube dashboard

Installation steps

Helm Services

First you should install both memcached and etcd from the Bitnami Helm Chart

The etcd service should be called etcd and the memcached service my-memcached, so the GeoService can work properly

ConfigMap

kubectl apply -f configmap.yaml

Bitnami Chart

helm repo add bitnami https://charts.bitnami.com/bitnami

etcd

helm install etcd bitnami/etcd --set auth.rbac.enabled=false

memcached

helm install my-memcached bitnami/memcached

Our services

Standing from this project's infra dir run the next commands

GeoService

kubectl apply -f geo-service-deployment.yaml

AuthService

kubectl apply -f auth-service-deployment.yaml

StockService

The stock service is the one we are packaging into a helm package. To use it go to the repo and download the latest package, which should be a .tgz file.

Then run the next command:

helm install stock ./<path-to-file>/<file-name>.tgz

Or use

kubectl apply -f stock-service-deployment.yaml

Loadbalancer

kubectl apply -f loadbalancer-service-deployment.yaml

Exposing the service

minikube service --url loadbalancer

This will assing the loadbalancer service an external IP and port which you can test

Linkerd

Follow this tutorial

Then use this command

kubectl get deploy -o yaml | linkerd inject - | kubectl apply -f -

About