今天查个bug,阿里云mysql 审计日志上次为了省钱关了,然后要查记录就只能捞binlog了下载binlog文件500m一个下载binlog 查看工具我server是5.7的https://downloads.mysql.com/archives/community/查看binlog解压到d盘,进入bin目录cd D:\mysql-5.7.40-winx64\binm
k8s 有四种类型pod ip会变化,所以需要创建services ip来创建静态ipk8s默认为cluster ip type 即便是没有指定typepod中包含了slide pod用来收集主服务中的日志假设pod 跑在了node 2 上get pod下信息services 端口设置为3200kube dns 会搜索服务名字microservice one serices 把来自3200的请求转
Understanding the basic conceptsCommon commands#goto AWS COSOLE create 2 blocks with 2G & 3Glsblkfound xvdf xvdgyum install -y lvm2# create physical volumepvcreate /dev/xvdf /dev/xvdg#show physcia
证书管理https://rancher.com/docs/rancher/v2.5/en/installation/install-rancher-on-k8s/#4-install-cert-managerInstall the CustomResourceDefinition resources separatelykubectl apply --validate=false -f https
架构图,3个节点都是worker并且包含etcd使用rke config 生成配置文件rke config --name cluster.yml rke config --print 回答问题,该程序写错要重来,别问我跑了几次最终会生成一个cluster.yml的文件# If you intened to deploy Kubernetes in an air-gapped environment
官网文档https://rancher.com/docs/rancher/v1.6/zh/installing-rancher/installing-server/#multi-nodes术语Rancher服务器管理和配置Kubernetes集群。您可以通过Rancher服务器的用户界面与下游Kubernetes集群进行交互。 RKE(Rancher Kubernetes引擎)是经过认证的Kube
OSI的七层模型,OSI七层协议模型主要是:应用层(Application)、表示层(Presentation)、会话层(Session)、传输层(Transport)、网络层(Network)、数据链路层(Data Link)、物理层(Physical)。TCP的握手协议握手与四次挥手所谓三次握手(Three-way Handshake),是指建立一个 TCP 连接时,需要客户端和服务器总共发送
Splunk提供了三种forwarder,分别是universal forwarder、heavy forwarder和light forwarder。universal forwarder相对于其他两种最重要的优点是:它能够极大地减少对主机硬件资源的占用。但是,它也做出了一定的牺牲,比如不支持查询和建立数据索引。它们具体的官方解释请见:universal forwarder、heavy、ligh
每隔组件有分开的conf注意配置文件的顺序、第一优先级是系统本地目录。其次是应用程序本地目录。第三是应用程序默认目录,也是所有目录的系统。因此,如果您安装了Splunk,但未进行任何配置或任何操作,则它将一直持续下去第四,因为将没有其他配置或应用程序,它将仅在以下位置运行Splunk
Splunk 用户角色和认证
Splunk deployment server 自动部署可以通过ad来部署powershell脚本来手机windows 日志
Splunk report & alert index="_internal" log_level="info"保存至报警可以选择定时或者随时出现报警之后所需要的操作到报表这里就可以看到自己创建的报表了
Splunk dashboard 可视化数据只看3个月内数据每天1个每天的磁盘大小添加source ip addressip颜色区分开来根据level来区分color by level 或者用柱状图,这个和grafana就很类似了搜索之后选择可视化tabsave as dahsboard变成100%,看看不同的百分比然后就可以投到大屏了
Splunk data module 数据模型
统计usr的排序rare state
时间范围三种搜索方式,如果您非常了解自己的数据并确切知道要包含在哪些字段中,请选择快速模式您的搜索并选择详细模式。如果您不太了解数据,并且希望Splunk尝试发现每个数据我们选择智能模式智能模式可以在事件搜索中发现字段,但不能在命令搜索(如下面的统计信息)中,我们有要搜索的框可以在数据摘要这里发现数据来源
splunk语法
安装好了,后面是配置从哪里捞数据配置接受数据端口配置发送数据端口配置授权重启服务添加数据源文件搜索器完成
https://www.splunk.com/en_us/download/splunk-enterprise.htmlwget -O splunk-8.0.6-152fb4b2bb96-linux-2.6-x86_64.rpm 'https://www.splunk.com/bin/splunk/DownloadActivityServlet?architecture=x86_64&pl
# Flux demo repository https://github.com/wardviaene/flux-demo # Installation ``` kubectl create ns flux export GHUSER="YOURUSER" fluxctl install \ --git-user=${GHUSER} \ --git-email=${GHUSER}@users.n
# install jenkins ``` kubectl create -f serviceaccount.yaml helm install --name jenkins --set rbac.create=true,master.runAsUser=1000,master.fsGroup=1000 stable/jenkins ``` [root@k7smaster jenkins]# ca
[root@k7smaster helm]# cat setup-s3-helm-repo.sh #!/bin/bash set -e # create random string RANDOM_STRING=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | tr '[:upper:]' '[:lower:]' | head -n 1) #
什么鬼代码,以为梯子挂了准备ctrl+c,结果自己好了[root@k7smaster demo-chart]# helm dependency update Hang tight while we grab the latest from your chart repositories... ...Unable to get an update from the "local" chart rep
[root@k7smaster ~]# helm create mychart Creating mychart [root@k7smaster demo-chart]# ll 总用量 20 -rw-r--r-- 1 root root 106 9月 9 13:20 Chart.yaml -rw-r--r-- 1 root root 225 9月 9 13:20 README.md -rw-r--
# Helm ## Install helm (helm <3.0) ``` wget https://storage.googleapis.com/kubernetes-helm/helm-v2.11.0-linux-amd64.tar.gz tar -xzvf helm-v2.11.0-linux-amd64.tar.gz sudo mv linux-amd64/helm /usr/lo
# etcd ## HA Cluster ``` kops create cluster --name=kubernetes.newtech.academy --state=s3://kops-state-b429b --zones eu-west-1a,eu-west-1b,eu-west-1c --master-zones eu-west-1a,eu-west-1b,eu-west-1c --
https://raft.github.io/
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号