Hello,
I create the kind k8s cluster with this yaml:
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
extraPortMappings:- containerPort: 32001
hostPort: 32001
extraMounts:- hostPath: /tmp
containerPath: /host
- hostPath: /tmp
- containerPort: 32001
And the s2 cluster with this one:
сat sdb-cluster.yaml
apiVersion: memsql.com/v1alpha1
kind: MemsqlCluster
metadata:
name: sdb-cluster
spec:
license: mylic
adminHashedPassword: mypswd
nodeImage:
repository: singlestore/node
tag: latest
redundancyLevel: 1
serviceSpec:
type: “NodePort”
nodeport: 32001
#targetport: 3306
…
Pods are there:
kubectl get pods
NAME READY STATUS RESTARTS AGE
node-sdb-cluster-leaf-ag1-0 1/1 Running 0 5m56s
node-sdb-cluster-master-0 2/2 Running 0 6m9s
sdb-operator-d788854d8-t87cb 1/1 Running 0 7m58s
Statefulsets are there too:
kubectl get statefulsets
NAME READY AGE
node-sdb-cluster-leaf-ag1 1/1 11h
node-sdb-cluster-master 1/1 11h
The deployment summary:
kubectl describe deployment sdb-operator
Name: sdb-operator
…
Conditions:
Type Status Reason
Available True MinimumReplicasAvailable
Progressing True NewReplicaSetAvailable
OldReplicaSets:
NewReplicaSet: sdb-operator-d788854d8 (1/1 replicas created)
Events:
The output for this I’ll attach to the post if possible:
kubectl logs deploy/sdb-operator
Finally, I do not see Nodeport at the requested port 32001:
kubectl get services --all-namespaces
NAMESPACE NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
default kubernetes ClusterIP 10.96.0.1 443/TCP 11m
default sdb-operator ClusterIP 10.96.252.232 9090/TCP,6060/TCP 6m41s
default svc-sdb-cluster ClusterIP None 3306/TCP 6m40s
default svc-sdb-cluster-ddl NodePort 10.96.160.15 3306:31640/TCP 6m40s
kube-system kube-dns ClusterIP 10.96.0.10 53/UDP,53/TCP,9153/TCP 11m
Port 31640 is not configured on host and i can’t connect to s2 cluster:
netstat atupn | grep 31640
What am I doing wrong? Or is it the expected / known behavior on kind?
Thanks in advance.