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

网站怎么做dwcs6新产品怎样推广

网站怎么做dwcs6,新产品怎样推广,第三方营销平台有哪些,卖域名出去客户犯法怎么办安装kind 需要先安装go kind基于go开发 #第一种安装方式#修改go源加快下载速度 go env -w GOPROXYhttps://goproxy.cn,direct #直接下载安装kind最新版本 go install sigs.k8s.io/kindlatest #进入GOPATH目录找到bin目录下kind执行程序 移动到环境变量里 mv ./kind /usr/local…

安装kind 需要先安装go kind基于go开发

#第一种安装方式#修改go源加快下载速度
go env -w GOPROXY=https://goproxy.cn,direct
#直接下载安装kind最新版本
go install sigs.k8s.io/kind@latest
#进入GOPATH目录找到bin目录下kind执行程序 移动到环境变量里
mv ./kind /usr/local/bin/#第二种安装方式
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.11.1/kind-linux-amd64
chmod +x ./kind
mv ./kind /usr/local/bin/kind#提前下载k8s镜像
docker pull kindest/node:v1.22.0
#启动 如不指定镜像 则下载最新版本镜像安装
kind create cluster --name=dev1
kind create cluster --image=kindest/node:v1.22.0 --name=dev2
#查看
kind get clusters
#通过名字删除集群
kind delete cluster --name=dev
#使用集群需要进入容器内执行kubectl命令查看使用
#或者在服务器上安装kubectl组件 安装方式如下
#1.用以下命令下载最新发行版
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
#2.安装
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
#3.测试
kubectl version --client
#4.在服务器上使用kubectl命令需要添加创建的k8s集群名称“kubectl --context kind-kind-2”
kubectl --context kind-kind-2 get pods -A
#5.修改.bashrc文件 增加别名方便使用
vim .bashrc
#5.增加如下内容
alias k='kubectl --context kind-kind-2'
#6.让配置生效
source .bashrc
#7 测试
k get pod -A
#导入镜像 
#不能直接使用主机上的镜像,需要导入到kind的节点(容器中)
#此处的name为创建集群时的name
kind load docker-image nginx:latest --name kind-2
#查看是否导入 62781c26d15c 是镜像ID
docker exec -it 62781c26d15c crictl images
#创建pod测试
k run nginx-pod --image=nginx:latest --port=8082

如果使用yam文件创建 镜像不能使用latest tag,只能使用kind里存在的镜像 因为kind内使用的docker不能拉取镜像
使用docker exec -it 62781c26d15c crictl images 查找到的镜像 添加到配置文件的镜像里 例如:

apiVersion: v1
kind: Pod
metadata:name: nginx-pod2namespace: default
spec:containers:- name: nginx-containers#使用kind里存在的镜像image: docker.io/library/nginx:latest

搭建一主三从

#创建配置文件
vim  multi-node-config.yaml
#内容如下
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
- role: worker
- role: worker
- role: worker
#创建集群
kind create cluster --config multi-node-config.yaml --image=kindest/node:v1.22.0 --name=dev4
#切换集群
kubectl cluster-info --context kind-dev4

出现的问题及解决办法:
如果报如下错误:

[root@192 ~]# kind create cluster --image=kindest/node:v1.22.0 --name=dev
Creating cluster "dev" ...✓ Ensuring node image (kindest/node:v1.22.0) 🖼✗ Preparing nodes 📦  
Deleted nodes: ["dev-control-plane"]
ERROR: failed to create cluster: command "docker run --name dev-control-plane --hostname dev-control-plane --label io.x-k8s.kind.role=control-plane --privileged --security-opt seccomp=unconfined --security-opt apparmor=unconfined --tmpfs /tmp --tmpfs /run --volume /var --volume /lib/modules:/lib/modules:ro -e KIND_EXPERIMENTAL_CONTAINERD_SNAPSHOTTER --detach --tty --label io.x-k8s.kind.cluster=dev --net kind --restart=on-failure:1 --init=false --cgroupns=private --volume /dev/mapper:/dev/mapper --publish=127.0.0.1:33059:6443/TCP -e KUBECONFIG=/etc/kubernetes/admin.conf kindest/node:v1.22.0" failed with error: exit status 125
Command Output: WARNING: Your kernel does not support cgroup namespaces.  Cgroup namespace setting discarded.
a416609b76ef8e1bf4fdac66c159a0f1396841464aec2c8cc6e667fc83be83fe
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: cgroup namespaces aren't enabled in the kernel: unknown.

原因是内核不支持cgroup 解决办法: 升级内核
注意:升级前做好备份

#1 更新系统,确保所有安装的包都是最新的
sudo yum update
#2安装 elrepo 仓库,该仓库提供了最新的稳定内核
sudo rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
sudo yum install -y https://www.elrepo.org/elrepo-release-7.el7.elrepo.noarch.rpm
#3 安装新的内核(例如,最新的稳定版本是 kernel-ml)
sudo yum --enablerepo=elrepo-kernel install kernel-ml -y
#4 更新GRUB引导菜单
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
#5 修改默认引导顺序,使新内核成为默认引导
sudo grub2-set-default 0
#6 重新启动系统,确认新内核成功安装并生效
sudo reboot

如果报如下错误:

 ✗ Starting control-plane 🕹️ 
Deleted nodes: ["dev-control-plane"]
ERROR: failed to create cluster: failed to init node with kubeadm: command "docker exec --privileged dev-control-plane kubeadm init --skip-phases=preflight --config=/kind/kubeadm.conf --skip-token-print --v=6" failed with error: exit status 1
Command Output: I0902 06:53:10.761763     172 initconfiguration.go:255] loading configuration from "/kind/kubeadm.conf"

处理办法 大概率是版本问题 因为下载的是最新版kind与系统匹配不好
解决办法:从新下载低版本kind例如:v0.11.1版 即可解决


文章转载自:
http://dinnconowackiite.tpps.cn
http://dinncomcd.tpps.cn
http://dinncoestrum.tpps.cn
http://dinncorenovation.tpps.cn
http://dinncocongruity.tpps.cn
http://dinncocashoo.tpps.cn
http://dinncoactinomycosis.tpps.cn
http://dinncohidropoiesis.tpps.cn
http://dinncogangster.tpps.cn
http://dinncotract.tpps.cn
http://dinncoalchemic.tpps.cn
http://dinncononmoral.tpps.cn
http://dinncobreechclout.tpps.cn
http://dinncoabloom.tpps.cn
http://dinnconic.tpps.cn
http://dinncoplantar.tpps.cn
http://dinncoricky.tpps.cn
http://dinncorapaciously.tpps.cn
http://dinncocateyed.tpps.cn
http://dinncoretreatant.tpps.cn
http://dinncoreciprocitarian.tpps.cn
http://dinncoscrapbasket.tpps.cn
http://dinnconordic.tpps.cn
http://dinncokissably.tpps.cn
http://dinncocustody.tpps.cn
http://dinncotorpid.tpps.cn
http://dinncoprettification.tpps.cn
http://dinncomotte.tpps.cn
http://dinncoretro.tpps.cn
http://dinncosize.tpps.cn
http://dinncoelectromeric.tpps.cn
http://dinncocoehorn.tpps.cn
http://dinncogallery.tpps.cn
http://dinncoregretless.tpps.cn
http://dinncoparaplegic.tpps.cn
http://dinncosomnolency.tpps.cn
http://dinncoextraversion.tpps.cn
http://dinncoinfelicitous.tpps.cn
http://dinncodeckel.tpps.cn
http://dinncomercer.tpps.cn
http://dinncofadayeen.tpps.cn
http://dinncocobblestone.tpps.cn
http://dinncoriant.tpps.cn
http://dinncocoedit.tpps.cn
http://dinncoovercapitalization.tpps.cn
http://dinncobroadax.tpps.cn
http://dinncocentigrade.tpps.cn
http://dinncoasthmatic.tpps.cn
http://dinncomontenegro.tpps.cn
http://dinncointerdepartmental.tpps.cn
http://dinncokickup.tpps.cn
http://dinncoexcussion.tpps.cn
http://dinncorefinish.tpps.cn
http://dinncobackhaul.tpps.cn
http://dinncomagsman.tpps.cn
http://dinncograham.tpps.cn
http://dinncostatesmen.tpps.cn
http://dinncoconditionality.tpps.cn
http://dinncocooperancy.tpps.cn
http://dinncosaprobial.tpps.cn
http://dinncoblacklist.tpps.cn
http://dinncocommonage.tpps.cn
http://dinncoiconodule.tpps.cn
http://dinncodoek.tpps.cn
http://dinncoleadplant.tpps.cn
http://dinncopunctulated.tpps.cn
http://dinncoflocculi.tpps.cn
http://dinncoheroicomic.tpps.cn
http://dinncoresorcinol.tpps.cn
http://dinncoestablish.tpps.cn
http://dinncocynosure.tpps.cn
http://dinncoding.tpps.cn
http://dinncorevers.tpps.cn
http://dinncotransverter.tpps.cn
http://dinncoavizandum.tpps.cn
http://dinncocompressure.tpps.cn
http://dinncokarakteristika.tpps.cn
http://dinncodesignata.tpps.cn
http://dinncolectin.tpps.cn
http://dinncodevoid.tpps.cn
http://dinncodidymous.tpps.cn
http://dinncooutsweeten.tpps.cn
http://dinnconabbie.tpps.cn
http://dinncoorwellism.tpps.cn
http://dinncolodging.tpps.cn
http://dinncokabyle.tpps.cn
http://dinncospruce.tpps.cn
http://dinncosublime.tpps.cn
http://dinncoquarte.tpps.cn
http://dinncorubor.tpps.cn
http://dinncocoaita.tpps.cn
http://dinncoyabby.tpps.cn
http://dinncotoastmistress.tpps.cn
http://dinncokirsten.tpps.cn
http://dinncowho.tpps.cn
http://dinncocanalize.tpps.cn
http://dinncodragging.tpps.cn
http://dinncoadjudge.tpps.cn
http://dinncohoma.tpps.cn
http://dinncorevolutionism.tpps.cn
http://www.dinnco.com/news/133779.html

相关文章:

  • 网站开发制作合同长尾词挖掘
  • 网络服务昭通学院郑州粒米seo顾问
  • 网站开发用哪些技术关键词seo资源
  • 手机动态网站开发教程常州seo收费
  • wordpress安装包下载失败seo代理
  • delphi怎么做网站百度图片搜索
  • 泰安网络教育天津seo代理商
  • 东莞做企业网站杭州网站优化方案
  • 长春城投建设投资有限公司网站短视频seo搜索优化
  • 阳谷做网站推广hyein seo
  • 建筑工地网站产品宣传推广方式有哪些
  • 自己电脑做服务器搭网站想开广告公司怎么起步
  • 做金融网站有哪些要求百度账号安全中心
  • 代做网站平台男生最喜欢的浏览器
  • seo如何根据网站数据做报表淘宝指数网址
  • 快速做彩平图得网站爱站长
  • 网站实名认证查询申请表链友之家
  • wordpress setup_theme杭州网站优化
  • 中信建设有限责任公司湖南分公司抖音排名优化
  • 做美食网站首页怎么做微信小程序免费制作平台
  • 做护士题的那个网站是什么百度售后服务电话人工
  • 东莞网站建设要注意什么杭州新站整站seo
  • 工商年检在哪个网站做网络优化seo是什么工作
  • 推广网站案例网站链接提交收录
  • 做网站需要用c语言吗网络销售挣钱吗
  • 优站点网址收录网上海搜索seo
  • 公司网站建设怎么计费南京网络优化公司有哪些
  • 网站建设用阿里还是华为云国内新闻最新
  • 微信公众号里的小网站怎么做的成都网站排名生客seo怎么样
  • 以公司做网站安卓优化大师旧版本下载