uptycs/k8sosqueryUptycs Kubernetes Osquery daemonset镜像是由Uptycs提供的容器化组件,专门用于在Kubernetes集群中以daemonset模式部署Osquery。该镜像通过在集群的每个节点上运行Osquery实例,实现对节点、容器及运行时环境的安全监控与系统数据采集,并将采集的数据上报至Uptycs平台进行集中分析与可视化。
推荐通过Kubernetes YAML配置文件部署daemonset,示例如下:
yamlapiVersion: apps/v1 kind: DaemonSet metadata: name: uptycs-osqueryd namespace: uptycs spec: selector: matchLabels: app: uptycs-osqueryd template: metadata: labels: app: uptycs-osqueryd spec: hostPID: true # 需访问主机PID命名空间以采集进程信息 containers: - name: osqueryd image: uptycs/osqueryd-k8s:latest # 替换为实际镜像版本 env: - name: UPTYCS_HOST value: "https://your-uptycs-instance.uptycs.io" # Uptycs平台地址 - name: UPTYCS_USERNAME valueFrom: secretKeyRef: name: uptycs-credentials key: username # 从secret获取用户名 - name: UPTYCS_PASSWORD valueFrom: secretKeyRef: name: uptycs-credentials key: password # 从secret获取密码 volumeMounts: - name: var-lib-kubelet mountPath: /var/lib/kubelet readOnly: true # 挂载kubelet目录以采集容器信息 - name: etc-kubernetes mountPath: /etc/kubernetes readOnly: true # 挂载K8s配置目录 - name: rootfs mountPath: /host readOnly: true # 挂载主机根文件系统(只读) volumes: - name: var-lib-kubelet hostPath: path: /var/lib/kubelet - name: etc-kubernetes hostPath: path: /etc/kubernetes - name: rootfs hostPath: path: /
| 环境变量名 | 说明 | 示例值 |
|---|---|---|
UPTYCS_HOST | Uptycs平台服务地址 | https://your-uptycs-instance.uptycs.io |
UPTYCS_USERNAME | Uptycs平台认证用户名 | admin@example.com |
UPTYCS_PASSWORD | Uptycs平台认证密码 | secure-password |
OSQUERY_LOG_LEVEL | Osquery日志级别(debug/info/warn/error) | info |
NODE_NAME | 节点名称(通常通过fieldRef自动注入) | spec.nodeName |
可通过ConfigMap挂载自定义Osquery查询规则,示例ConfigMap配置:
yamlapiVersion: v1 kind: ConfigMap metadata: name: osquery-queries namespace: uptycs data: custom_queries.conf: | # 检测异常特权容器 SELECT * FROM containers WHERE privileged = 1; # 监控节点开放端口 SELECT port, protocol, process FROM listening_ports WHERE port > 1024;
在daemonset中挂载该ConfigMap:
yamlvolumeMounts: - name: custom-queries mountPath: /etc/osquery/custom-queries readOnly: true volumes: - name: custom-queries configMap: name: osquery-queries
部署后,可通过以下命令检查daemonset状态:
bashkubectl get daemonset -n uptycs uptycs-osqueryd
查看Pod日志确认运行状态:
bashkubectl logs -n uptycs <osquery-pod-name> -c osqueryd
readOnly: true以降低安全风险。探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务