Hi All,
I am trying to use 'coreos/etcd' product in one of my projects.
What I am using :
1 - Google Cloud
2 - Google Cloud Hosted Kubernetes
3 - Coreos/etcd
4 - Spring boot web application
Spring boot application will call internally Coreos/etcd cluster/LB.
Steps what I did:
1 - I configured Kubernetes with 1 cluster and 3 nodes.
kubectl expose deployment etcd --type=LoadBalancer
3 - After run above, I checked PODs in Google Cloud:
*********@kubernetes-app-194818:~/gopath_bkp/bin$ kubectl get pods
NAME READY STATUS RESTARTS AGE
etcd-1508109573-2rw85 1/1 Running 0 4m
etcd-1508109573-dm0w9 1/1 Running 0 4m
etcd-1508109573-vkskm 1/1 Running 0 4m
hello-server-732511812-glgqt 1/1 Running 0 1h
4 - Running Services:
*******@kubernetes-app-194818:~/gopath_bkp/bin$ kubectl get services
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
etcd LoadBalancer 10.31.248.57 104.198.225.37 2379:31022/TCP 4m
hello-server LoadBalancer 10.31.240.232 35.192.213.33 8080:32686/TCP 1h
kubernetes ClusterIP 10.31.240.1 <none> 443/TCP 3d
5: ETCD YAML file
apiVersion: v1
kind: Service
metadata:
creationTimestamp: 2018-02-13T22:54:42Z
labels:
run: etcd
name: etcd
namespace: default
resourceVersion: "359365"
selfLink: /api/v1/namespaces/default/services/etcd
uid: e0e9981e-1110-11e8-b62d-42010a800084
spec:
clusterIP: 10.31.248.57
externalTrafficPolicy: Cluster
ports:
- nodePort: 31022
port: 2379
protocol: TCP
targetPort: 2379
selector:
run: etcd
sessionAffinity: None
type: LoadBalancer
status:
loadBalancer:
ingress:
- ip: 104.198.225.37
Can you please help and let me know the issue and how I can fix this?
Thanks,
Mohammad Farooqui