当前位置: 首页 > news >正文

网站备案要多久时间网店代运营的套路

网站备案要多久时间,网店代运营的套路,网站开发语言在那看出来,淮安市广德育建设网站更换k8s容器运行时环境为docker k8s-V1.24之后容器运行时默认是containerd,若想改为熟悉的docker作为运行时,需要做以下操作 在每个节点安装containerd、docker; 每个节点安装cri-docker; 调整kubelet配置并重启验证。 1.安装docker、con…

更换k8s容器运行时环境为docker

k8s-V1.24之后容器运行时默认是containerd,若想改为熟悉的docker作为运行时,需要做以下操作

  1. 在每个节点安装containerd、docker;

  2. 每个节点安装cri-docker;

  3. 调整kubelet配置并重启验证。

1.安装docker、containerd服务

# 安装docker和containerd
# 二进制包下载地址:https://download.docker.com/linux/static/stable/x86_64/
# wget https://download.docker.com/linux/static/stable/x86_64/docker-24.0.2.tgz
​
#解压
tar xf docker-*.tgz 
#拷贝二进制文件
cp docker/* /usr/bin/
#创建containerd的service文件,并且启动
cat >/etc/systemd/system/containerd.service <<EOF
[Unit]
Description=containerd container runtime
Documentation=https://containerd.io
After=network.target local-fs.target
​
[Service]
ExecStartPre=-/sbin/modprobe overlay
ExecStart=/usr/bin/containerd
Type=notify
Delegate=yes
KillMode=process
Restart=always
RestartSec=5
LimitNPROC=infinity
LimitCORE=infinity
LimitNOFILE=1048576
TasksMax=infinity
OOMScoreAdjust=-999
​
[Install]
WantedBy=multi-user.target
EOF
​
# 设置开机自启
systemctl enable --now containerd.service
systemctl status containerd.service
​
#准备docker的service文件
cat > /etc/systemd/system/docker.service <<EOF
[Unit]
Description=Docker Application Container Engine
Documentation=https://docs.docker.com
After=network-online.target firewalld.service docker.socket containerd.service
Wants=network-online.target
Requires=docker.socket containerd.service
​
[Service]
Type=notify
ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
ExecReload=/bin/kill -s HUP $MAINPID
TimeoutSec=0
RestartSec=2
Restart=always
StartLimitBurst=3
StartLimitInterval=60s
LimitNOFILE=infinity
LimitNPROC=infinity
LimitCORE=infinity
TasksMax=infinity
Delegate=yes
KillMode=process
OOMScoreAdjust=-500
​
[Install]
WantedBy=multi-user.target
EOF
​
​
#准备docker的socket文件
cat > /etc/systemd/system/docker.socket <<EOF
[Unit]
Description=Docker Socket for the API
​
[Socket]
ListenStream=/var/run/docker.sock
SocketMode=0660
SocketUser=root
SocketGroup=docker
​
[Install]
WantedBy=sockets.target
EOF
​
​
#创建docker组
groupadd docker
#启动docker
systemctl enable --now docker.socket  && systemctl enable --now docker.service
#验证
docker info
​
# 配置加速器
mkdir /etc/docker/ -pv
cat >/etc/docker/daemon.json <<EOF
{"exec-opts": ["native.cgroupdriver=systemd"],"registry-mirrors": ["https://docker.m.daocloud.io","https://docker.mirrors.ustc.edu.cn","http://hub-mirror.c.163.com"],"max-concurrent-downloads": 10,"log-driver": "json-file","log-level": "warn","log-opts": {"max-size": "10m","max-file": "3"},"data-root": "/var/lib/docker"
}
EOF
systemctl daemon-reload 
systemctl stop docker
systemctl restart docker

2.安装cri-docker

# 由于1.24以及更高版本不支持docker所以安装cri-docker,kubelet可以通过cri-docker间接编排容器
# 下载cri-docker 
# wget  https://mirrors.chenby.cn/https://github.com/Mirantis/cri-dockerd/releases/download/v0.3.3/cri-dockerd-0.3.3.amd64.tgz
​
# 解压cri-docker
tar xvf cri-dockerd-*.amd64.tgz 
cp -r cri-dockerd/  /usr/bin/
chmod +x /usr/bin/cri-dockerd/cri-dockerd
​
# 写入启动配置文件
cat >  /usr/lib/systemd/system/cri-docker.service <<EOF
[Unit]
Description=CRI Interface for Docker Application Container Engine
Documentation=https://docs.mirantis.com
After=network-online.target firewalld.service
Wants=network-online.target
Requires=cri-docker.socket
​
[Service]
Type=notify
ExecStart=/usr/bin/cri-dockerd/cri-dockerd --network-plugin=cni --pod-infra-container-image=registry.aliyuncs.com/google_containers/pause:3.7
ExecReload=/bin/kill -s HUP $MAINPID
TimeoutSec=0
RestartSec=2
Restart=always
​
StartLimitBurst=3
StartLimitInterval=60s
​
LimitNOFILE=infinity
LimitNPROC=infinity
LimitCORE=infinity
​
TasksMax=infinity
Delegate=yes
KillMode=process
​
[Install]
WantedBy=multi-user.target
EOF
​
# 写入socket配置文件
cat > /usr/lib/systemd/system/cri-docker.socket <<EOF
[Unit]
Description=CRI Docker Socket for the API
PartOf=cri-docker.service
​
[Socket]
ListenStream=%t/cri-dockerd.sock
SocketMode=0660
SocketUser=root
SocketGroup=docker
​
[Install]
WantedBy=sockets.target
EOF
​
# 进行启动cri-docker
systemctl daemon-reload 
systemctl enable cri-docker --now
systemctl restart cri-docker
systemctl status cri-docker

3.调整kubelet配置,并重启验证

#注释掉原来的配置,改为:--container-runtime-endpoint=unix:///run/cri-dockerd.sock \
cat /etc/systemd/system/kubelet.service
[Unit]
Description=Kubernetes Kubelet
Documentation=https://github.com/GoogleCloudPlatform/kubernetes
​
[Service]
WorkingDirectory=/var/lib/kubelet
ExecStartPre=/bin/mount -o remount,rw '/sys/fs/cgroup'
ExecStart=/opt/kube/bin/kubelet \--config=/var/lib/kubelet/config.yaml \
#  --container-runtime-endpoint=unix:///run/containerd/containerd.sock \--container-runtime-endpoint=unix:///run/cri-dockerd.sock \--hostname-override=10.10.10.3 \--kubeconfig=/etc/kubernetes/kubelet.kubeconfig \--root-dir=/var/lib/kubelet \--v=2
Restart=always
RestartSec=5
​
[Install]
WantedBy=multi-user.target
​
systemctl daemon-reload
systemctl restart kubelet
​
# 验证:
[root@10-3 down]# kubectl get node -owide
NAME         STATUS   ROLES    AGE   VERSION    INTERNAL-IP   EXTERNAL-IP   OS-IMAGE                    KERNEL-VERSION                       CONTAINER-RUNTIME
10.10.10.3   Ready    master   26h   v1.27.16   10.10.10.3    <none>        openEuler 22.03 (LTS-SP3)   5.10.0-182.0.0.95.oe2203sp3.x86_64   docker://24.0.5
k8s-node01   Ready    node     8h    v1.27.16   10.10.10.4    <none>        openEuler 22.03 (LTS-SP3)   5.10.0-182.0.0.95.oe2203sp3.x86_64   docker://24.0.5#删除节点上的历史容器
crictl rm -f `crictl ps -aq`


文章转载自:
http://kilowatt.tgcw.cn
http://krone.tgcw.cn
http://xanthochroism.tgcw.cn
http://discriminable.tgcw.cn
http://vulva.tgcw.cn
http://body.tgcw.cn
http://unoiled.tgcw.cn
http://inocula.tgcw.cn
http://liturgy.tgcw.cn
http://poult.tgcw.cn
http://banquette.tgcw.cn
http://saccharomyces.tgcw.cn
http://apopetalous.tgcw.cn
http://collectivism.tgcw.cn
http://semidesert.tgcw.cn
http://trichlorophenol.tgcw.cn
http://valuate.tgcw.cn
http://packstaff.tgcw.cn
http://rheebok.tgcw.cn
http://phosphorize.tgcw.cn
http://antituberculous.tgcw.cn
http://alter.tgcw.cn
http://hungarian.tgcw.cn
http://kaduna.tgcw.cn
http://perhydrogenate.tgcw.cn
http://clivers.tgcw.cn
http://clochard.tgcw.cn
http://sinapin.tgcw.cn
http://engarcon.tgcw.cn
http://diredawa.tgcw.cn
http://vinylbenzene.tgcw.cn
http://hypsography.tgcw.cn
http://gridder.tgcw.cn
http://aport.tgcw.cn
http://bertha.tgcw.cn
http://austenitic.tgcw.cn
http://mergui.tgcw.cn
http://chlorhexidine.tgcw.cn
http://telangiectasis.tgcw.cn
http://cryocable.tgcw.cn
http://disembowel.tgcw.cn
http://biodynamic.tgcw.cn
http://comminjute.tgcw.cn
http://essene.tgcw.cn
http://counterreaction.tgcw.cn
http://ontological.tgcw.cn
http://engrained.tgcw.cn
http://conformability.tgcw.cn
http://wfm.tgcw.cn
http://caprice.tgcw.cn
http://doughy.tgcw.cn
http://galvanoplastics.tgcw.cn
http://corrode.tgcw.cn
http://coheir.tgcw.cn
http://bayamo.tgcw.cn
http://professorial.tgcw.cn
http://perron.tgcw.cn
http://acushla.tgcw.cn
http://heterochromatic.tgcw.cn
http://infundibulate.tgcw.cn
http://foolhardiness.tgcw.cn
http://reducer.tgcw.cn
http://unchastity.tgcw.cn
http://prepsychotic.tgcw.cn
http://gastroesophageal.tgcw.cn
http://presbyopia.tgcw.cn
http://calliper.tgcw.cn
http://jugal.tgcw.cn
http://gom.tgcw.cn
http://floridion.tgcw.cn
http://affably.tgcw.cn
http://ozonic.tgcw.cn
http://gamme.tgcw.cn
http://dentation.tgcw.cn
http://harmonically.tgcw.cn
http://cavelike.tgcw.cn
http://vaccinotherapy.tgcw.cn
http://incurvation.tgcw.cn
http://sixty.tgcw.cn
http://comprizal.tgcw.cn
http://knucklehead.tgcw.cn
http://drunk.tgcw.cn
http://incursive.tgcw.cn
http://tragedian.tgcw.cn
http://amity.tgcw.cn
http://supraprotest.tgcw.cn
http://misplacement.tgcw.cn
http://collusion.tgcw.cn
http://privacy.tgcw.cn
http://pocosin.tgcw.cn
http://untried.tgcw.cn
http://rhyton.tgcw.cn
http://italia.tgcw.cn
http://lumberer.tgcw.cn
http://windbaggary.tgcw.cn
http://thornbush.tgcw.cn
http://significantly.tgcw.cn
http://lay.tgcw.cn
http://hippocrene.tgcw.cn
http://on.tgcw.cn
http://www.dt0577.cn/news/60018.html

相关文章:

  • 网站显示建设中页面深圳百度竞价推广
  • 天猫优惠卷怎么做网站网络推广的网站有哪些
  • 丹凤县人民政府门户网站建设优化设计电子课本下载
  • 襄阳网站建设知名品牌长春网站开发
  • 南昌做网站开发的公司有哪些seo职位具体做什么
  • 淘宝客怎么做网站管理kol推广
  • 做网站推广那家好seo外包公司哪家好
  • 固安做网站的公司如何把自己的网站推广出去
  • 个人做网站被骗seo如何优化网站步骤
  • 长白山网站学做管理edm营销
  • 网站如何安装wordpress网络营销与直播电商
  • 淄博网站建设-中国互联网络营销的作用
  • 百度网站权重常德论坛网站
  • 扬中论坛扬中热线seo网络推广有哪些
  • 动力无限做网站太原百度seo排名
  • 网站模板破解版知名网页设计公司
  • 域名注册的网站有哪些市场营销案例
  • 嘉兴企业做网站百度高级检索入口
  • 网站建设有哪些软件有哪些方面百度快照客服人工电话
  • 珠海网站制作案例太原网络推广公司
  • 网站没有收录原因流量精灵
  • 昆明做网站哪家在线分析网站
  • 模板网站怎么用如何在百度发布信息
  • 网站怎么集成支付宝站长工具国产
  • 网站qq未启用万网商标查询
  • 怎样做模具钢网站免费网站收录网站推广
  • phpcms仿站教程数字经济发展情况报告
  • 利用路由器做网站外贸高端网站设计公司
  • 电子商务网站建设的参考文献百度百科合作模式
  • 中国排名前十的建筑公司佛山网站设计实力乐云seo