Code Monkey home page Code Monkey logo

ratel-doc's People

Contributors

dotbalo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ratel-doc's Issues

您好

大佬,这个源码还开放吗

网页打不开

您好,我想问一下在显示ratel-ingress成功create之后去页面进不去是怎么回事呀?改成nodeport之后也不行

期待

期待老哥开放出第一个版本,学习学习

请问项目还在维护吗?

日志看着挺正常的,但是 ingress 不行,直接 404 了(通过改hosts的方式),请指教,谢谢。
配置信息

apiVersion: v1
kind: Service
metadata:
  labels:
    app: ratel
  name: ratel
  namespace: kube-system
spec:
  ports:
    - name: container-1-web-1
      port: 8888
      protocol: TCP
      targetPort: 8888
  selector:
    app: ratel
  type: NodePort
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: ratel
  namespace: kube-system
spec:
  rules:
  - host: krm.test.com
    http:
      paths:
      - backend:
          serviceName: ratel
          servicePort: 8888
        path: /

日志信息:

[root@master ratel]# kubectl logs ratel-5754486768-kxxml -n kube-system
2021/07/25 14:55:58.224 [D] [main.go:27]  加载超时时间
2021/07/25 14:55:58.224 [D] [main.go:27]  开启压缩
2021/07/25 14:55:58.224 [D] [main.go:27]  配置静态目录
2021/07/25 14:55:58.224 [D] [main.go:27]  加载基本配置
2021/07/25 14:55:58.224 [D] [main.go:27]  加载管理员账号密码
2021/07/25 14:55:58.224 [D] [init.go:50]  从app.conf中加载管理员账号密码
2021/07/25 14:55:58.224 [I] [init.go:50]  加载账号密码成功
2021/07/25 14:55:58.224 [D] [main.go:27]  初始化Session Key
2021/07/25 14:55:58.224 [D] [main.go:27]  加载Kubernetes集群配置
2021/07/25 14:55:58.224 [D] [initConf.go:40]  加载集群配置,配置文件路径:/mnt/servers.yaml
2021/07/25 14:55:58.224 [D] [initConf.go:40]  读取文: /mnt/servers.yaml succ
2021/07/25 14:55:58.224 [I] [initConf.go:40]  加载集群配置,配置文件:/mnt/servers.yaml
2021/07/25 14:55:58.224 [D] [initConf.go:40]  加载配置完成
2021/07/25 14:55:58.224 [I] [initConf.go:40]  集群配置加载成功,集群个数1
2021/07/25 14:55:58.224 [D] [initConf.go:40]  当前集群:test1数据为:{test1 https://192.168.100.23:8443   null https://192.168.100.23:30126/# /mnt/test1.config   false}
2021/07/25 14:55:58.224 [D] [initConf.go:40]  DashboardUrl: map[test1:https://192.168.100.23:30126/#]
2021/07/25 14:55:58.224 [D] [initConf.go:40]  KubeConfigPath: /mnt/test1.config
2021/07/25 14:55:58.224 [D] [initConf.go:40]  加载kubernets clientset
2021/07/25 14:55:58.236 [D] [initConf.go:40]  clientSet:  &{0xc0004dbe40 0xc0004d62f0 0xc0004d6350 0xc0004d63b0 0xc0004d6410 0xc0004d6470 0xc0004d64d0 0xc0004d6530 0xc0004d6590 0xc0004d65f0 0xc0004d6650 0xc0004d66b0 0xc0004d6710 0xc0004d6770 0xc0004d67d0 0xc0004d6830 0xc0004d6890 0xc0004d68f0 0xc0004d6950 0xc0004d69b0 0xc0004d6a10 0xc0004d6a70 0xc0004d6ad0 0xc0004d6b30 0xc0004d6b90 0xc0004d6bf0 0xc0004d6c50 0xc0004d6cb0 0xc0004d6d10 0xc0004d6d70 0xc0004d6dd0 0xc0004d6e30 0xc0004d6e90 0xc0004d6ef0 0xc0004d6f50 0xc0004d6fb0 0xc0004d7010 0xc0004d7070 0xc0004d70d0 0xc0004d7130 0xc0004d7190 0xc0004d71f0 0xc0004d7250 0xc0004d72b0}
2021/07/25 14:55:58.236 [I] [initConf.go:40]  集群:test1已成功加载,版本:v1.20.0
2021/07/25 14:55:58.236 [D] [initConf.go:40]  ClusterBasicInfo:map[test1:map[ClusterVersion:v1.20.0 harborConfig: kongConfig: kubeConfigPath:/mnt/test1.config]]
2021/07/25 14:55:58.236 [D] [initConf.go:40]  ClusterBasicInfo:map[test1:map[ClusterVersion:v1.20.0 harborConfig: kongConfig: kubeConfigPath:/mnt/test1.config]]
2021/07/25 14:55:58.236 [D] [initConf.go:40]  ClusterClientSet:map[test1:%!s(*kubernetes.Clientset=&{0xc0004dbe40 0xc0004d62f0 0xc0004d6350 0xc0004d63b0 0xc0004d6410 0xc0004d6470 0xc0004d64d0 0xc0004d6530 0xc0004d6590 0xc0004d65f0 0xc0004d6650 0xc0004d66b0 0xc0004d6710 0xc0004d6770 0xc0004d67d0 0xc0004d6830 0xc0004d6890 0xc0004d68f0 0xc0004d6950 0xc0004d69b0 0xc0004d6a10 0xc0004d6a70 0xc0004d6ad0 0xc0004d6b30 0xc0004d6b90 0xc0004d6bf0 0xc0004d6c50 0xc0004d6cb0 0xc0004d6d10 0xc0004d6d70 0xc0004d6dd0 0xc0004d6e30 0xc0004d6e90 0xc0004d6ef0 0xc0004d6f50 0xc0004d6fb0 0xc0004d7010 0xc0004d7070 0xc0004d70d0 0xc0004d7130 0xc0004d7190 0xc0004d71f0 0xc0004d7250 0xc0004d72b0})]
2021/07/25 14:55:58.236 [D] [init.go:56]  开启监听文件变化
2021/07/25 14:55:58.236 [D] [main.go:27]  加载kubernetes 资源接口
2021/07/25 14:55:58.237 [D] [asm_amd64.s:1374]  创建监听对象: /mnt/servers.yaml
2021/07/25 14:55:58.336 [I] [asm_amd64.s:1374]  http server Running on http://:8888

版本信息:

kubectl version
Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.0", GitCommit:"af46c47ce925f4c4ad5cc8d1fca46c7b77d13b38", GitTreeState:"clean", BuildDate:"2020-12-08T17:59:43Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.0", GitCommit:"af46c47ce925f4c4ad5cc8d1fca46c7b77d13b38", GitTreeState:"clean", BuildDate:"2020-12-08T17:51:19Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"linux/amd64"}

为啥我的报空指针错误

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x58 pc=0x139b429]

goroutine 1 [running]:
ratel/initConf.LoadClusterList(0x7ffc7fcdf85a, 0x11, 0x1921ea0, 0xc0001160e0, 0x0)
D:/code/GoCode/src/ratel/initConf/initConf.go:126 +0x939
ratel/initConf.initClusterConf(0x7ffc7fcdf85a, 0x11, 0x0, 0x0, 0x0)
D:/code/GoCode/src/ratel/initConf/initConf.go:38 +0x8c
ratel/initConf.Init(0x7ffc7fcdf85a, 0x11)
D:/code/GoCode/src/ratel/initConf/init.go:56 +0x71a
main.main()
D:/code/GoCode/src/ratel/main.go:27 +0xdd

ratel容器启动后报这个错误,不知道怎么办。

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x45b5de]
goroutine 1 [running]:
k8s.io/client-go/kubernetes.NewForConfig(0x0, 0x17158c0, 0xc00006bcc0, 0x2)
D:/code/GoCode/src/k8s.io/client-go/kubernetes/clientset.go:355 +0x4e
ratel/initConf.LoadClusterList(0x7ffcbf436249, 0x11, 0x0, 0x0, 0x0)
D:/code/GoCode/src/ratel/initConf/initConf.go:95 +0x793
ratel/initConf.initClusterConf(0x7ffcbf436249, 0x11, 0x0, 0x0, 0x0)
D:/code/GoCode/src/ratel/initConf/initConf.go:38 +0xa6
ratel/initConf.Init(0x7ffcbf436249, 0x11)
D:/code/GoCode/src/ratel/initConf/init.go:49 +0x473
main.main()
D:/code/GoCode/src/ratel/main.go:27 +0xdd

ratel 可以正常open web 但是无法链接 k8s 数据

2021/04/20 12:56:28.885 [I] [value.go:476] 距离上次加载主页数据已经超过:0秒,重新加载数据
2021/04/20 12:56:28.885 [I] [clusterinfo.go:34] 获取到当前API接口: Nodes
2021/04/20 12:56:28.885 [I] [clusterinfo.go:34] 获取到当前API接口: Daemonsets
2021/04/20 12:56:28.885 [I] [clusterinfo.go:34] 获取到当前API接口: Deployments
2021/04/20 12:56:28.885 [I] [clusterinfo.go:34] 获取到当前API接口: Statefulsets
2021/04/20 12:56:28.885 [I] [clusterinfo.go:34] 获取到当前API接口: Pods
2021/04/20 12:56:28.885 [I] [clusterinfo.go:34] 获取到当前API接口: Namespaces
2021/04/20 12:56:28.885 [I] [clusterinfo.go:34] 获取到当前API接口: Services
2021/04/20 12:56:28.885 [I] [clusterinfo.go:34] 获取到当前API接口: Ingresses
2021/04/20 12:56:28.885 [I] [clusterinfo.go:34] 获取到当前API接口: Secrets
2021/04/20 12:56:28.885 [I] [getClusterInfoHandler.go:45] 当前查询的集群为:test1, 资源的类型为:Secrets
2021/04/20 12:56:28.885 [I] [getClusterInfoHandler.go:45] 查看集群serverName:test1的Secrets数量
2021/04/20 12:56:28.886 [I] [getClusterInfoHandler.go:45] 当前查询的集群为:test1, 资源的类型为:Nodes
2021/04/20 12:56:28.886 [I] [getClusterInfoHandler.go:45] 查看集群serverName:test1的Nodes数量
2021/04/20 12:56:28.886 [I] [getClusterInfoHandler.go:45] 当前查询的集群为:test1, 资源的类型为:Daemonsets
2021/04/20 12:56:28.886 [I] [getClusterInfoHandler.go:45] 查看集群serverName:test1的Daemonsets数量
2021/04/20 12:56:28.886 [I] [getClusterInfoHandler.go:45] 当前查询的集群为:test1, 资源的类型为:Deployments
2021/04/20 12:56:28.886 [I] [getClusterInfoHandler.go:45] 查看集群serverName:test1的Deployments数量
2021/04/20 12:56:28.887 [I] [getClusterInfoHandler.go:45] 当前查询的集群为:test1, 资源的类型为:Statefulsets
2021/04/20 12:56:28.887 [I] [getClusterInfoHandler.go:45] 查看集群serverName:test1的Statefulsets数量
2021/04/20 12:56:28.887 [I] [getClusterInfoHandler.go:45] 当前查询的集群为:test1, 资源的类型为:Pods
2021/04/20 12:56:28.887 [I] [getClusterInfoHandler.go:45] 查看集群serverName:test1的Pods数量
2021/04/20 12:56:28.887 [I] [getClusterInfoHandler.go:45] 当前查询的集群为:test1, 资源的类型为:Namespaces
2021/04/20 12:56:28.887 [I] [getClusterInfoHandler.go:45] 查看集群serverName:test1的Namespaces数量
2021/04/20 12:56:28.888 [I] [getClusterInfoHandler.go:45] 当前查询的集群为:test1, 资源的类型为:Services
2021/04/20 12:56:28.888 [I] [getClusterInfoHandler.go:45] 查看集群serverName:test1的Services数量
2021/04/20 12:56:28.888 [I] [getClusterInfoHandler.go:45] 当前查询的集群为:test1, 资源的类型为:Ingresses
2021/04/20 12:56:28.888 [I] [getClusterInfoHandler.go:45] 查看集群serverName:test1的Ingresses数量
2021/04/20 12:56:32.675 [I] [value.go:476] 距离上次加载主页数据已经超过:0秒,重新加载数据
2021/04/20 12:56:32.675 [I] [clusterinfo.go:34] 获取到当前API接口: Nodes
2021/04/20 12:56:32.675 [I] [clusterinfo.go:34] 获取到当前API接口: Daemonsets
2021/04/20 12:56:32.675 [I] [clusterinfo.go:34] 获取到当前API接口: Deployments
2021/04/20 12:56:32.675 [I] [clusterinfo.go:34] 获取到当前API接口: Statefulsets
2021/04/20 12:56:32.675 [I] [clusterinfo.go:34] 获取到当前API接口: Pods
2021/04/20 12:56:32.675 [I] [clusterinfo.go:34] 获取到当前API接口: Namespaces
2021/04/20 12:56:32.675 [I] [clusterinfo.go:34] 获取到当前API接口: Services
2021/04/20 12:56:32.675 [I] [clusterinfo.go:34] 获取到当前API接口: Ingresses
2021/04/20 12:56:32.675 [I] [clusterinfo.go:34] 获取到当前API接口: Secrets
2021/04/20 12:56:32.675 [I] [getClusterInfoHandler.go:45] 当前查询的集群为:test1, 资源的类型为:Secrets
2021/04/20 12:56:32.675 [I] [getClusterInfoHandler.go:45] 查看集群serverName:test1的Secrets数量
2021/04/20 12:56:32.677 [I] [getClusterInfoHandler.go:45] 当前查询的集群为:test1, 资源的类型为:Nodes
2021/04/20 12:56:32.677 [I] [getClusterInfoHandler.go:45] 查看集群serverName:test1的Nodes数量
2021/04/20 12:56:32.678 [I] [getClusterInfoHandler.go:45] 当前查询的集群为:test1, 资源的类型为:Daemonsets
2021/04/20 12:56:32.678 [I] [getClusterInfoHandler.go:45] 查看集群serverName:test1的Daemonsets数量
2021/04/20 12:56:32.679 [I] [getClusterInfoHandler.go:45] 当前查询的集群为:test1, 资源的类型为:Deployments
2021/04/20 12:56:32.679 [I] [getClusterInfoHandler.go:45] 查看集群serverName:test1的Deployments数量
2021/04/20 12:56:32.680 [I] [getClusterInfoHandler.go:45] 当前查询的集群为:test1, 资源的类型为:Statefulsets
2021/04/20 12:56:32.680 [I] [getClusterInfoHandler.go:45] 查看集群serverName:test1的Statefulsets数量
2021/04/20 12:56:32.680 [I] [getClusterInfoHandler.go:45] 当前查询的集群为:test1, 资源的类型为:Pods
2021/04/20 12:56:32.680 [I] [getClusterInfoHandler.go:45] 查看集群serverName:test1的Pods数量
2021/04/20 12:56:32.681 [I] [getClusterInfoHandler.go:45] 当前查询的集群为:test1, 资源的类型为:Namespaces
2021/04/20 12:56:32.681 [I] [getClusterInfoHandler.go:45] 查看集群serverName:test1的Namespaces数量
2021/04/20 12:56:32.682 [I] [getClusterInfoHandler.go:45] 当前查询的集群为:test1, 资源的类型为:Services
2021/04/20 12:56:32.682 [I] [getClusterInfoHandler.go:45] 查看集群serverName:test1的Services数量
2021/04/20 12:56:32.683 [I] [getClusterInfoHandler.go:45] 当前查询的集群为:test1, 资源的类型为:Ingresses
2021/04/20 12:56:32.683 [I] [getClusterInfoHandler.go:45] 查看集群serverName:test1的Ingresses数量
2021/04/20 12:56:58.887 [E] [getClusterInfoHandler.go:26] 获取StatefulSet节点数量失败, err: Get "https://192.168.0.126:6443/apis/apps/v1/statefulsets": dial tcp 192.168.0.126:6443: i/o timeout
2021/04/20 12:56:58.888 [I] [getClusterInfoHandler.go:45] 查询到Statefulsets的数量为:0
2021/04/20 12:56:58.888 [E] [getClusterInfoHandler.go:20] 获取Node节点数量失败, err: Get "https://192.168.0.126:6443/api/v1/nodes": dial tcp 192.168.0.126:6443: i/o timeout
2021/04/20 12:56:58.888 [I] [getClusterInfoHandler.go:45] 查询到Nodes的数量为:0
2021/04/20 12:56:58.888 [E] [getClusterInfoHandler.go:22] 获取DaemonSet节点数量失败, err: Get "https://192.168.0.126:6443/apis/apps/v1/daemonsets": dial tcp 192.168.0.126:6443: i/o timeout
2021/04/20 12:56:58.888 [I] [getClusterInfoHandler.go:45] 查询到Daemonsets的数量为:0
2021/04/20 12:56:58.888 [E] [getClusterInfoHandler.go:24] 获取Deployment节点数量失败, err: Get "https://192.168.0.126:6443/apis/apps/v1/deployments": dial tcp 192.168.0.126:6443: i/o timeout
2021/04/20 12:56:58.888 [I] [getClusterInfoHandler.go:45] 查询到Deployments的数量为:0
2021/04/20 12:56:58.889 [E] [getClusterInfoHandler.go:32] 获取Pod节点数量失败, err: Get "https://192.168.0.126:6443/api/v1/pods": dial tcp 192.168.0.126:6443: i/o timeout
2021/04/20 12:56:58.889 [I] [getClusterInfoHandler.go:45] 查询到Pods的数量为:0
2021/04/20 12:56:58.889 [E] [getClusterInfoHandler.go:28] 获取Namespace节点数量失败, err: Get "https://192.168.0.126:6443/api/v1/namespaces": dial tcp 192.168.0.126:6443: i/o timeout
2021/04/20 12:56:58.889 [I] [getClusterInfoHandler.go:45] 查询到Namespaces的数量为:0
2021/04/20 12:56:58.889 [E] [getClusterInfoHandler.go:34] 获取Secret节点数量失败, err: Get "https://192.168.0.126:6443/api/v1/secrets": dial tcp 192.168.0.126:6443: i/o timeout
2021/04/20 12:56:58.889 [I] [getClusterInfoHandler.go:45] 查询到Secrets的数量为:0
2021/04/20 12:56:58.889 [E] [getClusterInfoHandler.go:30] 获取Service节点数量失败, err: Get "https://192.168.0.126:6443/api/v1/services": dial tcp 192.168.0.126:6443: i/o timeout
2021/04/20 12:56:58.889 [I] [getClusterInfoHandler.go:45] 查询到Services的数量为:0
2021/04/20 12:56:58.889 [E] [getClusterInfoHandler.go:36] 获取Ingress节点数量失败, err: Get "https://192.168.0.126:6443/apis/extensions/v1beta1/ingresses": dial tcp 192.168.0.126:6443: i/o timeout
2021/04/20 12:56:58.889 [I] [getClusterInfoHandler.go:45] 查询到Ingresses的数量为:0
2021/04/20 12:56:58.889 [I] [value.go:476] 获取数据:map[Daemonsets:%!s(int=0) Deployments:%!s(int=0) Ingresses:%!s(int=0) Namespaces:%!s(int=0) Nodes:%!s(int=0) Pods:%!s(int=0) Secrets:%!s(int=0) Services:%!s(int=0) Statefulsets:%!s(int=0)]
2021/04/20 12:57:02.676 [E] [getClusterInfoHandler.go:34] 获取Secret节点数量失败, err: Get "https://192.168.0.126:6443/api/v1/secrets": dial tcp 192.168.0.126:6443: i/o timeout
2021/04/20 12:57:02.676 [I] [getClusterInfoHandler.go:45] 查询到Secrets的数量为:0
2021/04/20 12:57:02.677 [E] [getClusterInfoHandler.go:20] 获取Node节点数量失败, err: Get "https://192.168.0.126:6443/api/v1/nodes": dial tcp 192.168.0.126:6443: i/o timeout
2021/04/20 12:57:02.677 [I] [getClusterInfoHandler.go:45] 查询到Nodes的数量为:0
2021/04/20 12:57:02.680 [E] [getClusterInfoHandler.go:24] 获取Deployment节点数量失败, err: Get "https://192.168.0.126:6443/apis/apps/v1/deployments": dial tcp 192.168.0.126:6443: i/o timeout
2021/04/20 12:57:02.680 [I] [getClusterInfoHandler.go:45] 查询到Deployments的数量为:0
2021/04/20 12:57:02.680 [E] [getClusterInfoHandler.go:26] 获取StatefulSet节点数量失败, err: Get "https://192.168.0.126:6443/apis/apps/v1/statefulsets": dial tcp 192.168.0.126:6443: i/o timeout
2021/04/20 12:57:02.680 [I] [getClusterInfoHandler.go:45] 查询到Statefulsets的数量为:0
2021/04/20 12:57:02.681 [E] [getClusterInfoHandler.go:22] 获取DaemonSet节点数量失败, err: Get "https://192.168.0.126:6443/apis/apps/v1/daemonsets": dial tcp 192.168.0.126:6443: i/o timeout

字符变量导致时间改变不成功

image

ratel平台字符变量自带默认设置TZ和LANG,创建deploy时不删掉和hostpath一起创建时,创建的容器时间改变不成功
image
取消字符变量时间就可以正常改变过来
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.