[root@p47022v nebula]# docker run --rm -ti --entrypoint=/bin/sh vesoft/nebula-console:v2-nightly
/ # nebula-console -addr 10.217.61.189 -port 31559 -u root -p vesoft
2021/03/03 09:26:16 [INFO] connection pool is initialized successfully
2021/03/03 09:26:16 Fail to create a new session from connection pool, Failed to open transport, error: dial tcp 10.217.61.189:31559: connect: connection refused
panic: Fail to create a new session from connection pool, Failed to open transport, error: dial tcp 10.217.61.189:31559: connect: connection refused
goroutine 1 [running]:
log.Panicf(0x7ad9da, 0x35, 0xc0000c1eb8, 0x1, 0x1)
/usr/local/go/src/log/log.go:345 +0xc0
main.main()
/usr/src/main.go:337 +0x89a
各个pod的状态
[root@p47022v nebula]# kubectl get pods|grep nebula
nebula-graphd-6c54f8666f-6qcs8 1/1 Running 0 4m57s
nebula-graphd-6c54f8666f-jz56m 1/1 Running 0 4m57s
nebula-graphd-6c54f8666f-p2jpd 1/1 Running 0 4m57s
nebula-metad-0 1/1 Running 0 4m57s
nebula-metad-1 1/1 Running 0 4m57s
nebula-metad-2 1/1 Running 0 4m57s
nebula-storaged-0 1/1 Running 0 4m57s
nebula-storaged-1 1/1 Running 0 4m56s
nebula-storaged-2 1/1 Running 0 4m56s
server
[root@p47022v nebula]# kubectl get service |grep nebula
nebula-graphd NodePort 10.104.237.76 <none> 9669:31559/TCP,19669:32199/TCP,19670:30573/TCP 5m32s
nebula-metad ClusterIP None <none> 9559/TCP,19559/TCP,19560/TCP 5m32s
nebula-storaged ClusterIP None <none> 9779/TCP,19779/TCP,19780/TCP 5m32s
日志:
[root@p47022v templates]# kubectl logs nebula-graphd-6c54f8666f-6qcs8
+ exec /usr/local/nebula/bin/nebula-graphd --flagfile=/usr/local/nebula/etc/nebula-graphd.conf --v=4 --minloglevel=0 --daemonize=false
[root@p47022v templates]# kubectl logs nebula-metad-0
++ hostname
+ exec /usr/local/nebula/bin/nebula-metad --flagfile=/usr/local/nebula/etc/nebula-metad.conf --v=4 --minloglevel=0 --daemonize=false --local_ip=nebula-metad-0.nebula-metad.default.svc.cluster.local
[root@p47022v templates]# kubectl logs nebula-storaged-0
++ hostname
+ exec /usr/local/nebula/bin/nebula-storaged --flagfile=/usr/local/nebula/etc/nebula-storaged.conf --v=4 --minloglevel=0 --daemonize=false --local_ip=nebula-storaged-0.nebula-storaged.default.svc.cluster.local
pod 详情:
graphd
[root@p47022v templates]# kubectl describe pod nebula-graphd-6c54f8666f-6qcs8
Name: nebula-graphd-6c54f8666f-6qcs8
Namespace: default
Priority: 0
Node: p47022v.hulk.shbt.qihoo.net/10.217.61.189
Start Time: Wed, 03 Mar 2021 17:24:12 +0800
Labels: app.kubernetes.io/component=nebula-graphd
pod-template-hash=6c54f8666f
Annotations: <none>
Status: Running
IP: 10.244.0.83
Controlled By: ReplicaSet/nebula-graphd-6c54f8666f
Containers:
nebula-graphd:
Container ID: docker://8e3915dbac767744d0859095a4a80b05f5d7a55aced5f628911fc6f06ec1ba18
Image: vesoft/nebula-graphd:v2-nightly
Image ID: docker-pullable://vesoft/nebula-graphd@sha256:d894ea7192d022cb5fe7849a0dfcbb1405c5b55ab371a500c7c92bf793ec86cc
Ports: 9669/TCP, 19669/TCP, 19670/TCP
Host Ports: 0/TCP, 0/TCP, 0/TCP
Command:
/bin/bash
-ecx
Args:
exec /usr/local/nebula/bin/nebula-graphd --flagfile=/usr/local/nebula/etc/nebula-graphd.conf --v=4 --minloglevel=0 --daemonize=false
State: Running
Started: Wed, 03 Mar 2021 17:24:14 +0800
Ready: True
Restart Count: 0
Limits:
cpu: 1
memory: 1Gi
Requests:
cpu: 1
memory: 1Gi
Liveness: http-get http://:19669/status delay=30s timeout=10s period=10s #success=1 #failure=3
Environment:
USER: root
Mounts:
/etc/localtime from timezone (rw)
/usr/local/nebula/etc/ from config (rw)
/var/run/secrets/kubernetes.io/serviceaccount from nebula-token-h49fh (ro)
Conditions:
Type Status
Initialized True
Ready True
ContainersReady True
PodScheduled True
Volumes:
timezone:
Type: HostPath (bare host directory volume)
Path: /etc/localtime
HostPathType:
config:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: nebula-graphd
Optional: false
nebula-token-h49fh:
Type: Secret (a volume populated by a Secret)
SecretName: nebula-token-h49fh
Optional: false
QoS Class: Guaranteed
Node-Selectors: nebula=cloud
Tolerations: node.kubernetes.io/not-ready:NoExecute for 300s
node.kubernetes.io/unreachable:NoExecute for 300s
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 32m default-scheduler Successfully assigned default/nebula-graphd-6c54f8666f-6qcs8 to p47022v.hulk.shbt.qihoo.net
Normal Pulled 32m kubelet, p47022v.hulk.shbt.qihoo.net Container image "vesoft/nebula-graphd:v2-nightly" already present on machine
Normal Created 32m kubelet, p47022v.hulk.shbt.qihoo.net Created container nebula-graphd
Normal Started 32m kubelet, p47022v.hulk.shbt.qihoo.net Started container nebula-graphd
metad
[root@p47022v templates]# kubectl describe pods nebula-metad-0
Name: nebula-metad-0
Namespace: default
Priority: 0
Node: p22147v.hulk.shbt.qihoo.net/10.202.252.47
Start Time: Wed, 03 Mar 2021 17:24:12 +0800
Labels: app.kubernetes.io/component=nebula-metad
controller-revision-hash=nebula-metad-6f7c97f459
statefulset.kubernetes.io/pod-name=nebula-metad-0
Annotations: <none>
Status: Running
IP: 10.244.1.44
Controlled By: StatefulSet/nebula-metad
Containers:
nebula-metad:
Container ID: docker://dfaf898964d86a9baf58692e938f39b8fba8fa8db184c23d107a904e2bb14831
Image: vesoft/nebula-metad:v2-nightly
Image ID: docker-pullable://vesoft/nebula-metad@sha256:13157b4dfd82bfc18db795237101b24a17942390d79819772b362275213bf49e
Ports: 9559/TCP, 19559/TCP, 19560/TCP
Host Ports: 0/TCP, 0/TCP, 0/TCP
Command:
/bin/bash
-ecx
Args:
exec /usr/local/nebula/bin/nebula-metad --flagfile=/usr/local/nebula/etc/nebula-metad.conf --v=4 --minloglevel=0 --daemonize=false --local_ip=$(hostname).nebula-metad.default.svc.cluster.local
State: Running
Started: Wed, 03 Mar 2021 17:24:16 +0800
Ready: True
Restart Count: 0
Limits:
cpu: 1
memory: 1Gi
Requests:
cpu: 1
memory: 1Gi
Liveness: http-get http://:19559/status delay=30s timeout=10s period=10s #success=1 #failure=3
Environment:
USER: root
Mounts:
/etc/localtime from timezone (rw)
/usr/local/nebula/data from metad (rw,path="data")
/usr/local/nebula/etc/ from config (rw)
/usr/local/nebula/logs from metad (rw,path="logs")
/var/run/secrets/kubernetes.io/serviceaccount from nebula-token-h49fh (ro)
Conditions:
Type Status
Initialized True
Ready True
ContainersReady True
PodScheduled True
Volumes:
metad:
Type: PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
ClaimName: metad-nebula-metad-0
ReadOnly: false
config:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: nebula-metad
Optional: false
timezone:
Type: HostPath (bare host directory volume)
Path: /etc/localtime
HostPathType:
nebula-token-h49fh:
Type: Secret (a volume populated by a Secret)
SecretName: nebula-token-h49fh
Optional: false
QoS Class: Guaranteed
Node-Selectors: nebula=cloud
Tolerations: node.kubernetes.io/not-ready:NoExecute for 300s
node.kubernetes.io/unreachable:NoExecute for 300s
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 33m default-scheduler Successfully assigned default/nebula-metad-0 to p22147v.hulk.shbt.qihoo.net
Normal Pulled 33m kubelet, p22147v.hulk.shbt.qihoo.net Container image "vesoft/nebula-metad:v2-nightly" already present on machine
Normal Created 32m kubelet, p22147v.hulk.shbt.qihoo.net Created container nebula-metad
Normal Started 32m kubelet, p22147v.hulk.shbt.qihoo.net Started container nebula-metad
storaged
[root@p47022v templates]# kubectl describe pods nebula-storaged-0
Name: nebula-storaged-0
Namespace: default
Priority: 0
Node: p22147v.hulk.shbt.qihoo.net/10.202.252.47
Start Time: Wed, 03 Mar 2021 17:24:13 +0800
Labels: app.kubernetes.io/component=nebula-storaged
controller-revision-hash=nebula-storaged-5dc5976745
statefulset.kubernetes.io/pod-name=nebula-storaged-0
Annotations: <none>
Status: Running
IP: 10.244.1.45
Controlled By: StatefulSet/nebula-storaged
Containers:
nebula-storaged:
Container ID: docker://630a2f65bce02d3ae1c1a1c6ba2ddb0b8e55808a496b744744b13da95ee7c200
Image: vesoft/nebula-storaged:v2-nightly
Image ID: docker-pullable://vesoft/nebula-storaged@sha256:9b028d0ebec637e508a07f64756a50906878d04a5949e94ddf0ee2c06b0a9bf8
Ports: 9779/TCP, 19779/TCP, 19780/TCP
Host Ports: 0/TCP, 0/TCP, 0/TCP
Command:
/bin/bash
-ecx
Args:
exec /usr/local/nebula/bin/nebula-storaged --flagfile=/usr/local/nebula/etc/nebula-storaged.conf --v=4 --minloglevel=0 --daemonize=false --local_ip=$(hostname).nebula-storaged.default.svc.cluster.local
State: Running
Started: Wed, 03 Mar 2021 17:24:17 +0800
Ready: True
Restart Count: 0
Limits:
cpu: 1
memory: 1Gi
Requests:
cpu: 1
memory: 1Gi
Liveness: http-get http://:19779/status delay=30s timeout=10s period=10s #success=1 #failure=3
Environment:
USER: root
Mounts:
/etc/localtime from timezone (rw)
/usr/local/nebula/data from storaged (rw,path="data")
/usr/local/nebula/etc/ from config (rw)
/usr/local/nebula/logs from storaged (rw,path="logs")
/var/run/secrets/kubernetes.io/serviceaccount from nebula-token-h49fh (ro)
Conditions:
Type Status
Initialized True
Ready True
ContainersReady True
PodScheduled True
Volumes:
storaged:
Type: PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
ClaimName: storaged-nebula-storaged-0
ReadOnly: false
config:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: nebula-storaged
Optional: false
timezone:
Type: HostPath (bare host directory volume)
Path: /etc/localtime
HostPathType:
nebula-token-h49fh:
Type: Secret (a volume populated by a Secret)
SecretName: nebula-token-h49fh
Optional: false
QoS Class: Guaranteed
Node-Selectors: nebula=cloud
Tolerations: node.kubernetes.io/not-ready:NoExecute for 300s
node.kubernetes.io/unreachable:NoExecute for 300s
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 34m default-scheduler Successfully assigned default/nebula-storaged-0 to p22147v.hulk.shbt.qihoo.net
Normal Pulled 34m kubelet, p22147v.hulk.shbt.qihoo.net Container image "vesoft/nebula-storaged:v2-nightly" already present on machine
Normal Created 34m kubelet, p22147v.hulk.shbt.qihoo.net Created container nebula-storaged
Normal Started 33m kubelet, p22147v.hulk.shbt.qihoo.net Started container nebula-storaged