I am not sure why this happening. I used a NodePort instead of the LoadBalance port to get around setting up an ingress. Maybe I still have too?
When i ran:
kubectl exec -it yb-tserver-0 /home/yugabyte/bin/cqlsh
Connection error: (‘Unable to connect to any servers’, {‘127.0.0.1’: error(111, “Tried connecting to [(‘127.0.0.1’, 9042)]. Last error: Connection refused”)})
command terminated with exit code 1
this is on bare-metal
indent preformatted text by 4 spaces
kubectl describe po yb-tserver-0
Name: yb-tserver-0
Namespace: default
Node: fleet-94b9c3-k8s-worker-0/10.4.222.185
Start Time: Tue, 11 Sep 2018 23:35:05 -0400
Labels: app=yb-tserver
controller-revision-hash=yb-tserver-578cd855
statefulset.kubernetes.io/pod-name=yb-tserver-0
Annotations:
Status: Running
IP: 10.99.1.251
Controlled By: StatefulSet/yb-tserver
Containers:
yb-tserver:
Container ID: docker://ada7f909a93f0604cccd90d7fb69db3886eb257115a28308dcc1e2299dfdb711
Image: yugabytedb/yugabyte:latest
Image ID: docker-pullable://docker.io/yugabytedb/yugabyte@sha256:8804b7f2bcae983b30b4762b2ba2c6e47db017b097aa24207c8c279c71d32306
Ports: 9000/TCP, 9100/TCP, 9042/TCP, 6379/TCP
Host Ports: 0/TCP, 0/TCP, 0/TCP, 0/TCP
Command:
/home/yugabyte/bin/yb-tserver
–fs_data_dirs=/mnt/data0
–tserver_master_addrs=yb-masters.default.svc.cluster.local:7100
–tserver_master_replication_factor=3
State: Running
Started: Tue, 11 Sep 2018 23:35:47 -0400
Ready: True
Restart Count: 0
Environment:
Mounts:
/mnt/data0 from datadir (rw)
/var/run/secrets/kubernetes.io/serviceaccount from default-token-twj2x (ro)
Conditions:
Type Status
Initialized True
Ready True
PodScheduled True
Volumes:
datadir:
Type: PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
ClaimName: datadir-yb-tserver-0
ReadOnly: false
default-token-twj2x:
Type: Secret (a volume populated by a Secret)
SecretName: default-token-twj2x
Optional: false
QoS Class: BestEffort
Node-Selectors:
Tolerations:
Events:
Type Reason Age From Message
Normal Scheduled 12m default-scheduler Successfully assigned yb-tserver-0 to fleet-94b9c3-k8s-worker-0
Normal SuccessfulAttachVolume 12m attachdetach-controller AttachVolume.Attach succeeded for volume “pvc-f2937ba4-b088-11e8-8d59-506b8d2df073”
Normal SuccessfulMountVolume 12m kubelet, fleet-94b9c3-k8s-worker-0 MountVolume.SetUp succeeded for volume “default-token-twj2x”
Normal SuccessfulMountVolume 12m kubelet, fleet-94b9c3-k8s-worker-0 MountVolume.SetUp succeeded for volume “pvc-f2937ba4-b088-11e8-8d59-506b8d2df073”
Normal Pulling 12m kubelet, fleet-94b9c3-k8s-worker-0 pulling image “yugabytedb/yugabyte:latest”
Normal Pulled 12m kubelet, fleet-94b9c3-k8s-worker-0 Successfully pulled image “yugabytedb/yugabyte:latest”
Normal Created 12m kubelet, fleet-94b9c3-k8s-worker-0 Created container
Normal Started 12m kubelet, fleet-94b9c3-k8s-worker-0 Started container
indent preformatted text by 4 spaces