docker build -t ameydev/kv-svc:<tag-name>
Following resourses will be created.
kg-svc
Deploymentkg-svc
Serviceapp-ingress
Ingress
kubectl apply -f k8s/
In case the nginx ingress controller also needs to be installed.
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.1.0/deploy/static/provider/cloud/deploy.yaml
APP_URL=`kubectl get ing app-ingress --output="jsonpath={.status.loadBalancer.ingress[0].ip}"`
# Check app metrics
curl $APP_URL/metrics
# get dummy data
curl -v $APP_URL/get/abc-1