Skip to content

Latest commit

 

History

History
81 lines (67 loc) · 1.49 KB

1-deployment.md

File metadata and controls

81 lines (67 loc) · 1.49 KB

Deployment of NBA v2

Secrets

First create the secrets from the secrets-template directory

kubectl create -f -R  sercrets/

Elasticsearch

vim elasticsearch/es-data-pv.yaml # check if hostnames are matching
kubectl create -f elasticsearch/es-discovery-svc.yaml
kubectl create -f elasticsearch/es-data-pv.yaml
kubectl get pv
kubectl create -f elasticsearch/es-data-stateful.yaml
kubectl create -f elasticsearch/es-data-svc.yaml
kubectl get pods -w

Fanout

kubectl create -f api-ingress/

Api

kubectl create -f api/
kubectl get pods -w
kubectl scale deployment/nba-api --replicas=2

Purl

kubectl create -f purl/
kubectl get pods -w
kubectl scale deployment/nba-purl --replicas=2

Scratchpad

kubectl create -f scratchpad/
kubectl get pods -w
kubectl scale deployment/nba-scratchpad --replicas=2

Direct query

kubectl create -f nba-direct-api/
kubectl get pods -w

Docs

kubectl create -f docs/
kubectl get pods -w
kubectl scale deployment/nba-docs --replicas=2
kubectl scale deployment/nba-swagger --replicas=2

Entrypoint

kubectl create -f nba-entrypoint/
kubectl get pods -w
kubectl scale deployment/nba-entrypoint--replicas=2

Docs redirect

kubectl create -f docs-redirect/
kubectl get pods -w
kubectl scale deployment/nba-docs-redirect --replicas=2

Kibana (not needed)

kubectl create -f kibana/
kubectl get svc for kibanan port nr