SEER‘S EYE模型在网络安全领域的智能分析与预警应用

核心内容摘要

避坑指南:STM32H7的ADC采样结果不稳定?这5个CubeMX配置细节要注意
hello_agent第八章总结

TanStack Query无限查询深度解析

如果你是运维工程师或开发人员最近几年一定被这两个关键词刷屏了国产化替代和Kubernetes。

当信创浪潮遇上云原生时代在国产操作系统上部署容器管理平台不再是选择题而是必答题。

本文实现了在银河麒麟服务器系统V11(

已经部署Kubernetes集群的基础上安装那款让无数运维爱不释手的可视化管理工具——Kuboard。

什么是KuboardKuboard 是一款面向 KubernetesK8s的开源、轻量级、可视化管理平台由国内开发者团队打造专为降低 K8s 使用门槛而设计。

它提供完整的 Web 图形界面支持多集群管理、应用部署、服务监控、日志查看、事件追踪、配置管理如 ConfigMap、Secret、命名空间操作等核心功能几乎覆盖了日常运维和开发所需的全部场景。

与 Rancher、Lens 等工具相比Kuboard 更加轻量——仅需一个 Pod 即可运行资源占用低部署简单单个 YAML 文件即可且完全支持离线私有化部署不依赖任何外部 SaaS 服务非常适合对数据安全和合规性要求高的国产化环境如银河麒麟、统信 UOS 等。

Kuboard 原生支持中文界面文档详尽学习成本低特别适合刚接触 K8s 的团队快速上手。

目前主流版本是 Kuboard v3采用前后端一体化架构通过内置 Agent 实现集群状态实时同步并支持基于 RBAC 的细粒度权限控制。

此外Kuboard 还提供了丰富的国产镜像源如华为云 SWR、阿里云 ACR有效规避了 Docker Hub 访问受限的问题。

无论是测试环境快速验证还是生产环境稳定运维Kuboard 都是一个兼顾易用性、安全性与本土适配性的优秀选择。

环境准备与检查系统环境确认首先我们确认当前系统环境查看银河麒麟系统版本cat/etc/.kyinfo查看内核版本uname-r查看k8s集群状态kubectl cluster-info检查K8s集群状态检查节点状态kubectl get nodes检查核心组件状态kubectl get pods -n kube-system确认kubectl配置正确kubectl config current-contextKuboard部署详细步骤下载Kuboard部署文件wgethttps://addons.kuboard.cn/kuboard/kuboard-v

yaml也可以下载下面的yaml文件唯一的区别是该指令使用华为云的镜像仓库替代 docker hub 分发 Kuboard 所需要的镜像如果出现镜像拉取不到可以使用下面的yaml文件wgethttps://addons.kuboard.cn/kuboard/kuboard-v3-swr.yaml部署Kuboard创建kuboard我部署用的kuboard-v3-swr.yaml内容如下--- apiVersion: v1 kind: Namespace metadata: name: kuboard --- apiVersion: v1 kind: ConfigMap metadata: name: kuboard-v3-config namespace: kuboard data:# 关于如下参数的解释请参考文档 https://kuboard.cn/install/v3/install-built-in.html# [common]KUBOARD_SERVER_NODE_PORT:30080KUBOARD_AGENT_SERVER_UDP_PORT:30081KUBOARD_AGENT_SERVER_TCP_PORT:30081KUBOARD_SERVER_LOGRUS_LEVEL: info# error / debug / trace# KUBOARD_AGENT_KEY 是 Agent 与 Kuboard 通信时的密钥请修改为一个任意的包含字母、数字的32位字符串此密钥变更后需要删除 Kuboard Agent 重新导入。

KUBOARD_AGENT_KEY: 32b7d6572c6255211b4eec9009e4a816 KUBOARD_AGENT_IMAG: swr.cn-east-

myhuaweicloud.com/kuboard/kuboard-agent KUBOARD_QUESTDB_IMAGE: swr.cn-east-

myhuaweicloud.com/kuboard-dependency/questdb:

6.

4 KUBOARD_DISABLE_AUDIT:false# 如果要禁用 Kuboard 审计功能将此参数的值设置为 true必须带引号。

# 关于如下参数的解释请参考文档 https://kuboard.cn/install/v3/install-gitlab.html# [gitlab login]# KUBOARD_LOGIN_TYPE: gitlab# KUBOARD_ROOT_USER: your-user-name-in-gitlab# GITLAB_BASE_URL: http://gitlab.mycompany.com# GITLAB_APPLICATION_ID: 7c10882aa46810a0402d17c66103894ac5e43d6130b81c17f7f2d8ae182040b5# GITLAB_CLIENT_SECRET: 77c149bd3a4b6870bffa1a1afaf37cba28a1817f4cf518699065f5a8fe958889# 关于如下参数的解释请参考文档 https://kuboard.cn/install/v3/install-github.html# [github login]# KUBOARD_LOGIN_TYPE: github# KUBOARD_ROOT_USER: your-user-name-in-github# GITHUB_CLIENT_ID: 17577d45e4de7dad88e0# GITHUB_CLIENT_SECRET: ff738553a8c7e9ad39569c8d02c1d85ec19115a7# 关于如下参数的解释请参考文档 https://kuboard.cn/install/v3/install-ldap.html# [ldap login]# KUBOARD_LOGIN_TYPE: ldap# KUBOARD_ROOT_USER: your-user-name-in-ldap# LDAP_HOST: ldap-ip-address:389# LDAP_BIND_DN: cnadmin,dcexample,dcorg# LDAP_BIND_PASSWORD: admin# LDAP_BASE_DN: dcexample,dcorg# LDAP_FILTER: (objectClassposixAccount)# LDAP_ID_ATTRIBUTE: uid# LDAP_USER_NAME_ATTRIBUTE: uid# LDAP_EMAIL_ATTRIBUTE: mail# LDAP_DISPLAY_NAME_ATTRIBUTE: cn# LDAP_GROUP_SEARCH_BASE_DN: dcexample,dcorg# LDAP_GROUP_SEARCH_FILTER: (objectClassposixGroup)# LDAP_USER_MACHER_USER_ATTRIBUTE: gidNumber# LDAP_USER_MACHER_GROUP_ATTRIBUTE: gidNumber# LDAP_GROUP_NAME_ATTRIBUTE: cn--- apiVersion: v1 kind: ServiceAccount metadata: name: kuboard-boostrap namespace: kuboard --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: kuboard-boostrap-crb roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: cluster-admin subjects: - kind: ServiceAccount name: kuboard-boostrap namespace: kuboard --- apiVersion: apps/v1 kind: DaemonSet metadata: labels: k8s.kuboard.cn/name: kuboard-etcd name: kuboard-etcd namespace: kuboard spec: revisionHistoryLimit:10selector: matchLabels: k8s.kuboard.cn/name: kuboard-etcd template: metadata: labels: k8s.kuboard.cn/name: kuboard-etcd spec: affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: node-role.kubernetes.io/master operator: Exists - matchExpressions: - key: node-role.kubernetes.io/control-plane operator: Exists - matchExpressions: - key: k8s.kuboard.cn/role operator: In values: - etcd containers: - env: - name:HOSTNAMEvalueFrom: fieldRef: apiVersion: v1 fieldPath: spec.nodeName - name: HOSTIP valueFrom: fieldRef: apiVersion: v1 fieldPath: status.hostIP image:swr.cn-east-

myhuaweicloud.com/kuboard/etcd-host:

3.

4.

imagePullPolicy: Always name: etcd ports: - containerPort:2381hostPort:2381name: server protocol: TCP - containerPort:2382hostPort:2382name: peer protocol: TCP livenessProbe: failureThreshold:3httpGet: path: /health port:2381scheme: HTTP initialDelaySeconds:30periodSeconds:10successThreshold:1timeoutSeconds:1volumeMounts: - mountPath: /data name: data dnsPolicy: ClusterFirst hostNetwork:truerestartPolicy: Always serviceAccount: kuboard-boostrap serviceAccountName: kuboard-boostrap tolerations: - key: node-role.kubernetes.io/master operator: Exists - key: node-role.kubernetes.io/control-plane operator: Exists volumes: - hostPath: path: /usr/share/kuboard/etcd name: data updateStrategy: rollingUpdate: maxUnavailable:1type: RollingUpdate --- apiVersion: apps/v1 kind: Deployment metadata: annotations:{}labels: k8s.kuboard.cn/name: kuboard-v3 name: kuboard-v3 namespace: kuboard spec: replicas:1revisionHistoryLimit:10selector: matchLabels: k8s.kuboard.cn/name: kuboard-v3 template: metadata: labels: k8s.kuboard.cn/name: kuboard-v3 spec: affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - preference: matchExpressions: - key: node-role.kubernetes.io/master operator: Exists weight:100- preference: matchExpressions: - key: node-role.kubernetes.io/control-plane operator: Exists weight:100containers: - env: - name: HOSTIP valueFrom: fieldRef: apiVersion: v1 fieldPath: status.hostIP - name:HOSTNAMEvalueFrom: fieldRef: apiVersion: v1 fieldPath: spec.nodeName envFrom: - configMapRef: name: kuboard-v3-config image:swr.cn-east-

myhuaweicloud.com/kuboard/kuboard:v3imagePullPolicy: Always livenessProbe: failureThreshold:3httpGet: path: /kuboard-resources/version.json port:80scheme: HTTP initialDelaySeconds:30periodSeconds:10successThreshold:1timeoutSeconds:1name: kuboard ports: - containerPort:80name: web protocol: TCP - containerPort:443name: https protocol: TCP - containerPort:10081name: peer protocol: TCP - containerPort:10081name: peer-u protocol: UDP readinessProbe: failureThreshold:3httpGet: path: /kuboard-resources/version.json port:80scheme: HTTP initialDelaySeconds:30periodSeconds:10successThreshold:1timeoutSeconds:1resources:{}# startupProbe:# failureThreshold: 20# httpGet:# path: /kuboard-resources/version.json# port: 80# scheme: HTTP# initialDelaySeconds: 5# periodSeconds: 10# successThreshold: 1# timeoutSeconds: 1dnsPolicy: ClusterFirst restartPolicy: Always serviceAccount: kuboard-boostrap serviceAccountName: kuboard-boostrap tolerations: - key: node-role.kubernetes.io/master operator: Exists --- apiVersion: v1 kind: Service metadata: annotations:{}labels: k8s.kuboard.cn/name: kuboard-v3 name: kuboard-v3 namespace: kuboard spec: ports: - name: web nodePort:30080port:80protocol: TCP targetPort:80- name: tcp nodePort:30081port:10081protocol: TCP targetPort:10081- name: udp nodePort:30081port:10081protocol: UDP targetPort:10081selector: k8s.kuboard.cn/name: kuboard-v3 sessionAffinity: None type: NodePortkubectl apply -f kuboard-v3-swr.yaml查看创建情况部署完成后需确认Kuboard所属命名空间kuboard下的Pod均处于“Running”状态确保组件正常启动kubectl get pods -n kuboardkuboard使用访问UI界面浏览器访问http://masterIP:30080默认账号密码建议修改账号admin 密码Kuboard123添加k8s集群首次登录 Kuboard 后需要将已有的 Kubernetes 集群导入到 Kuboard 进行统一管理。

在弹出的导入界面中选择导入方式为Token默认选项集群名称为k8s-cluster。

根据页面提示复制 Kuboard 提供的命令脚本到 Kubernetes 集群的 master 节点执行用于自动创建 ServiceAccount及访问凭证。

执行完脚本后复制红色输出字段的Token回到 Kuboard 导入界面在表单中填写名称填写自定义集群名称ApiServer 地址填写集群 API Server 地址例如 https://master节点的IP:6443。

选择访问集群时所使用的身份选择ServiceAccount kuboard-admin拥有对集群的完全管理权限。

导入完成后即可在集群列表中查看该集群的整体状态及资源信息。

写在最后部署 Kubernetes 只是第一步如何高效运维、快速排障、安全管控才是企业真正关心的问题。

在银河麒麟 V112503这样的国产操作系统上搭配 Kuboard 这样的本土化工具不仅能提升团队效率更能满足信创项目的合规与安全要求。

觉得有用欢迎点赞、收藏、转发一起推动国产生态成长也欢迎在评论区留下你在银河麒麟上踩过的坑我们一起填平它原文链接https://mp.weixin.qq.com/s/f6b6VTdZeHVd29EX3NF83g

男生女生一起愁愁愁电视剧在线观看-男生女生一起愁愁愁电视剧在线观看应用

百度百家号客服电话人工服务

123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123