本地已经有k8s集群,主节点是10.3.64.50(node1),从节点是10.3.64.51(node2),IP均为内网IP,无外网IP
1.首先按照https://www.rainbond.com/docs/installation/install-with-helm/k8s-install-with-helm 安装,生成安装命令如下:
kubectl create namespace rbd-system
helm repo add rainbond https://openchart.goodrain.com/goodrain/rainbond
helm repo update
helm install --set Cluster.gatewayIngressIPs=10.3.64.50 --set Cluster.enableHA=false --set Cluster.nodesForGateway[0].name=node1 --set Cluster.nodesForGateway[0].externalIP=10.3.64.50 --set Cluster.nodesForGateway[0].internalIP=10.3.64.50 rainbond rainbond/rainbond-cluster -n rbd-system
2.使用步骤1安装env-checker的pod一直处于Pending状态,改为按照https://www.rainbond.com/docs/installation/install-with-ui/host-install-with-ui和https://www.rainbond.com/docs/installation/install-with-ui/install-from-k8s进行安装,安装命令如下:
kubectl create namespace rbd-system
helm repo add rainbond https://openchart.goodrain.com/goodrain/rainbond
helm repo update
helm install rainbond rainbond/rainbond-cluster -n rbd-system --set Cluster.gatewayIngressIPs=10.3.64.50 --set Cluster.enableHA=false --set Cluster.nodesForGateway[0].name=node1 --set Cluster.nodesForGateway[0].externalIP=10.3.64.50 --set Cluster.nodesForGateway[0].internalIP=10.3.64.50 --set Cluster.nodesForGateway[1].name=node2 --set Cluster.nodesForGateway[1].externalIP=10.3.64.51 --set Cluster.nodesForGateway[1].internalIP=10.3.64.51 --set operator.env[0].name=HELM_TOKEN --set operator.env[0].value=a17f2ad837804b569a7f823ce4652094 --set operator.env[1].name=ENTERPRISE_ID --set operator.env[1].value=22c374a6cd094a600419681cc42dd946 --set operator.env[2].name=CONSOLE_DOMAIN --set operator.env[2].value=http://10.3.64.50:7070/console/enterprise/helm/region_info --set Component.rbd_app_ui.enable=false
3.debug信息如下:
[root@node1 ~]# kubectl get po -n rbd-system
NAME READY STATUS RESTARTS AGE
env-checker-gateway-6xmqs 0/1 Pending 0 16h
[root@node1 ~]# kubectl describe pods env-checker-gateway-6xmqs -n rbd-system
Name: env-checker-gateway-6xmqs
Namespace: rbd-system
Priority: 0
Node: node2/
Labels: app.kubernetes.io/instance=rainbond
app.kubernetes.io/managed-by=Helm
controller-uid=3920e841-3993-4b42-b5c9-c439505d8d04
helm.sh/chart=rainbond-cluster-5.7.1
job-name=env-checker-gateway
name=env-checker
Annotations: <none>
Status: Pending
IP:
IPs: <none>
Controlled By: Job/env-checker-gateway
Containers:
gateway-checker:
Image: registry.cn-hangzhou.aliyuncs.com/goodrain/helm-env-checker
Port: <none>
Host Port: <none>
Args:
check_gateway
Environment:
GATEWAY_IP: 10.3.64.50 10.3.64.51
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from default-token-s2tvm (ro)
Conditions:
Type Status
PodScheduled True
Volumes:
default-token-s2tvm:
Type: Secret (a volume populated by a Secret)
SecretName: default-token-s2tvm
Optional: false
QoS Class: BestEffort
Node-Selectors: <none>
Tolerations: op=Exists
node.kubernetes.io/disk-pressure:NoSchedule op=Exists
node.kubernetes.io/memory-pressure:NoSchedule op=Exists
node.kubernetes.io/network-unavailable:NoSchedule op=Exists
node.kubernetes.io/not-ready:NoExecute op=Exists
node.kubernetes.io/pid-pressure:NoSchedule op=Exists
node.kubernetes.io/unreachable:NoExecute op=Exists
node.kubernetes.io/unschedulable:NoSchedule op=Exists
Events: <none>
[root@node1 ~]# kubectl logs env-checker-gateway-6xmqs -n rbd-system
Error from server (NotFound): the server could not find the requested resource ( pods/log env-checker-gateway-6xmqs)
请问有可能是哪里没有配置正确?