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

网站关键词优化软件佛山网站企业

网站关键词优化软件,佛山网站企业,社区门户网站模板,服装厂做1688网站效果好不好最近正在学习kubernetes#xff0c;买了一套《Kubernetes权威指南 从Docker到Kubernetes实践全接触(第六版)》这本书讲得很好#xff0c;上下两册#xff0c;书中k8s的版本是V1.29#xff0c;目前官网最新版本是v1.30。强烈建议大家买一套看看。 Kubernetes官网地址#x…        最近正在学习kubernetes买了一套《Kubernetes权威指南 从Docker到Kubernetes实践全接触(第六版)》这本书讲得很好上下两册书中k8s的版本是V1.29目前官网最新版本是v1.30。强烈建议大家买一套看看。 Kubernetes官网地址Kubernetes 最近按照官网搭建了Kubernetes v1.30版本的集群来回弄了十多遍最后整理一下具体步骤方便以后自己查看。 1、版本说明 笔记本电脑系统Windows 11 专业工作站版 vagrant版本v2.4.1 virtualBox版本7.0.20 系统版本centos stream 9 Kubernetes版本最新版(v1.30) docker版本27.1.1 节点主机名ip主节点k8s-master172.31.0.10节点1k8s-node1172.31.0.11节点2k8s-node2172.31.0.12 2、安装vagrant vagrant官网下载地址Install | Vagrant | HashiCorp Developer 这里我们下载Windows版的vagrant_2.4.1_windows_amd64.msi安装包双击后进行安装 勾选I accept the terms in the License Agreement点击Install进行安装。 点击Finish然后点击Yes重启电脑。 重启之后我们的vagrant就可以使用了。 3、安装Virtualbox Virtualbox下载地址 下载VirtualBox-7.0.20-163906-Win.exehttps://download.virtualbox.org/virtualbox/7.0.20/VirtualBox-7.0.20-163906-Win.exe安装包。 然后进行安装 virtualbox默认是安装在c盘我不想安装在c盘修改到了d盘在安装过程中出现了下面的报错 然后在打开cmd命令行执行下面官网说的命令 注意命令中的D:\virtualbox换成自己virtualbox的安装路径。下面的命令一行一行地执行。 icacls D:\virtualbox /reset /t /c icacls D:\virtualbox /inheritance:d /t /c icacls D:\virtualbox /grant *S-1-5-32-545:(OI)(CI)(RX) icacls D:\virtualbox /deny *S-1-5-32-545:(DE,WD,AD,WEA,WA) icacls D:\virtualbox /grant *S-1-5-11:(OI)(CI)(RX) icacls D:\virtualbox /deny *S-1-5-11:(DE,WD,AD,WEA,WA) 命令执行成功后继续接下来的步骤。 这样virtualbox就安装完成了。安装完之后记得重启一下电脑。 然后鼠标点击网络右键选择属性。 点击 更改适配器设置 看一下自己网络中virtualBox是哪个以太网我的是以太网7。 然后在cmd命令行中输入 ipconfig 找到 以太网适配器 以太网 7 对应的 IPv4地址 172.31.0.1 大家要记一下这个地址172.31.0.1(这个是我的记你们自己的哈。)在接下来配置docker网络时会用到。 4、使用Vagrant快速安装Centos stream 9虚拟机并自动在虚拟机中安装好Docker。 4.1、首先在D盘创建一个vagrant的文件夹(可以自定义其他的目录)然后在文件夹中创建名为centos_stream_9的文件夹。然后创建名为Vagrantfile的文件。注意这个文件就叫这个名字不能更改。 Vagrant学习文档地址Documentation | Vagrant | HashiCorp Developer 重要这个文件内容可以不用改直接用就行。具体看看其中1.9.2的笔记。 Vagrantfile的文件内容如下 # -*- mode: ruby -*- # vi: set ftruby :# All Vagrant configuration is done below. The 2 in Vagrant.configure # configures the configuration version (we support older styles for # backwards compatibility). Please dont change it unless you know what # youre doing. Vagrant.configure(2) do |config|# The most common configuration options are documented and commented below.# For a complete reference, please see the online documentation at# https://docs.vagrantup.com.# Every Vagrant development environment requires a box. You can search for# boxes at https://vagrantcloud.com/search.config.vm.box eurolinux-vagrant/centos-stream-9config.vm.box_version 9.0.45# 虚拟机主机名称config.vm.hostname k8s-master# 磁盘大小config.vm.disk :disk, name: k8s-master, size: 40GB# Disable automatic box update checking. If you disable this, then# boxes will only be checked for updates when the user runs# vagrant box outdated. This is not recommended.# config.vm.box_check_update false# Create a forwarded port mapping which allows access to a specific port# within the machine from a port on the host machine. In the example below,# accessing localhost:8080 will access port 80 on the guest machine.# NOTE: This will enable public access to the opened port# config.vm.network forwarded_port, guest: 80, host: 8080# Create a forwarded port mapping which allows access to a specific port# within the machine from a port on the host machine and only allow access# via 127.0.0.1 to disable public access# config.vm.network forwarded_port, guest: 80, host: 8080, host_ip: 127.0.0.1# Create a private network, which allows host-only access to the machine# using a specific IP.# 指定虚拟机网络ip为172.31.0.10config.vm.network private_network, ip: 172.31.0.10# Create a public network, which generally matched to bridged network.# Bridged networks make the machine appear as another physical device on# your network.# config.vm.network public_network, bridge: Intel(R) Wi-Fi 6 AX200 160MHz# Share an additional folder to the guest VM. The first argument is# the path on the host to the actual folder. The second argument is# the path on the guest to mount the folder. And the optional third# argument is a set of non-required options.# config.vm.synced_folder ../data, /vagrant_data# Disable the default share of the current code directory. Doing this# provides improved isolation between the vagrant box and your host# by making sure your Vagrantfile isnt accessible to the vagrant box.# If you use this you may want to enable additional shared subfolders as# shown above.# config.vm.synced_folder ., /vagrant, disabled: true# Provider-specific configuration so you can fine-tune various# backing providers for Vagrant. These expose provider-specific options.# Example for VirtualBox:## config.vm.provider virtualbox do |vb|# # Display the VirtualBox GUI when booting the machine# vb.gui true## # Customize the amount of memory on the VM:# vb.memory 1024# end# VirtaulBox相关配置config.vm.provider virtualbox do |vb| vb.name k8s-master # VirtualBox名称 vb.gui true # 启动机器时显示 VirtualBox GUI vb.memory 8192 # 虚拟机存储大小mb vb.cpus 1 # cpu 大小end# View the documentation for the provider you are using for more# information on available options.# Enable provisioning with a shell script. Additional provisioners such as# Ansible, Chef, Docker, Puppet and Salt are also available. Please see the# documentation for more information about their specific syntax and use.config.vm.provision shell, inline: -SHELL# 1、Docker安装# 1.1、卸载旧版本dockersudo yum remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-engine# 1.2、设置存储库sudo yum install -y yum-utilssudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo# 1.3、安装 Docker Enginesudo yum install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-pluginsudo systemctl enable dockersudo systemctl start docker# 1.4、禁用防火墙sudo systemctl stop firewalldsudo systemctl disable firewalld# 1.5、修改 SSH 配置sudo sed -i s/^#*PasswordAuthentication .*/PasswordAuthentication yes/ /etc/ssh/sshd_configsudo sed -i s/^#*PermitRootLogin .*/PermitRootLogin yes/ /etc/ssh/sshd_config# 1.6、重启 SSH 服务sudo systemctl restart sshd.service# 1.7、修改 root 用户密码echo root:1TdhblkFcdhx2a | sudo chpasswd# 1.8、配置 Docker 镜像加速mkdir -p /etc/dockercat /etc/docker/daemon.json EOF{registry-mirrors: [https://6kx4zyno.mirror.aliyuncs.com,https://registry.docker-cn.com,https://docker.mirrors.ustc.edu.cn],exec-opts: [native.cgroupdriversystemd]} EOF# 1.9、配置HTTP/HTTPS 网络代理 使用Docker的过程中因为网络原因通常需要使用 HTTP/HTTPS 代理来加速镜像拉取、构建和使用。# 为 dockerd 设置网络代理 docker pull 命令是由 dockerd 守护进程执行。而 dockerd 守护进程是由 systemd 管理。因此如果需要在执行 docker pull 命令时使用 HTTP/HTTPS 代理需要通过 systemd 配置。# 1.9.1、为 dockerd 创建配置文件夹。(mkdir -p /etc/systemd/system/docker.service.d)# 1.9.2、为 dockerd 创建 HTTP/HTTPS 网络代理的配置文件文件路径是 /etc/systemd/system/docker.service.d/http-proxy.conf 。并在该文件中添加相关环境变量。# 其中的172.31.0.1就是上面让大家记住的ipconfig输出的 以太网7 对应的IPv4地址。 7890这个端口是docker网络代理的端口这个端口具体是多少可以查看我的另外一篇笔记笔记地址https://note.youdao.com/s/68ALaWKh# 弄不懂的话可以私聊我我告你大家怎么弄。sudo sh -c mkdir -p /etc/systemd/system/docker.service.d \cat EOF /etc/systemd/system/docker.service.d/http-proxy.conf [Service] EnvironmentHTTP_PROXYhttp://172.31.0.1:7890/ EnvironmentHTTPS_PROXYhttp://172.31.0.1:7890/ EnvironmentNO_PROXYlocalhost,127.0.0.1,.example.com EOFsudo systemctl daemon-reloadsudo systemctl restart docker# 2、配置非root用户(Docker)执行docker命令时不使用sudo。# 2.1、创建名为 Docker 的用户sudo useradd Docker# 2.2、设置 Docker 用户的密码echo Docker:1TdhblkFcdhx2a | sudo chpasswd# 2.3、创建名为 docker 的组sudo groupadd docker# 2.4、将用户 Docker 添加到组 dockersudo gpasswd -a Docker docker# 2.5、重启dockersudo systemctl restart dockerSHELL end 1.9.2的笔记学习之后继续下面的步骤 在弹出的cmd命令框中输入下面的命令: vagrant up 等待执行完之后我们就可以得到一台安装好Docker并且运行的centos stream 9的虚拟机。第一次执行的时候因为会下载centos stream 9的镜像文件所以会很慢我大概等了10分钟。成功以后再次安装centos stream 9就很快了。 我们打开virtualbox就可以看到这个虚拟机正在运行。 使用MobaXterm或者其他ssh工具连接这个虚拟机。 MobaXterm下载地址MobaXterm free Xserver and tabbed SSH client for Windows 虚拟机连接信息如下 IP172.31.0.10 用户root 密码1TdhblkFcdhx2a 密码可能有些长这样记忆一条大河波浪宽风吹稻花香两岸。 至此k8s-master节点的虚拟机环境就弄好了。 k8s-node1 和 k8s-node2节点的虚拟机环境搭建请看下一篇文章。 下一篇文章链接 1.2、安装k8s-node1 和 k8s-node2节点虚拟机-CSDN博客
http://www.dnsts.com.cn/news/221636.html

相关文章:

  • 公司网站大顶图怎么做trswcm网站建设
  • 深圳网站营销推广公司腾讯域名注册官网
  • 免费优化网站的软件做网站时分类标题和分类描述
  • 网站后台服务器内部错误网站的引导页怎么做的
  • wordpress能做大站吗抖音直播公会开放平台
  • 自考网站建设与实践网站备案本人承诺
  • 周口公司做网站分类目录网站做排名
  • 购物网站需求分析电影网站怎么做流量
  • 网站开发使用天气api怎么制作html文档
  • 如何推广外贸网站技术支持 金华网站建设
  • 河南平顶山网站建设公司零售商城
  • 个人网站免费源码wordpress无法创建目录
  • 泰州企业自助建站系统微信公众号怎么运营管理
  • 网站头像设计免费制作qq选号网站怎么做的
  • 网站建设广告词腾讯云网站建设视频
  • 网站开发开票内容58同城 网站建设 推广排名
  • 铭万做的网站怎么样农村自建房设计图app
  • 白名单网站有哪些简单的网页设计代码记事本
  • 如何建自己的个人网站互联网推广怎么学
  • icp网站建设天津哪家制作网站好
  • 华资源网站建设企业信息管理系统包括
  • 杭州建设厅官方网站北京旗网站制作
  • 深圳最大的招聘网站是什么自有服务器 建网站
  • 潞城网站建设企业网站推广过程
  • 网络游戏网站网址大全域名和网址是什么关系
  • 买的网站模板会影响wordpress 做成app
  • 天津免费建网站deppt模板网
  • wordpress 免费建站网站建设实验结论
  • 教做粥的网站建设银行泰安培训中心官方网站
  • 做系统前的浏览网站能找回吗玄武区网页设计培训