k8s学习


前言

提示:这里可以添加本文要记录的大概内容:
学习ks8第一天开始部署的方式


提示:以下是本篇文章正文内容,下面案例可供参考

一、k8s部署方式

出现的问题k8s部署问题

sts". This can take up to 4m0s
[kubelet-check] Initial timeout of 40s passed.

    Unfortunately, an error has occurred:
            timed out waiting for the condition

    This error is likely caused by:
            - The kubelet is not running
            - The kubelet is unhealthy due to a misconfiguration of the node in some way (required cgroups disabled)

    If you are on a systemd-powered system, you can try to troubleshoot the error with the following commands:
            - 'systemctl status kubelet'
            - 'journalctl -xeu kubelet'

    Additionally, a control plane component may have crashed or exited when started by the container runtime.
    To troubleshoot, list all containers using your preferred container runtimes CLI.

    Here is one example how you may list all Kubernetes containers running in docker:
            - 'docker ps -a | grep kube | grep -v pause'
            Once you have found the failing container, you can inspect its logs with:
            - 'docker logs CONTAINERID'

error execution phase wait-control-plane: couldn’t initialize a Kubernetes cluster
To see the stack trace of this error execute with --v=5 or higher
[root@k8s-master ~]# kubeadm config print init-defaults > init.default.yaml
W1128 13:29:56.206235 89761 configset.go:202] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io]
[root@k8s-master ~]# vi init.default.yaml
[root@k8s-master ~]# systemctl restart kubelet
[root@k8s-master ~]# kubeadm config images pull --config=init.default.yaml
W1128 13:30:23.803498 90232 configset.go:202] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io]
failed to pull image “k8s.gcr.io/kube-apiserver:v1.18.0”: output: Error response from daemon: Get https://k8s.gcr.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
, error: exit status 1
To see the stack trace of this error execute with --v=5 or higher


出现这个错误,我服了

[preflight] If you know what you are doing, you can make a check non-fatal with --ignore-preflight-errors=...
To see the stack trace of this error execute with --v=5 or higher
kubeadm reset

这个问题出现时间太久了,我之前部署过一次,就是重新启动服务,然后结束服务,成功进行,现在不管是重新启动或者加入的方式就是无法重新启动,启动,获取token值的方式,真的k8s太难了
我服了

我终于发现错误了

我的ip地址错误了

上面一直给我提示服务没有启动或者主机地址不存的的方式

我服了

一边学习k8s一边学习项目问题

今天做一个第一个项目的方式,我的第一个项目的名称,第一个项目是是什么我想想

二、学习k8s的方式

今天主要配置k8s环境的方式

今天遇到的是一个在k8s进行初始化的方式,但是发现k8s不能正常初始化总是出现错误,或者在错误中有问题的方式,在网上查询挺多资料需要重新启动kub文件,删除kub文件的方法是就可以重新进行一个启动方式,因为存在一个什么问题,具体什么问题,其实我也没有搞清楚,但是不知道

1.引入库

2.读入数据

代码如下(示例):


总结

相关推荐

  1. k8s学习

    2023-12-05 20:36:02       33 阅读
  2. <span style='color:red;'>学习</span><span style='color:red;'>k</span><span style='color:red;'>8</span><span style='color:red;'>s</span>

    学习k8s

    2023-12-05 20:36:02      31 阅读
  3. K8S学习

    2023-12-05 20:36:02       29 阅读
  4. k8s学习

    2023-12-05 20:36:02       32 阅读
  5. <span style='color:red;'>k</span><span style='color:red;'>8</span><span style='color:red;'>s</span><span style='color:red;'>学习</span>

    k8s学习

    2023-12-05 20:36:02      22 阅读
  6. <span style='color:red;'>k</span><span style='color:red;'>8</span><span style='color:red;'>s</span><span style='color:red;'>学习</span>

    k8s学习

    2023-12-05 20:36:02      18 阅读
  7. <span style='color:red;'>K</span><span style='color:red;'>8</span><span style='color:red;'>S</span><span style='color:red;'>学习</span>

    K8S学习

    2023-12-05 20:36:02      10 阅读
  8. k8s学习路线

    2023-12-05 20:36:02       24 阅读

最近更新

  1. TCP协议是安全的吗?

    2023-12-05 20:36:02       16 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2023-12-05 20:36:02       16 阅读
  3. 【Python教程】压缩PDF文件大小

    2023-12-05 20:36:02       15 阅读
  4. 通过文章id递归查询所有评论(xml)

    2023-12-05 20:36:02       18 阅读

热门阅读

  1. xxl-job分布式定时任务

    2023-12-05 20:36:02       41 阅读
  2. SpringBoot整合Logback

    2023-12-05 20:36:02       36 阅读
  3. c++的文件读写

    2023-12-05 20:36:02       36 阅读
  4. 常用类与比较器

    2023-12-05 20:36:02       35 阅读
  5. Leetcode128.最长连续序列

    2023-12-05 20:36:02       32 阅读
  6. 如何保护 API 安全

    2023-12-05 20:36:02       40 阅读
  7. Diary17-Word页面设计

    2023-12-05 20:36:02       47 阅读
  8. 【lua】获取某月最大天数

    2023-12-05 20:36:02       30 阅读
  9. 【Android 线程】在子线程中更新UI

    2023-12-05 20:36:02       39 阅读
  10. spark学习一-------------------Spark算子最详细介绍

    2023-12-05 20:36:02       35 阅读