Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 859 Bytes

README.md

File metadata and controls

31 lines (20 loc) · 859 Bytes

Containerize

$ cd Spring_Couchbase_k8s

# Start your cluster with a single master, worker service under RC, 
# and a single java Spring app client.
#
$ ./couchbase_cluster.sh

# Scale your worker app 
#
$ kubectl scale rc couchbase-worker-rc --replicas=5

# Viewing k8s cluster via cluster : minikube dashboard

# Access client service : 
$ CLIENT_SERVICE=$(minikube service --url client-service)

# Get result : 
$ curl http://$CLIENT_SERVICE/couchbase-javaee/resources/airline