03 2022 档案
摘要:grep grep -A 显示匹配指定内容及之后的n行 grep -B 显示匹配指定内容及之前的n行 grep -C 显示匹配指定内容及其前后各n行 root@ubuntu2004:~# ifconfig ens33 |grep -o '[0-9]\{1,3\}.[0-9]\{1,3\}.[0-9]
阅读全文
摘要:Java性能优化方向:代码运算性能、内存回收、应用配置。 注:影响Java程序主要原因是垃圾回收,下面会重点介绍这方面 代码层优化:避免过多循环嵌套、调用和复杂逻辑。Tomcat调优主要内容如下:1、增加最大连接数2、调整工作模式3、启用gzip压缩4、调整JVM内存大小5、作为Web时,动静分离6
阅读全文
摘要:1、什么是堆内存? Java 中的堆是 JVM 所管理的最大的一块内存空间,主要用于存放各种类的实例对象。在 Java 中,堆被划分成两个不同的区域: 新生代 ( Young )、老年代 ( Old )。新生代 ( Young ) 又被划分为三个区域: Eden、From Survivor、To S
阅读全文
摘要:[root@localhost ~]# cat install_docker.sh #!/bin/bash # #******************************************************************** #Author: Gexuchuan #****
阅读全文
摘要:取ip [root@localhost ~]# hostname -I| cut -d " " -f1 192.168.80.171 [root@localhost ~]# ifconfig ens33 |head -n2|grep -v ens33 |tr -s " " |cut -d " " -
阅读全文
摘要:[root@localhost data]# useradd -G bin,root -s /bin/csh -c "Gentoo Distribution" gentoo [root@localhost data]# id gentoo uid=1008(gentoo) gid=1008(gent
阅读全文
摘要:[root@localhost data]# rm -rf /data /* #有空格删根 1,find | xargs 文件相关信息:metadata, data 每个文件有三个时间戳: access time 访问时间,atime,读取文件内容 modify time 修改时间,mtime,改变
阅读全文
摘要:date -d @1584689051 +%F_%T 关机: poweroff init 0 shutdown -h now 重启: reboot -f: 强制,不调用shutdown -p: 切断电源 ctrl+alt+delete 三个键 init 6 shutdown -r now 关机或重启
阅读全文
摘要:https://developer.aliyun.com/mirror/ 阿里云镜像 https://mirrors.aliyun.com/rockylinux/8.5/isos/x86_64/Rocky-8.5-x86_64-dvd1.iso https://mirrors.aliyun.com/
阅读全文
摘要:修改镜像 不修改镜像报错 build step "step-image-build-and-push" is pending with reason "Back-off pulling image \"gcr.io/kaniko-project/executor:debug\"" root@mast
阅读全文
摘要:https://tekton.dev/docs/triggers/install/ kubectl apply --filename https://storage.googleapis.com/tekton-releases/triggers/latest/release.yaml kubectl
阅读全文
摘要:root@master01:~/tekton-and-argocd-in-practise/04-tekton-pipeline-in-practise/04-s2i-auto-deploy# cat 01-task-git-clone.yaml apiVersion: tekton.dev/v1b
阅读全文
摘要:root@master01:~/tekton-and-argocd-in-practise/04-tekton-pipeline-in-practise/03-s2i-auto-gen-build-id# cat 01-task-git-clone.yaml apiVersion: tekton.d
阅读全文
摘要:Results简介 ◼ 在Pipeline的Task之间使用同一个共享的Workspace可以完成数据共享,但对于简单的字符串数据的传递,则可以使用Results API完成 ◼ Results用于让Task及其Step保存执行结果,并可在同一Pipeline中的后续Task中调用该结果 在Ta
阅读全文
摘要:root@master01:~/tekton-and-argocd-in-practise/04-tekton-pipeline-in-practise/01-s2i-no-push# cat 01-task-git-clone.yaml apiVersion: tekton.dev/v1beta1
阅读全文
摘要:一,Workspace Workspace是什么? ◼ Workspace用于为Task中的各Step提供工作目录,基于该Task运行的TaskRun需要在运行时提供该目录 ◼ TaskRun的实际运行形式为Pod,因而Workspace对应的实际组件为Pod上的Volume ◆ConfigMap
阅读全文
摘要:在Task和Step上使用Volume Volume可显式定义要在Task和Step上使用的存储卷 ◼ 例如,为Maven指定Cache ◆将下载的模块保存于指定的Volume上,即可由相关的Task和Step重复使用 ◆即便是不同的Pipeline,也能够使用同一个基于PVC等支持多个Pod访问
阅读全文
摘要:istio-1.13.2-linux-amd64.tar.g k8s v1.23.4 k8s v1.23.5 1,准备证书 https://istio.io/latest/docs/setup/install/multicluster/multi-primary_multi-network/ htt
阅读全文
摘要:/root/knative-in-practise/eventing/kafka/05-kafka-broker 部署kafka-broker-01 [root@master 05-kafka-broker]# cat 01-eventing-kafka-controller.yaml |grep
阅读全文
摘要:https://tekton.dev https://tekton.dev/docs/getting-started/ 环境要求 ◼ Tekton Pipelines 0.11.0及以上的版本,需要运行于Kubernetes v1.15以上的集群中; ◼ 集群上要启用了RBAC鉴权插件; ◼ 拥有
阅读全文
摘要:Kafka架构体系 Kafka系统中存在5个关键组件 ◼ Producer ◼ Consumer ◼ Kafka Cluster ◆Broker:Kafka Server,或Kafka Node ◆Zookeeper:集群状态存储 3.0 ◼ Connector:连接应用程序和Topic ◼ S
阅读全文
摘要:链接:https://pan.baidu.com/s/1d7G8bsplDezAgTtT-nGC3g View Code [root@master ~]# kubectl get pods -nkube-system NAME READY STATUS RESTARTS AGE coredns-64
阅读全文
摘要:1,事件简单测试 root@master03:~# kubectl get route -nevent-demo NAME URL READY REASON event-display http://event-display.event-demo.example.com True gitlabso
阅读全文
摘要:1, 部署Gitlab root@master02:/opt/knative-in-practise/eventing/gitlab/deploy# kubectl apply -f . root@master02:/opt/knative-in-practise/eventing/gitlab/d
阅读全文
摘要:文档 https://knative.dev/docs/install/yaml-install/eventing/install-eventing-with-yaml/#prerequisites 部署eventing root@master02:/opt/knative-in-practise/
阅读全文