随笔分类 - Linux
摘要:# 单网卡配置IP地址 network: version: 2 renderer: networkd ethernets: enp131s0: addresses: [ 168.17.0.5/24 ] gateway4: 168.17.0.1 nameservers: addresses: - "1
阅读全文
摘要:hostname > /etc/hostname cat>/etc/hosts<<EOF 127.0.0.1 localhost 168.7.10.234 master01 168.7.10.235 master02 168.7.10.236 cli 168.7.10.237 agent EOF #
阅读全文
摘要:mkdir -p ~/repo.$$ && mv /etc/apt/source.list ~/repo.$$ cat>/etc/apt/source.list<<EOF deb http://mirrors.huaweicloud.com/ubuntu-ports/ bionic main mul
阅读全文
摘要:apiVersion: v1 kind: Pod metadata: name: pod-2 # labels: # run: mytest-pod-2 spec: containers: - imagePullPolicy: IfNotPresent image: httpd name: http
阅读全文
摘要:##################################################### # # 创建CA X509 version 1.0根证书 # ##################################################### #创建证书存放目录 C
阅读全文
摘要:port详解 port:port是k8s集群内部访问service的端口,即通过clusterIP: port可以访问到某个service nodePort:nodePort是外部访问k8s集群中service的端口,通过nodeIP: nodePort可以从外部访问到某个service。 targ
阅读全文
摘要:[root@localhost ~]# kubectl create deployment web01 --image=httpd --port=80 -r 100 -n default --dry-run=client -o yaml [root@localhost ~]# kubectl cre
阅读全文
摘要:#!/bin/bash #向 "根/" 增大的容量 rootsize=100 #定义/home目录的容量 homesize=80 ############################ mkdir -p /bak.$$ && mv /home/* /bak.$$/ util [[ `df -H|
阅读全文
摘要:#!/bin/bash packagename=$1 which yumdownloader || yum install -y yum-utils &>/dev/null ls /bak/pkg || mkdir -p /bakpkg yumdownloader --resolve --destd
阅读全文
摘要:############################################## # # 方式2: # etcd服务的配置文件都定义在etcd.conf中 # 在etcd.service文件中少体现 # ##########################################
阅读全文
摘要:############################################## #!/bin/bash function tls3.encry.ext(){ # 签发加密类型的X509证书文件 ##############################################
阅读全文
摘要:#下载etcd-v3.4.27 wget https://github.com/etcd-io/etcd/releases/download/v3.4.27/etcd-v3.4.27-linux-arm64.tar.gz #######################################
阅读全文
摘要:!/bin/bash function tls3(){ #################################################### # # 创建CA X509 version 3.0根证书 # ######################################
阅读全文
摘要:1、下载docker wget https://download.docker.com/linux/static/stable/aarch64/docker-24.0.5.tgz 2、 下载etcd wget https://github.com/etcd-io/etcd/releases/down
阅读全文
摘要:#################################################### # # 创建CA X509 version 3.0根证书 # #################################################### rm -rf /k8s/t
阅读全文
摘要:在和CA进行一些接触时,我们常常会听到一个名词: X.509。它是一种行业标准或者行业解决方案,在X.509方案中,默认的加密体制是公钥密码体制。为进行身份认证,X.509标准及公共密钥加密系统提供了数字签名的方案。用户可生成一段信息及其摘要(亦称作信息"指纹")。用户用专用密钥对摘要加密以形成签名
阅读全文
浙公网安备 33010602011771号