目录

1.什么是YAML文件

2.systemctl

3.安装时候查看失败的镜像

4.SELINUX值为disabled

5.初始化kubeadm端口被占用-使用kubeadm reset重置

6.echo "export KUBECONFIG=/etc/kubernetes/admin.conf" >> /etc/profile解决8080端口被拒绝

7.主节点启动成功

8.Node节点加入集群成功

9.查看集群中拥有的节点

11.不能建立SSL连接

12.小工具lrzsz

13.kubectl apply -f kube-flannel.yml

14.kube-flannel镜像拉取失败的问题

15.kubectl是go语言写的


1.什么是YAML文件

什么是YAML文件

2.systemctl

systemctl

3.安装时候查看失败的镜像

4.SELINUX值为disabled

kubeadm init错误-阅读链接

5.初始化kubeadm端口被占用-使用kubeadm reset重置

初始化kubeadm出错-端口被占用的错误

6.echo "export KUBECONFIG=/etc/kubernetes/admin.conf" >> /etc/profile解决8080端口被拒绝

The connection to the server localhost:8080 was refused - did you specify the right host or port?解决--对我的情况来说是有效的,我在用kubectl get nodes查看的时候报了这个错

echo "export KUBECONFIG=/etc/kubernetes/admin.conf" >> /etc/profile

7.主节点启动成功

[root@master muten]# kubeadm init --apiserver-advertise-address=192.168.244.139 --image-repository registry.aliyuncs.com/google_containers --kubernetes-version v1.19.6 --service-cidr=10.96.0.0/12 --pod-network-cidr=10.244.0.0/16
W0209 18:07:22.511138   21320 configset.go:348] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io]
[init] Using Kubernetes version: v1.19.6
[preflight] Running pre-flight checks
[preflight] Pulling images required for setting up a Kubernetes cluster
[preflight] This might take a minute or two, depending on the speed of your internet connection
[preflight] You can also perform this action in beforehand using 'kubeadm config images pull'
[certs] Using certificateDir folder "/etc/kubernetes/pki"
[certs] Generating "ca" certificate and key
[certs] Generating "apiserver" certificate and key
[certs] apiserver serving cert is signed for DNS names [kubernetes kubernetes.default kubernetes.default.svc kubernetes.default.svc.cluster.local master] and IPs [10.96.0.1 192.168.244.139]
[certs] Generating "apiserver-kubelet-client" certificate and key
[certs] Generating "front-proxy-ca" certificate and key
[certs] Generating "front-proxy-client" certificate and key
[certs] Generating "etcd/ca" certificate and key
[certs] Generating "etcd/server" certificate and key
[certs] etcd/server serving cert is signed for DNS names [localhost master] and IPs [192.168.244.139 127.0.0.1 ::1]
[certs] Generating "etcd/peer" certificate and key
[certs] etcd/peer serving cert is signed for DNS names [localhost master] and IPs [192.168.244.139 127.0.0.1 ::1]
[certs] Generating "etcd/healthcheck-client" certificate and key
[certs] Generating "apiserver-etcd-client" certificate and key
[certs] Generating "sa" key and public key
[kubeconfig] Using kubeconfig folder "/etc/kubernetes"
[kubeconfig] Writing "admin.conf" kubeconfig file
[kubeconfig] Writing "kubelet.conf" kubeconfig file
[kubeconfig] Writing "controller-manager.conf" kubeconfig file
[kubeconfig] Writing "scheduler.conf" kubeconfig file
[kubelet-start] Writing kubelet environment file with flags to file "/var/lib/kubelet/kubeadm-flags.env"
[kubelet-start] Writing kubelet configuration to file "/var/lib/kubelet/config.yaml"
[kubelet-start] Starting the kubelet
[control-plane] Using manifest folder "/etc/kubernetes/manifests"
[control-plane] Creating static Pod manifest for "kube-apiserver"
[control-plane] Creating static Pod manifest for "kube-controller-manager"
[control-plane] Creating static Pod manifest for "kube-scheduler"
[etcd] Creating static Pod manifest for local etcd in "/etc/kubernetes/manifests"
[wait-control-plane] Waiting for the kubelet to boot up the control plane as static Pods from directory "/etc/kubernetes/manifests". This can take up to 4m0s
[apiclient] All control plane components are healthy after 5.502379 seconds
[upload-config] Storing the configuration used in ConfigMap "kubeadm-config" in the "kube-system" Namespace
[kubelet] Creating a ConfigMap "kubelet-config-1.19" in namespace kube-system with the configuration for the kubelets in the cluster
[upload-certs] Skipping phase. Please see --upload-certs
[mark-control-plane] Marking the node master as control-plane by adding the label "node-role.kubernetes.io/master=''"
[mark-control-plane] Marking the node master as control-plane by adding the taints [node-role.kubernetes.io/master:NoSchedule]
[bootstrap-token] Using token: ribaxq.5em1azk4rbyp556k
[bootstrap-token] Configuring bootstrap tokens, cluster-info ConfigMap, RBAC Roles
[bootstrap-token] configured RBAC rules to allow Node Bootstrap tokens to get nodes
[bootstrap-token] configured RBAC rules to allow Node Bootstrap tokens to post CSRs in order for nodes to get long term certificate credentials
[bootstrap-token] configured RBAC rules to allow the csrapprover controller automatically approve CSRs from a Node Bootstrap Token
[bootstrap-token] configured RBAC rules to allow certificate rotation for all node client certificates in the cluster
[bootstrap-token] Creating the "cluster-info" ConfigMap in the "kube-public" namespace
[kubelet-finalize] Updating "/etc/kubernetes/kubelet.conf" to point to a rotatable kubelet client certificate and key
[addons] Applied essential addon: CoreDNS
[addons] Applied essential addon: kube-proxyYour Kubernetes control-plane has initialized successfully!To start using your cluster, you need to run the following as a regular user:mkdir -p $HOME/.kubesudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/configsudo chown $(id -u):$(id -g) $HOME/.kube/configYou should now deploy a pod network to the cluster.
Run "kubectl apply -f [podnetwork].yaml" with one of the options listed at:https://kubernetes.io/docs/concepts/cluster-administration/addons/Then you can join any number of worker nodes by running the following on each as root:kubeadm join 192.168.244.139:6443 --token ribaxq.5em1azk4rbyp556k \--discovery-token-ca-cert-hash sha256:b4ec8b44e81cc9c35d34c327095fb37c793537b25c396f492c83a8af46a5a22d 

8.Node节点加入集群成功

9.查看集群中拥有的节点

10.关于raw.githubusercontent.com无法连接的问题

关于raw.githubusercontent.com无法连接的问题

11.不能建立SSL连接

Unable to establish SSL connection

12.小工具lrzsz

lrzsz是什么?

13.kubectl apply -f kube-flannel.yml

14.kube-flannel镜像拉取失败的问题

Kubernetes Pod 提示: Init:ImagePullBackOff

另一个链接

15.kubectl是go语言写的

一个源码链接

2021-02-09-今日K8S环境搭建记录相关推荐

  1. TensorRT 环境搭建记录

    TensorRT 环境搭建记录 文章目录 TensorRT 环境搭建记录 1.TensorRT介绍 2.使用TensorRT总目标 3.Centos下TensorRT环境搭建(Ubuntu一样) 4. ...

  2. 极简darknet环境搭建记录

    <极简darknet环境搭建记录>   darknet的环境搭建已经非常简单了,但是偶尔的一点小坑,可能会浪费一些时间,比如编译的时候使用CUDA报错,或者没找到OpenCV-简单记录一下 ...

  3. MIT Mini Cheetah–开源代码仿真环境搭建记录(Ubuntu20.04)

    MIT Mini Cheetah–开源代码仿真环境搭建记录(Ubuntu20.04) 一.安装依赖包 sudo apt install mesa-common-dev freeglut3-dev co ...

  4. Linux环境搭建记录——GitLab安装

    Linux环境搭建记录 GitLab安装 GitLab安装 更多GitLab详细信息请参考:GitLab官方文档 分步指南 获取GitLab资源 可以访问 https://mirrors.tuna.t ...

  5. Linux环境搭建记录——Jenkins安装

    Linux环境搭建记录 Jenkins安装 Jenkins升级 Jenkins插件离线安装 构件Jenkins项目 Jenkins安装 更多Jenkins详细信息请参考:Jenkins官方文档 分步指 ...

  6. Hibernate 系列 02 - Hibernate介绍及其环境搭建

    引导目录: Hibernate 系列教程 目录 昨晚喝多了,下午刚清醒,继续搞Hibernate.走起. 觉得还行的话,记得点赞哈,给我这个渣渣点学习的动力.有错误的话也请指出,省的我在错误上走了不归 ...

  7. linux ubuntu安装pytorch(深度学习环境搭建记录,无sudo权限)踩坑全记录

    一些牢骚:深度学习没怎么学习几次,搭建环境已经把我搞秃了哈哈哈. 之前在网上找到的搭建环境的步骤,我没有root权限,很多操作都不行(比如运行.run文件,cuda 和cudnn的安装和修改也需要ro ...

  8. PX4环境搭建记录(ROS+Gazebo+mavros+PX4+QGC)

    全过程记录PX4环境搭建(ROS+Gazebo+Mavros+PX4+QGC) 本人飞控专业在读,近段时间在老师的建议下,开始搭建PX4环境配置.因为并没有之前相关环境配置的经验,所以走了不少弯路,在 ...

  9. Windows下Qt编写Android应用程序的环境搭建记录

    目录 前言 配置开发环境 安装JDK1.8 安装SDK 安装NDK Qt配置OpenCV C++&Java混合编程 结语 前言 由于要在手机上实现一些应用,例如部署目标检测模型.添加单目测距定 ...

最新文章

  1. java opcode 反汇编,OPCode详解及汇编与反汇编原理
  2. oracle:ORA-01940无法删除当前已连接用户的解决方案
  3. c语言坐标三角形判断,【C语言】判断三角形类型(示例代码)
  4. 牛客练习赛46 C 华华跟奕奕玩游戏 (期望,概率)(详解)
  5. asp.netcore3.0 使用 DbProviderFactories 连接数据库
  6. 开发板屏幕截图-适用于本公司海思和智源平台
  7. python执行效率有多低_python – Scapy的低性能
  8. 2.ELK stack 集群 搭建
  9. android模拟器模拟nfc功能吗,android – 开始使用NFC模拟器
  10. PHP生成缩略图、加水印
  11. matlab线性拟合
  12. 故障处理——阿里云服务器无法向外发送邮件
  13. mac bootcamp 安装 win7
  14. C++模板 —— 万字带你了解C++模板(蓝桥杯算法比赛必备知识STL基础)
  15. 客户端解析html5,基于HTML5的WebGIS实时客户端设计
  16. 指向结构体类型的指针
  17. java String、Json对象与byte数组转换
  18. 祥云杯-re复现 (未完待续)
  19. 翻译:《实用的Python编程》01_04_Strings
  20. 意淫系列-2018美图春招笔试题

热门文章

  1. j2ee常用工作流比较(shart、osworkflow、jbpm)
  2. php调色板快捷键,ps常用的调色快捷键有哪些?
  3. python脚本名_python获取类名函数名、脚本路径
  4. 在ubuntu 18上进行NPB和mpiP的整合
  5. java中compare语句的用法,compare的用法_java中 compareTo()的程序代码及用法
  6. 江涛与《再给我十年》
  7. 如何成为一个成熟男人
  8. linux修改组群名字,Linux用户和组 - 回忆斑斑驳驳的个人空间 - OSCHINA - 中文开源技术交流社区...
  9. 分享一个短视频在线去水印接口
  10. Android跟我一起来开发--微影之架构篇