cloud-barista / cb-operator

The Operator for Cloud-Barista system
Apache License 2.0
6 stars 6 forks source link

Open multiple ports for Spider, Tumblebug, and Dragonfly in Helm chart #52

Closed jihoon-seo closed 4 years ago

jihoon-seo commented 4 years ago

Ports

Container & Pod ports K8s Svc ports (K8s Ingress ...)
CB-Spider REST 1024 ClusterIP: 1024
NodePort: 31024
CB-Spider gRPC 50251 ClusterIP: 50251
NodePort: 30251
CB-Tumblebug REST 1323 ClusterIP: 1323
NodePort: 31323
CB-Tumblebug gRPC 50252 ClusterIP: 50252
NodePort: 30252
CB-Dragonfly REST 9090 ClusterIP: 9090
NodePort: 30090
CB-Dragonfly gRPC 50254 (TBD) ClusterIP: 50254
NodePort: 30254
CB-Dragonfly monitor 8094/udp ClusterIP: 8094
NodePort: 30094
cb-webtool websvr 1234 ClusterIP: 1234
NodePort: 31234
cb-restapigw endpoint 8000 ClusterIP: 8000
NodePort: 30080
Docker Registry 5000 ClusterIP: 5000
NodePort: 30500

❯ kubectl get svc -n cloud-barista | grep spider 
cb-spider                       NodePort    10.107.66.232    <none>        1024:31024/TCP,50251:30251/TCP
❯ kubectl get svc -n cloud-barista | grep tumblebug
cb-tumblebug                    NodePort    10.110.237.43    <none>        1323:31323/TCP,50252:30252/TCP
❯ kubectl get svc -n cloud-barista | grep dragonfly
cb-dragonfly                    NodePort    10.106.120.7     <none>        9090:30090/TCP,50254:30254/TCP,8094:30094/UDP   14m
cb-dragonfly-etcd               ClusterIP   10.97.125.86     <none>        2379/TCP,2380/TCP                               14m
cb-dragonfly-etcd-headless      ClusterIP   None             <none>        2379/TCP,2380/TCP                               14m
cb-dragonfly-influxdb           ClusterIP   10.109.210.247   <none>        8086/TCP,8088/TCP                               14m

Change Tumblebug's Spider-calling method from REST to gRPC

❯ ./create-sshKey.sh aws 1 jhseo
####################################################################
## 5. sshKey: Create
####################################################################
[Test for AWS]
{
   "message" : "rpc error: code = Internal desc =  error while calling CCMService.CreateKey() method: aws-us-east-1: does not exist! "
}

(Can see that Tumblebug calls Spider with gRPC.)