Follow these steps
To create a Kubernetes 1.5 cluster, run the following command:
gcloud container clusters create "test-cluster"
Then, authenticate into the cluster:
gcloud container clusters get-credentials test-cluster
To set up MangoDB replica set
git clone https://github.com/thesandlord/mongo-k8s-sidecar.git
cd /mongo-k8s-sidecar/example/StatefulSet/
To create the MongoDB replica set, run these two commands:
kubectl apply -f googlecloud\_ssd.yaml
kubectl apply -f mongo-statefulset.yaml