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

Minikube Install Kubernetes v1.18.1

在这里插入图片描述

文章目录

  • 简介
  • 安装工具
  • 配置代理
  • 运行集群
  • 检查集群
  • 加入rancher

简介

模拟客户环境,测试 kubernetes v1.18.x 是否可以被 rancher v2.9.1 纳管。

安装工具

  • docker 安装
  • Install and Set Up kubectl on Linux
    • 安装 minikube

配置代理

  • docker proxy
  • linux proxy

运行集群

$ minikube start  --driver=none --container-runtime=docker  --kubernetes-version=v1.18.1

输出:

😄  minikube v1.18.1 on Rocky 8.10
🆕  Kubernetes 1.20.2 is now available. If you would like to upgrade, specify: --kubernetes-version=v1.20.2
✨  Using the none driver based on existing profile
👍  Starting control plane node minikube in cluster minikube
🔄  Restarting existing none bare metal machine for "minikube" ...
ℹ️  OS release is Rocky Linux 8.10 (Green Obsidian)
🌐  Found network options:▪ HTTP_PROXY=http://192.168.21.101:7890▪ HTTPS_PROXY=http://192.168.21.101:7890▪ NO_PROXY=proxyhost,localhost,*.vsphere.local,*.vm.demo,*.tanzu.demo,192.168.21.101,127.0.0.1/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16▪ http_proxy=http://192.168.21.101:7890▪ https_proxy=http://192.168.21.101:7890▪ no_proxy=proxyhost,localhost,*.vsphere.local,*.vm.demo,*.tanzu.demo,192.168.21.101,127.0.0.1/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
🐳  Preparing Kubernetes v1.18.1 on Docker 19.03.15 ...▪ env HTTP_PROXY=http://192.168.21.101:7890▪ env HTTPS_PROXY=http://192.168.21.101:7890▪ env NO_PROXY=proxyhost,localhost,*.vsphere.local,*.vm.demo,*.tanzu.demo,192.168.21.101,127.0.0.1/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16🤹  Configuring local host environment ...❗  The 'none' driver is designed for experts who need to integrate with an existing VM
💡  Most users should use the newer 'docker' driver instead, which does not require root!
📘  For more information, see: https://minikube.sigs.k8s.io/docs/reference/drivers/none/❗  kubectl and minikube configuration will be stored in /root
❗  To use kubectl or minikube commands as your own user, you may need to relocate them. For example, to overwrite your own settings, run:▪ sudo mv /root/.kube /root/.minikube $HOMEsudo chown -R $USER $HOME/.kube $HOME/.minikube💡  This can also be done automatically by setting the env var CHANGE_MINIKUBE_NONE_USER=true
🔎  Verifying Kubernetes components...▪ Using image gcr.io/k8s-minikube/storage-provisioner:v4
🌟  Enabled addons: storage-provisioner, default-storageclass
❗  The cluster minikube already exists which means the --nodes parameter will be ignored. Use "minikube node add" to add nodes to an existing cluster.
🏄  Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default

检查集群

$ kubectl get node
NAME         STATUS   ROLES    AGE    VERSION
minikube01   Ready    <none>   178m   v1.18.1
$ kubectl get pod -A
NAMESPACE     NAME                                 READY   STATUS    RESTARTS   AGE
kube-system   coredns-66bff467f8-rszjx             1/1     Running   0          176m
kube-system   etcd-minikube01                      1/1     Running   1          177m
kube-system   kube-apiserver-minikube01            1/1     Running   0          177m
kube-system   kube-controller-manager-minikube01   1/1     Running   0          177m
kube-system   kube-proxy-nthcz                     1/1     Running   0          176m
kube-system   kube-scheduler-minikube01            1/1     Running   0          177m
kube-system   storage-provisioner                  1/1     Running   1          176m

加入rancher

curl --insecure -sfL https://rancheruat.demo.com.cn/v3/import/gnplffg5965h27mjv4dwbgpvk8qhhpssj896t8vrdnblljhfpx6dhc_c-m-9gpswkpp.yaml | kubectl apply -f -
$ kubectl edit deploy cattle-cluster-agent -n cattle-system
…..dnsPolicy: ClusterFirsthostAliases:- hostnames:- rancheruat.demo.com.cnip: 192.168.23.79restartPolicy: AlwaysschedulerName: default-scheduler
…..$ kubectl edit  sts  fleet-agent  -n cattle-fleet-system
…..dnsPolicy: ClusterFirsthostAliases:- hostnames:- rancheruat.demo.com.cnip: 192.168.23.79restartPolicy: AlwaysschedulerName: default-scheduler

在这里插入图片描述

http://www.lryc.cn/news/431602.html

相关文章:

  • 重修设计模式-创建型-工厂模式
  • 使用Cskin时候 遇到按钮有默认阴影问题解决
  • 121.rk3399 uboot(2017.09) 源码分析1(2024-09-05)
  • 【图论】虚树 - 模板总结
  • [C#学习笔记]注释
  • c# checkbox的text文字放到右边
  • 【node.js】基础之修改文件
  • Notepad++回车不自动补全
  • CSS线性渐变拼接,一个完整的渐变容器(div),要拆分成多个渐变容器(div),并且保持渐变效果一致
  • 【60天备战软考高级系统架构设计师——第十天:软件设计与架构综合练习】
  • 2024.8.15(python管理mysql、Mycat实现读写分离)
  • CMU 10423 Generative AI:lec2
  • 恋爱相亲交友系统源码原生源码可二次开发APP 小程序 H5,web全适配
  • OceanBase 4.x 存储引擎解析:如何让历史库场景成本降低50%+
  • js 如何写构造函数 ,构造函数和普通函数有什么区别
  • MySQL-进阶篇-锁(全局锁、表级锁、行级锁)
  • c++懒汉式单例模式(Singleton)多种实现方式及最优比较
  • Gartner《2024中国安全技术成熟度曲线》AI安全助手代表性产品:开发者安全助手D10
  • 奇安信椒图--服务器安全管理系统(云锁)
  • pointer-events,添加水印的一个小小点
  • 微服务--认识微服务
  • 【docker】docker 镜像仓库的管理
  • 第L2周:机器学习-线性回归
  • SpringMVC拦截器深度解析与实战
  • 直线上最多的点数
  • 经济管理专业数据库介绍
  • 【C++ Primer Plus习题】11.1
  • [数据库][oracle]ORACLE EXP/IMP的使用详解
  • 中国各银行流动性比例数据(2000-2022年)
  • MACOS安装配置前端开发环境