CentOS8下超详细安装配置kubernetes(K8S)

一、环境准备

1. 卸载podman

centos8默认安装了podman容器,它和docker可能有冲突需要卸载掉

sudo yum remove podman

2. 关闭交换区

  • 临时关闭
sudo swapoff -a
  • 永久关闭
    把/etc/fstab中的swap注释掉
sudo sed -i 's/.*swap.*/#&/' /etc/fstab

在这里插入图片描述

3. 禁用selinux

  • 临时关闭
setenforce 0
  • 永久关闭
sudo sed -i "s/^SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config

在这里插入图片描述

4. 关闭防火墙

sudo systemctl stop firewalld.service
sudo systemctl disable firewalld.service

二、安装K8S

1. 配置系统基本安装源

sudo curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo

2. 添加K8S安装源

将如下内容保存到:/etc/yum.repos.d/kubernetes.repo

[kubernetes]
name=Kubernetes
baseurl=https://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64/
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg https://mirrors.aliyun.com/kubernetes/yum/doc/rpm-package-key.gpg

由于目前阿里镜像中还没有CentOS8的kubernetes,但是可以使用CentOS7的安装包,所以上面是使用的kubernetes-el7-x86_64,如果有CentOS8的,则为kubernetes-el8-x86_64。

3. 安装docker

sudo yum install -y yum-utils device-mapper-persistent-data lvm2 net-tools
sudo yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum -y install docker-ce

如果出现错误:

错误:
 问题: package docker-ce-3:19.03.8-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed
  - cannot install the best candidate for the job
  - package containerd.io-1.2.10-3.2.el7.x86_64 is excluded
  - package containerd.io-1.2.13-3.1.el7.x86_64 is excluded
  - package containerd.io-1.2.2-3.3.el7.x86_64 is excluded
  - package containerd.io-1.2.2-3.el7.x86_64 is excluded
  - package containerd.io-1.2.4-3.1.el7.x86_64 is excluded
  - package containerd.io-1.2.5-3.1.el7.x86_64 is excluded
  - package containerd.io-1.2.6-3.3.el7.x86_64 is excluded
(尝试添加 '--skip-broken' 来跳过无法安装的软件包 或 '--nobest' 来不只使用最佳选择的软件包)

可以通过如下方式来解决:

wget https://download.docker.com/linux/centos/7/x86_64/edge/Packages/containerd.io-1.2.6-3.3.el7.x86_64.rpm
yum install containerd.io-1.2.6-3.3.el7.x86_64.rpm

为了docker加速pull,可以设置阿里云加速:

sudo mkdir -p /etc/docker
sudo vim /etc/docker/daemon.json

设置为如下内容:

{
   "registry-mirrors" : ["https://mj9kvemk.mirror.aliyuncs.com"]
}

4. 安装kubectl、kubelet、kubeadm

安装kubectl、kubelet、kubeadm,设置kubelet开机启动,启动kubelet。

sudo yum install -y kubectl kubelet kubeadm
sudo systemctl enable kubelet
sudo systemctl start kubelet

查看K8S版本

kubeadm version
kubectl version --client
kubelet --version

在这里插入图片描述
可以看到kubelet的版本为1.18.5。

5. 初始化kubernetes集群

kubeadm init --apiserver-advertise-address=0.0.0.0 --apiserver-cert-extra-sans=127.0.0.1 --image-repository registry.aliyuncs.com/google_containers --kubernetes-version v1.18.5 --pod-network-cidr=10.18.0.0/16

运行后出现问题:

[root@localhost admin]# kubeadm init --apiserver-advertise-address=0.0.0.0 \
--apiserver-cert-extra-sans=127.0.0.1 \
--image-repository=registry.aliyuncs.com/google_containers \
--ignore-preflight-errors=all \
--kubernetes-version=v1.18.5 \
--service-cidr=10.10.0.0/16 \
--pod-network-cidr=10.18.0.0/16
W0702 16:23:11.951553   16395 configset.go:202] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io]
[init] Using Kubernetes version: v1.18.5
[preflight] Running pre-flight checks
	[WARNING IsDockerSystemdCheck]: detected "cgroupfs" as the Docker cgroup driver. The recommended driver is "systemd". Please follow the guide at https://kubernetes.io/docs/setup/cri/
[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'
  • [WARNING IsDockerSystemdCheck]: detected “cgroupfs” as the Docker cgroup driver. The recommended driver is “systemd”.
    出现[WARNING IsDockerSystemdCheck],是由于docker的Cgroup Driver和kubelet的Cgroup Driver不一致导致的,此处选择修改docker的和kubelet一致

查看docker信息:

docker info | grep Cgroup

在这里插入图片描述
可以看到驱动为Cgroup,需要改为systemd。
编辑文件/usr/lib/systemd/system/docker.service
在ExecStart命令中添加

--exec-opt native.cgroupdriver=systemd

在这里插入图片描述
然后重启docker,再查看信息,可以看到已经变为systemd了

systemctl daemon-reload
systemctl restart docker
docker info | grep Cgroup

在这里插入图片描述
此时再执行下面的命令进行初始化:

kubeadm init --apiserver-advertise-address=0.0.0.0 \
--apiserver-cert-extra-sans=127.0.0.1 \
--image-repository=registry.aliyuncs.com/google_containers \
--ignore-preflight-errors=all \
--kubernetes-version=v1.18.5 \
--service-cidr=10.10.0.0/16 \
--pod-network-cidr=10.18.0.0/16

由于kubeadm 默认从官网k8s.grc.io下载所需镜像,国内无法访问,因此需要通过–image-repository指定阿里云镜像仓库地址。
但是还是出现问题:
在这里插入图片描述

kubeadm init --apiserver-advertise-address=0.0.0.0 --apiserver-cert-extra-sans=127.0.0.1 --image-repository=registry.aliyuncs.com/google_containers --ignore-preflight-errors=all --kubernetes-version=v1.18.5 --service-cidr=10.10.0.0/16 --pod-network-cidr=10.18.0.0/16
W0702 17:47:00.104450   61229 configset.go:202] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io]
[init] Using Kubernetes version: v1.18.5
[preflight] Running pre-flight checks
	[WARNING FileAvailable--etc-kubernetes-manifests-kube-apiserver.yaml]: /etc/kubernetes/manifests/kube-apiserver.yaml already exists
	[WARNING FileAvailable--etc-kubernetes-manifests-kube-controller-manager.yaml]: /etc/kubernetes/manifests/kube-controller-manager.yaml already exists
	[WARNING FileAvailable--etc-kubernetes-manifests-kube-scheduler.yaml]: /etc/kubernetes/manifests/kube-scheduler.yaml already exists
	[WARNING FileAvailable--etc-kubernetes-manifests-etcd.yaml]: /etc/kubernetes/manifests/etcd.yaml already exists
	[WARNING Port-10250]: Port 10250 is in use
	[WARNING Port-2379]: Port 2379 is in use
	[WARNING Port-2380]: Port 2380 is in use
	[WARNING DirAvailable--var-lib-etcd]: /var/lib/etcd is not empty
[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'
	[WARNING ImagePull]: failed to pull image registry.aliyuncs.com/google_containers/kube-apiserver:v1.18.5: output: Error response from daemon: manifest for registry.aliyuncs.com/google_containers/kube-apiserver:v1.18.5 not found: manifest unknown: manifest unknown
, error: exit status 1
	[WARNING ImagePull]: failed to pull image registry.aliyuncs.com/google_containers/kube-controller-manager:v1.18.5: output: Error response from daemon: manifest for registry.aliyuncs.com/google_containers/kube-controller-manager:v1.18.5 not found: manifest unknown: manifest unknown
, error: exit status 1
	[WARNING ImagePull]: failed to pull image registry.aliyuncs.com/google_containers/kube-scheduler:v1.18.5: output: Error response from daemon: manifest for registry.aliyuncs.com/google_containers/kube-scheduler:v1.18.5 not found: manifest unknown: manifest unknown
, error: exit status 1
	[WARNING ImagePull]: failed to pull image registry.aliyuncs.com/google_containers/kube-proxy:v1.18.5: output: Error response from daemon: manifest for registry.aliyuncs.com/google_containers/kube-proxy:v1.18.5 not found: manifest unknown: manifest unknown
, error: exit status 1
[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
[certs] Using certificateDir folder "/etc/kubernetes/pki"
[certs] Using existing ca certificate authority
[certs] Using existing apiserver certificate and key on disk
[certs] Using existing apiserver-kubelet-client certificate and key on disk
[certs] Using existing front-proxy-ca certificate authority
[certs] Using existing front-proxy-client certificate and key on disk
[certs] Using existing etcd/ca certificate authority
[certs] Using existing etcd/server certificate and key on disk
[certs] Using existing etcd/peer certificate and key on disk
[certs] Using existing etcd/healthcheck-client certificate and key on disk
[certs] Using existing apiserver-etcd-client certificate and key on disk
[certs] Using the existing "sa" key
[kubeconfig] Using kubeconfig folder "/etc/kubernetes"
[kubeconfig] Using existing kubeconfig file: "/etc/kubernetes/admin.conf"
[kubeconfig] Using existing kubeconfig file: "/etc/kubernetes/kubelet.conf"
[kubeconfig] Using existing kubeconfig file: "/etc/kubernetes/controller-manager.conf"
[kubeconfig] Using existing kubeconfig file: "/etc/kubernetes/scheduler.conf"
[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"
W0702 17:47:17.258210   61229 manifests.go:225] the default kube-apiserver authorization-mode is "Node,RBAC"; using "Node,RBAC"
[control-plane] Creating static Pod manifest for "kube-scheduler"
W0702 17:47:17.261156   61229 manifests.go:225] the default kube-apiserver authorization-mode is "Node,RBAC"; using "Node,RBAC"
[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

应该是阿里云镜像中还没有1.18.5的相关文件,改为1.18.2试试:

kubeadm init --apiserver-advertise-address=0.0.0.0 --apiserver-cert-extra-sans=127.0.0.1 --image-repository=registry.aliyuncs.com/google_containers --ignore-preflight-errors=all --kubernetes-version=v1.18.2 --service-cidr=10.10.0.0/16 --pod-network-cidr=10.18.0.0/16

成功了:
在这里插入图片描述

[root@localhost admin]# kubeadm init --apiserver-advertise-address=0.0.0.0 --apiserver-cert-extra-sans=127.0.0.1 --image-repository=registry.aliyuncs.com/google_containers --ignore-preflight-errors=all --kubernetes-version=v1.18.2 --service-cidr=10.10.0.0/16 --pod-network-cidr=10.18.0.0/16
W0702 17:47:41.592876   62703 configset.go:202] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io]
[init] Using Kubernetes version: v1.18.2
[preflight] Running pre-flight checks
	[WARNING FileAvailable--etc-kubernetes-manifests-kube-apiserver.yaml]: /etc/kubernetes/manifests/kube-apiserver.yaml already exists
	[WARNING FileAvailable--etc-kubernetes-manifests-kube-controller-manager.yaml]: /etc/kubernetes/manifests/kube-controller-manager.yaml already exists
	[WARNING FileAvailable--etc-kubernetes-manifests-kube-scheduler.yaml]: /etc/kubernetes/manifests/kube-scheduler.yaml already exists
	[WARNING FileAvailable--etc-kubernetes-manifests-etcd.yaml]: /etc/kubernetes/manifests/etcd.yaml already exists
	[WARNING Port-10250]: Port 10250 is in use
	[WARNING Port-2379]: Port 2379 is in use
	[WARNING Port-2380]: Port 2380 is in use
	[WARNING DirAvailable--var-lib-etcd]: /var/lib/etcd is not empty
[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'
[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
[certs] Using certificateDir folder "/etc/kubernetes/pki"
[certs] Using existing ca certificate authority
[certs] Using existing apiserver certificate and key on disk
[certs] Using existing apiserver-kubelet-client certificate and key on disk
[certs] Using existing front-proxy-ca certificate authority
[certs] Using existing front-proxy-client certificate and key on disk
[certs] Using existing etcd/ca certificate authority
[certs] Using existing etcd/server certificate and key on disk
[certs] Using existing etcd/peer certificate and key on disk
[certs] Using existing etcd/healthcheck-client certificate and key on disk
[certs] Using existing apiserver-etcd-client certificate and key on disk
[certs] Using the existing "sa" key
[kubeconfig] Using kubeconfig folder "/etc/kubernetes"
[kubeconfig] Using existing kubeconfig file: "/etc/kubernetes/admin.conf"
[kubeconfig] Using existing kubeconfig file: "/etc/kubernetes/kubelet.conf"
[kubeconfig] Using existing kubeconfig file: "/etc/kubernetes/controller-manager.conf"
[kubeconfig] Using existing kubeconfig file: "/etc/kubernetes/scheduler.conf"
[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"
W0702 17:49:34.509168   62703 manifests.go:225] the default kube-apiserver authorization-mode is "Node,RBAC"; using "Node,RBAC"
[control-plane] Creating static Pod manifest for "kube-scheduler"
W0702 17:49:34.510843   62703 manifests.go:225] the default kube-apiserver authorization-mode is "Node,RBAC"; using "Node,RBAC"
[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 12.003628 seconds
[upload-config] Storing the configuration used in ConfigMap "kubeadm-config" in the "kube-system" Namespace
[kubelet] Creating a ConfigMap "kubelet-config-1.18" 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 localhost.localdomain as control-plane by adding the label "node-role.kubernetes.io/master=''"
[mark-control-plane] Marking the node localhost.localdomain as control-plane by adding the taints [node-role.kubernetes.io/master:NoSchedule]
[bootstrap-token] Using token: l21jwf.pjzezg1xmopqoj0p
[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-proxy

Your Kubernetes control-plane has initialized successfully!

To start using your cluster, you need to run the following as a regular user:

  mkdir -p $HOME/.kube
  sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
  sudo chown $(id -u):$(id -g) $HOME/.kube/config

You 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.1.134:6443 --token l21jwf.pjzezg1xmopqoj0p \
    --discovery-token-ca-cert-hash sha256:0b1062f2ec73f8c35c1bfecd857a287b128aba7ae5c0673ea604c9ac7c296a95 

执行提示中的命令:

mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config

再执行:

kubectl get node
kubectl get pod --all-namespaces

在这里插入图片描述
node节点为NotReady,因为coredns pod没有启动,缺少网络pod。

6. 安装calico网络

kubectl apply -f https://docs.projectcalico.org/manifests/calico.yaml

在这里插入图片描述
过一会再查看信息,节点已经处于Ready状态了。
在这里插入图片描述

三、安装kubernetes-dashboard

将官方的recommended.yaml文件下载下来。可以使用下面的命令下载,如果国内无法访问https://raw.githubusercontent.com,则可以在前面的链接中复制内容再保存。

wget https://raw.githubusercontent.com/kubernetes/dashboard/master/aio/deploy/recommended.yaml

由于官方没使用nodeport,所以需要修改文件,添加两行配置。

kind: Service
apiVersion: v1
metadata:
  labels:
    k8s-app: kubernetes-dashboard
  name: kubernetes-dashboard
  namespace: kubernetes-dashboard
spec:
  type: NodePort #添加这行
  ports:
    - port: 443
      targetPort: 8443
      nodePort: 30000    #添加这行
  selector:
    k8s-app: kubernetes-dashboard

如图所示:
在这里插入图片描述
然后创建POD,并查看kubernetes-dashboard

kubectl create -f recommended.yaml
kubectl get svc -n kubernetes-dashboard

在这里插入图片描述
此时,可以使用浏览器访问:https://192.168.1.134:30000/#/login,其中的IP是本机的IP。
在这里插入图片描述

这里有两种登录方式:

  • 使用Token登录
  • 使用Kubeconfig登录

使用Token登录

1. 创建token

kubectl create sa dashboard-admin -n kube-system

在这里插入图片描述

2. 授权token 访问权限

kubectl create clusterrolebinding dashboard-admin --clusterrole=cluster-admin --serviceaccount=kube-system:dashboard-admin

在这里插入图片描述

3. 获取token

ADMIN_SECRET=$(kubectl get secrets -n kube-system | grep dashboard-admin | awk '{print $1}')
DASHBOARD_LOGIN_TOKEN=$(kubectl describe secret -n kube-system ${ADMIN_SECRET} | grep -E '^token' | awk '{print $2}')
echo ${DASHBOARD_LOGIN_TOKEN}

在这里插入图片描述

4. 登录

在这里插入图片描述
输入Token后,登录页面如下图所示:
在这里插入图片描述
需要注意的是Token默认有效期是24小时,过期需要重新生成token。

有了kubernetes-dashboard的帮助,就可以可视化的部署与监控应用了。

常用Token命令:

  • 查看Token
kubeadm token list
  • 创建Token
kubeadm token create
  • 删除 Token
kubeadm token delete TokenXXX
  • 初始化master节点时,node节点加入集群命令
kubeadm token create --print-join-command

或者:

token=$(kubeadm token generate)
kubeadm token create $token --print-join-command --ttl=0

四、使用DashBoard部署容器

以部署nginx和mysql为例,介绍如何利用K8s DashBoard部署容器。

1.示例:部署nginx

在Web页面依次按下图操作
在这里插入图片描述
在点击“Deploy"后等待一段时间,当状态颜色都变为绿色则表示成功。
在此步可能会出现错误:

0/1 nodes are available: 1 node(s) had taints that the pod didn't tolerate.

这是因为k8s出于安全考虑默认情况下无法在master节点上部署pod,在Linux控制台执行下面的命令解决:

kubectl taint nodes --all node-role.kubernetes.io/master-

还有可能出现错误:

Back-off restarting failed container

在deployment申明镜像的后面加上命令
command: [ “/bin/bash”, “-ce”, “tail -f /dev/null” ]
在这里插入图片描述
成功页面:
在这里插入图片描述
然后在下面找到“Services”栏,可以看到暴露给外部的端口,此时我们可以使用这个端口访问nginx了。
在这里插入图片描述
看到nginx的欢迎页面,说明成功了。
在这里插入图片描述

2.示例:部署Mysql

与部署nginx类似,但是有一点不一样的就是Mysql的容器需要指定一个初始化的密码,所以需要用到“高级选项”:
在这里插入图片描述
在高级选项中填入环境变量:
名字:MYSQL_ROOT_PASSWORD
值:123456
这样就设置了Mysql的root账号密码。
在这里插入图片描述
部署成功后可以试试Mysql:
在这里插入图片描述
在这里插入图片描述
可以看到成功访问Mysql。
我再试试外部访问,首先查看对外端口:
在这里插入图片描述
在这里插入图片描述

五、删除容器

如果想要删除已经部署的容器,可以在页面中点下图所示按钮,在弹出的菜单中选择删除即可。
在这里插入图片描述
参考:
https://blog.csdn.net/vs2008ASPNET/article/details/104119331/
https://blog.csdn.net/sq4521/article/details/105873575
https://www.kubernetes.org.cn/7189.html
https://www.ywcsb.vip/blog/94.html

已标记关键词 清除标记
<p> <span style="color:#333333;">Kubernetes</span><span style="color:#333333;">是Google开源的一个容器编排引擎,它支持自动化部署、大规模可伸缩、应用容器化管理。在生产环境中部署一个应用程序时,通常要部署该应用的多个实例以便对应用请求进行负载均衡。</span> </p> <p> <span style="color:#333333;"><br /></span> </p> <p> <span style="color:#333333;">在Kubernetes中,我们可以创建多个容器,每个容器里面运行一个应用实例,然后通过内置的负载均衡策略,实现对这一组应用实例的管理、发现、访问,而这些细节都不需要运维人员去进行复杂的手工配置和处理。</span> </p> <p> <span style="color:#333333;"><br /></span> </p> <p> <span style="color:#333333;">虽说我们可以使用比如Kubeadm工具可以简化k8s集群的部署,但这却对我们k8s的各个组件如何协同工作,及排错造成困扰。本套课程主要是以二进制的方式来一步步的安装k8s的集群,来加深我们对K8s集群进一步的理解。同时也可以作为我们生产部署的一种方式。</span> </p> <p> <span style="color:#333333;"><br /></span> </p> <p> <strong><span style="color:#333333;"><span>知识讲解:</span></span></strong> </p> <p> <span style="color:#333333;"><span>   1.   </span></span><span style="color:#333333;">概述了K8s的集群的一个整体架构。</span> </p> <p> <span style="color:#333333;"> 2. 为了实现各个组件的通信,讲解了如何为各组件签发证书、配置kubeconfig、和产生加密的key及密钥。</span> </p> <p> <span style="color:#333333;"> 3. Etcd</span><span style="color:#333333;">键值存储集群的部署。</span> </p> <p> <span style="color:#333333;"> 4. K8s</span><span style="color:#333333;">的主节点的三大组件一步步的部署。</span> </p> <p> <span style="color:#333333;"> 5. K8s</span><span style="color:#333333;">的worker节点的三大组件及flannel网络插件部署。</span> </p> <p> <span style="color:#333333;"> 6. 部署kube coredns作为k8s内部的域名解析。</span> </p> <p> <span style="color:#333333;"><span><br /></span></span> </p> <p> <span style="color:#333333;"><span>注意:</span></span><span style="color:#FF0000;">本课程学习需要具有一定的Linux基础,**是学习过K8s集群或者在使用K8S使用有一段时间的。这样可以更好的理解本套课程内容。</span> </p> <p> <span style="color:#FF0000;"><br /></span> </p> <p> <span style="color:#FF0000;"><img src="https://img-bss.csdn.net/202003240658215582.png" alt="" /><br /></span> </p>
相关推荐
<p style="margin: 21px 0 21px 0;"><span style="color: red; font-size: 24px;">微服务是什么?</span></p> <p>微服务是用于构建应用程序的架构风格,一个大的系统可由一个或者多个微服务组成,微服务架构可将应用拆分成多个核心功能,每个功能都被称为一项服务,可以单独构建和部署,这意味着各项服务在工作和出现故障的时候不会相互影响。</p> <p style="margin: 21px 0 21px 0;"><span style="color: red; font-size: 24px;">为什么要用微服务?</span></p> <p style="text-align: left;">单体架构下的所有代码模块都耦合在一起,代码量大,维护困难,想要更新一个模块的代码,也可能会影响其他模块,不能很好的定制化代码。微服务中可以有java编写、有Python编写的,他们都是靠restful架构风格统一成一个系统的,所以微服务本身与具体技术无关、扩展性强。</p> <p style="margin: 21px 0 21px 0;"><span style="color: red; font-size: 24px;">大型电商平台微服务功能图</span></p> <p style="margin: 21px 0 21px 0;"><img src="https://img-bss.csdnimg.cn/202102041151592091.png" alt="" /></p> <p style="margin: 21px 0 21px 0;"><span style="color: red; font-size: 24px;">为什么要将SpringCloud项目部署到k8s平台?</span></p> <p>SpringCloud只能用在SpringBoot的java环境中,而kubernetes可以适用于任何开发语言,只要能被放进docker的应用,都可以在kubernetes上运行,而且更轻量,更简单。SpringCloud很多功能都跟kubernetes重合,比如服务发现,负载均衡,配置管理,所以如果把SpringCloud部署到k8s,那么很多功能可以直接使用k8s原生的,减少复杂度。</p> <p style="margin: 16px 0 16px 0;"><span style="font-size: 18px; font-family: '微软雅黑',sans-serif;">Kubernetes</span><span style="font-size: 18px; font-family: '微软雅黑',sans-serif;">作为成熟的容器编排工具,在国内外很多公司、世界500强等企业已经落地使用,很多中小型公司也开始把业务迁移到kubernetes中。kubernetes已经成为互联网行业急需的人才,很多企业都开始引进kubernetes技术人员,实现其内部的自动化容器云平台的建设。对于开发、测试、运维、架构师等技术人员来说k8s已经成为的一项重要的技能,下面列举了国内外在生产环境使用kubernetes的公司:</span></p> <p style="margin: 16px 0 16px 0;"> </p> <p style="margin: 16px 0 16px 0;"><strong><span style="font-size: 18px; font-family: '微软雅黑',sans-serif;">国内在用k8s的公司:</span></strong></p> <p style="margin: 16px 0 16px 0;"><span style="font-family: '微软雅黑',sans-serif;">阿里巴巴、百度、腾讯、京东、360、新浪、头条、知乎、华为、小米、富士康、移动、银行、电网、阿里云、青云、时速云、腾讯、优酷、抖音、快手、美团等</span></p> <p style="margin: 16px 0 16px 0;"><strong><span style="font-size: 18px; font-family: '微软雅黑',sans-serif;">国外在用k8s的公司:</span></strong></p> <p style="margin: 16px 0 16px 0;"><span style="font-size: 18px; font-family: '微软雅黑',sans-serif;">谷歌、IBM、丰田、iphone、微软、redhat等<br /></span><img src="https://img-bss.csdnimg.cn/202102041152363812.png" alt="" /></p> <p style="margin: 21px 0 21px 0;"><br />整个K8S体系涉及到的技术众多,包括存储、网络、安全、监控、日志、DevOps、微服务等,很多刚接触K8S的初学者,都会感到无从下手,为了能让大家系统地学习,克服这些技术难点,推出了这套K8S架构师课程。<br /><br /><span style="color: red; font-size: 24px;">Kubernetes的发展前景</span> <br />kubernetes作为炙手可热的技术,已经成为云计算领域获取高薪要掌握的重要技能,在招聘网站搜索k8s,薪资水平也非常可观,为了让大家能够了解k8s目前的薪资分布情况,下面列举一些K8S的招聘截图: <br /><br /></p> <p style="margin: 21px 0 21px 0;"><img src="https://img-bss.csdnimg.cn/202102041153009482.png" alt="" /></p> <p style="margin: 16px 0 16px 0;"><span style="color: #ff0000;"><strong><span style="font-size: 24px;">讲师介绍:  </span></strong></span><strong><span style="font-size: 24px; font-family: '微软雅黑',sans-serif;">先</span></strong></p> <p style="margin: 8px 0 8px 0;"><span style="font-size: 18px; font-family: '微软雅黑',sans-serif;">容器云架构师、IT技术架构师、<span style="color: red;">DevOps</span><span style="color: red;">工程师</span>,曾<span style="color: red;">就职于世界500强上市公司</span>,拥有多年一线运维经验,主导过上亿流量的pv项目的架构设计和运维工作;具有<span style="color: red;">丰富的在线教育经验</span>,对课程一直在改进和提高、不断的更新和完善、开发更多的企业实战项目。所教<span style="color: red;">学员遍布京东、阿里、百度、电网等</span>大型企业和上市公司。</span></p> <p style="margin: 21px 0 21px 0;"><span style="color: red; font-size: 24px;">课程学习计划</span> <br />学习方式:视频录播+视频回放+全套源码笔记 <br />教学服务:模拟面试、就业指导、岗位内推、一对一答疑、远程指导 <br />VIP终身服务:一次购买,终身学习</p> <p style="margin: 16px 0 16px 0;"><span style="font-size: 24px; color: #ff0000;"><span style="font-size: 24px;">课程亮点:</span></span></p> <p><strong><span style="font-size: 18px; font-family: '微软雅黑',sans-serif;">1. </span></strong><strong><span style="font-size: 18px; font-family: '微软雅黑',sans-serif;">学习方式灵活,不占用工作时间:</span></strong></p> <p><span style="font-family: '微软雅黑',sans-serif;">可在电脑、手机观看,随时可以学习,不占用上班时间</span></p> <p><strong><span style="font-size: 18px; font-family: '微软雅黑',sans-serif;">2.</span></strong><strong><span style="font-size: 18px; font-family: '微软雅黑',sans-serif;">老师答疑及时:</span></strong></p> <p><span style="font-family: '微软雅黑',sans-serif;">老师24小时在线答疑</span></p> <p><strong><span style="font-size: 18px; font-family: '微软雅黑',sans-serif;">3. </span></strong><strong><span style="font-size: 18px; font-family: '微软雅黑',sans-serif;">知识点覆盖全、课程质量高</span></strong></p> <p><strong><span style="font-size: 18px; font-family: '微软雅黑',sans-serif;">4. </span></strong><strong><span style="font-size: 18px; font-family: '微软雅黑',sans-serif;">精益求精、不断改进</span></strong></p> <p><span style="font-family: '微软雅黑',sans-serif;">根据学员要求、随时更新课程内容</span></p> <p><strong><span style="font-size: 18px; font-family: '微软雅黑',sans-serif;">5. </span></strong><strong><span style="font-size: 18px; font-family: '微软雅黑',sans-serif;">适合范围广,不管你是0基础,还是拥有工作经验均可学习:</span></strong></p> <p><span style="font-family: '微软雅黑',sans-serif;">0</span><span style="font-family: '微软雅黑',sans-serif;">基础</span></p> <p><span style="font-family: '微软雅黑',sans-serif;">1-3</span><span style="font-family: '微软雅黑',sans-serif;">年工作经验</span></p> <p><span style="font-family: '微软雅黑',sans-serif;">3-5</span><span style="font-family: '微软雅黑',sans-serif;">年工作经验</span></p> <p><span style="font-family: '微软雅黑',sans-serif;">5</span><span style="font-family: '微软雅黑',sans-serif;">年以上工作经验</span></p> <p><span style="font-family: '微软雅黑',sans-serif;">运维、开发、测试、产品、前端、架构师</span></p> <p><span style="font-family: '微软雅黑',sans-serif;">其他行业转行做技术人员均可学习</span></p> <p><span style="font-family: 等线; color: red; font-size: 24px;">课程部分项目截图</span></p> <p><img src="https://img-bss.csdnimg.cn/202102041153266860.png" alt="" /></p> <p><img src="https://img-bss.csdnimg.cn/202102041153377287.png" alt="" /></p> <p><img src="https://img-bss.csdnimg.cn/202102041153463414.png" alt="" /></p> <p><img src="https://img-bss.csdnimg.cn/202102041153552293.png" alt="" /></p> <p><img src="https://img-bss.csdnimg.cn/202102041154101988.png" alt="" /></p> <p><img src="https://img-bss.csdnimg.cn/202102041154234342.png" alt="" /></p> <p><img src="https://img-bss.csdnimg.cn/202102041154348644.png" alt="" /></p> <p> </p> <p> </p> <p> </p> <p><span style="font-size: 24px; color: #ff0000;">课程大纲</span></p> <p> </p> <table> <tbody> <tr class="firstRow"> <td style="border: 1px solid windowtext; padding: 0px 7px;" valign="top" width="553"> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><strong><span style="font-size: 18px; font-family: 宋体;">k8s+SpringCloud</span></strong><strong><span style="font-size: 18px; font-family: 宋体;">全栈技术:基于世界500强的企业实战课程-大纲</span></strong></p> </td> </tr> <tr> <td style="border-color: currentcolor windowtext windowtext; border-style: none solid solid; border-width: medium 1px 1px; border-image: none 100% / 1 / 0 stretch; padding: 0px 7px;" valign="top" width="553"> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><strong><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">第一章 开班仪式</span></strong></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">老师自我介绍、课程大纲介绍、行业背景、发展趋势、市场行情、课程优势、薪资水平、给大家的职业规划、课程学习计划、岗位内推</span></p> </td> </tr> <tr> <td style="border-color: currentcolor windowtext windowtext; border-style: none solid solid; border-width: medium 1px 1px; border-image: none 100% / 1 / 0 stretch; padding: 0px 7px;" valign="top" width="553"> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><strong><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">第二章 kubernetes介绍</span></strong></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">Kubernetes</span><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">简介</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">kubernetes</span><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">起源和发展</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">kubernetes</span><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">优点</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">kubernetes</span><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">功能</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">kubernetes</span><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">应用领域:在大数据、5G、区块链、DevOps、AI等领域的应用</span></p> </td> </tr> <tr> <td style="border-color: currentcolor windowtext windowtext; border-style: none solid solid; border-width: medium 1px 1px; border-image: none 100% / 1 / 0 stretch; padding: 0px 7px;" valign="top" width="553"> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><strong><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">第三章  kubernetes中的资源对象</span></strong></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">最小调度单元Pod</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">标签Label和标签选择器</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">控制器Replicaset、Deployment、Statefulset、Daemonset等</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">四层负载均衡器Service</span></p> </td> </tr> <tr> <td style="border-color: currentcolor windowtext windowtext; border-style: none solid solid; border-width: medium 1px 1px; border-image: none 100% / 1 / 0 stretch; padding: 0px 7px;" valign="top" width="553"> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><strong><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">第四章 kubernetes架构和组件</span></strong></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">熟悉谷歌的Borg架构</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">kubernetes</span><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">单master节点架构</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">kubernetes</span><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">多master节点高可用架构</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">kubernetes</span><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">多层架构设计原理</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">kubernetes API</span><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">介绍</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">master</span><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">(控制)节点组件:apiserver、scheduler、controller-manager、etcd</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">node</span><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">(工作)节点组件:kube-proxy、coredns、calico</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">附加组件:prometheus、dashboard、metrics-server、efk、HPA、VPA、Descheduler、Flannel、cAdvisor、Ingress     Controller。</span></p> </td> </tr> <tr> <td style="border-color: currentcolor windowtext windowtext; border-style: none solid solid; border-width: medium 1px 1px; border-image: none 100% / 1 / 0 stretch; padding: 0px 7px;" valign="top" width="553"> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><strong><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">第五章 部署多master节点的K8S高可用集群(kubeadm)</span></strong></p> </td> </tr> <tr> <td style="border-color: currentcolor windowtext windowtext; border-style: none solid solid; border-width: medium 1px 1px; border-image: none 100% / 1 / 0 stretch; padding: 0px 7px;" valign="top" width="553"> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><strong><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">第六章 带你体验kubernetes可视化界面dashboard</span></strong></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">在kubernetes中部署dashboard</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">通过token令牌登陆dashboard</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">通过kubeconfig登陆dashboard</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">限制dashboard的用户权限</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">在dashboard界面部署Web服务</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">在dashboard界面部署redis服务</span></p> </td> </tr> <tr> <td style="border-color: currentcolor windowtext windowtext; border-style: none solid solid; border-width: medium 1px 1px; border-image: none 100% / 1 / 0 stretch; padding: 0px 7px;" valign="top" width="553"> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><strong><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">第七章 资源清单YAML文件编写技巧</span></strong></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">编写YAML文件常用字段,YAML文件编写技巧,kubectl explain查看帮助命令,手把手教你创建一个Pod的YAML文件</span></p> </td> </tr> <tr> <td style="border-color: currentcolor windowtext windowtext; border-style: none solid solid; border-width: medium 1px 1px; border-image: none 100% / 1 / 0 stretch; padding: 0px 7px;" valign="top" width="553"> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><strong><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">第八章 通过资源清单YAML文件部署tomcat站点</span></strong></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">编写tomcat的资源清单YAML文件、创建service发布应用、通过HTTP、HTTPS访问tomcat</span></p> </td> </tr> <tr> <td style="border-color: currentcolor windowtext windowtext; border-style: none solid solid; border-width: medium 1px 1px; border-image: none 100% / 1 / 0 stretch; padding: 0px 7px;" valign="top" width="553"> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><strong><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">第九章  kubernetes Ingress发布服务</span></strong></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">Ingress</span><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">和Ingress Controller概述</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">Ingress</span><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">和Servcie关系</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">安装Nginx Ingress Controller</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">安装Traefik Ingress Controller</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">使用Ingress发布k8s服务</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">Ingress</span><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">代理HTTP/HTTPS服务</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">Ingress</span><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">实现应用的灰度发布-可按百分比、按流量分发</span></p> </td> </tr> <tr> <td style="border-color: currentcolor windowtext windowtext; border-style: none solid solid; border-width: medium 1px 1px; border-image: none 100% / 1 / 0 stretch; padding: 0px 7px;" valign="top" width="553"> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><strong><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">第十章 私有镜像仓库Harbor安装配置</span></strong></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">Harbor</span><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">简介</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">安装Harbor</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">Harbor UI</span><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">界面使用</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">上传镜像到Harbor仓库</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">从Harbor仓库下载镜像</span></p> </td> </tr> <tr> <td style="border-color: currentcolor windowtext windowtext; border-style: none solid solid; border-width: medium 1px 1px; border-image: none 100% / 1 / 0 stretch; padding: 0px 7px;" valign="top" width="553"> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><strong><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">第十一章 微服务概述</span></strong></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">什么是微服务?</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">为什么要用微服务?</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">微服务的特性</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">什么样的项目适合微服务?</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">使用微服务需要考虑的问题</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">常见的微服务框架</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">常见的微服务框架对比分析</span></p> </td> </tr> <tr> <td style="border-color: currentcolor windowtext windowtext; border-style: none solid solid; border-width: medium 1px 1px; border-image: none 100% / 1 / 0 stretch; padding: 0px 7px;" valign="top" width="553"> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><strong><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">第十二章 SpringCloud概述</span></strong></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">SpringCloud</span><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">是什么?</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">SpringCloud</span><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">和SpringBoot什么关系?</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">SpringCloud</span><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">微服务框架的优缺点</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">SpringCloud</span><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">项目部署到k8s的流程</span></p> </td> </tr> <tr> <td style="border-color: currentcolor windowtext windowtext; border-style: none solid solid; border-width: medium 1px 1px; border-image: none 100% / 1 / 0 stretch; padding: 0px 7px;" valign="top" width="553"> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><strong><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">第十三章 SpringCloud组件介绍</span></strong></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">服务注册与发现组件Eureka</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">客户端负载均衡组件Ribbon</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">服务网关Zuul</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">熔断器Hystrix</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">API</span><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">网关SpringCloud Gateway</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">配置中心SpringCloud Config</span></p> </td> </tr> <tr> <td style="border-color: currentcolor windowtext windowtext; border-style: none solid solid; border-width: medium 1px 1px; border-image: none 100% / 1 / 0 stretch; padding: 0px 7px;" valign="top" width="553"> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><strong><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">第十四章 将SpringCloud项目部署到k8s平台的注意事项</span></strong></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">如何进行服务发现?</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">如何进行配置管理?</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">如何进行负载均衡?</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">如何对外发布服务?</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">k8s</span><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">部署SpringCloud项目的整体流程</span></p> </td> </tr> <tr> <td style="border-color: currentcolor windowtext windowtext; border-style: none solid solid; border-width: medium 1px 1px; border-image: none 100% / 1 / 0 stretch; padding: 0px 7px;" valign="top" width="553"> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><strong><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">第十五章 部署MySQL数据库</span></strong></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">MySQL</span><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">简介</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">MySQL</span><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">特点</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">安装部署MySQL</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">在MySQL数据库导入数据</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">对MySQL数据库授权</span></p> </td> </tr> <tr> <td style="border-color: currentcolor windowtext windowtext; border-style: none solid solid; border-width: medium 1px 1px; border-image: none 100% / 1 / 0 stretch; padding: 0px 7px;" valign="top" width="553"> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><strong><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">第十六章 将SpringCLoud项目部署到k8s平台</span></strong></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">SpringCloud</span><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">的微服务电商框架</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">安装openjdk和maven</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">修改源代码、更改数据库连接地址</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">通过Maven编译、构建、打包源代码</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">在k8s中部署Eureka组件</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">在k8s中部署Gateway组件</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">在k8s中部署前端服务</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">在k8s中部署订单服务</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">在k8s中部署产品服务</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">在k8s中部署库存服务</span></p> </td> </tr> <tr> <td style="border-color: currentcolor windowtext windowtext; border-style: none solid solid; border-width: medium 1px 1px; border-image: none 100% / 1 / 0 stretch; padding: 0px 7px;" valign="top" width="553"> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><strong><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">第十七章 微服务的扩容和缩容</span></strong></p> </td> </tr> <tr> <td style="border-color: currentcolor windowtext windowtext; border-style: none solid solid; border-width: medium 1px 1px; border-image: none 100% / 1 / 0 stretch; padding: 0px 7px;" valign="top" width="553"> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><strong><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">第十八章 微服务的全链路监控</span></strong></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">什么是全链路监控?</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">为什么要进行全链路监控?</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">全链路监控能解决哪些问题?</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">常见的全链路监控工具:zipkin、skywalking、pinpoint</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">全链路监控工具对比分析</span></p> </td> </tr> <tr> <td style="border-color: currentcolor windowtext windowtext; border-style: none solid solid; border-width: medium 1px 1px; border-image: none 100% / 1 / 0 stretch; padding: 0px 7px;" valign="top" width="553"> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><strong><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">第十九章 部署pinpoint服务</span></strong></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">部署pinpoint</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">部署pinpoint agent</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">在k8s中重新部署带pinpoint agent的产品服务</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">在k8s中重新部署带pinpoint agent的订单服务</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">在k8s中重新部署带pinpoint agent的库存服务</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">在k8s中重新部署带pinpoint agent的前端服务</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">在k8s中重新部署带pinpoint agent的网关和eureka服务</span></p> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">Pinpoint UI</span><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">界面使用</span></p> </td> </tr> <tr> <td style="border-color: currentcolor windowtext windowtext; border-style: none solid solid; border-width: medium 1px 1px; border-image: none 100% / 1 / 0 stretch; padding: 0px 7px;" valign="top" width="553"> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><strong><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">第二十章 基于Jenkins+k8s+harbor等构建企业级DevOps平台</span></strong></p> </td> </tr> <tr> <td style="border-color: currentcolor windowtext windowtext; border-style: none solid solid; border-width: medium 1px 1px; border-image: none 100% / 1 / 0 stretch; padding: 0px 7px;" valign="top" width="553"> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><strong><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">第二十一章 基于Promethues+Alert+Grafana搭建企业级监控系统</span></strong></p> </td> </tr> <tr> <td style="border-color: currentcolor windowtext windowtext; border-style: none solid solid; border-width: medium 1px 1px; border-image: none 100% / 1 / 0 stretch; padding: 0px 7px; word-break: break-all;" valign="top" width="553"> <p style="margin-top: auto; margin-bottom: auto; text-align: left;"><strong><span style="font-size: 16px; font-family: '微软雅黑',sans-serif;">第二十二章 部署智能化日志收集系统EFK</span></strong></p> </td> </tr> </tbody> </table> <p><span style="font-size: 24px; color: #ff0000;"> </span></p>
<p> <span style="font-size:20px;"><strong> </strong></span> </p> <p> <strong> <span style="font-size:14px;"><span style="font-size:18px;"><span style="font-size:20px;"></span> <span style="font-size:20px;"><strong>一、为什么学习kubernetes</strong></span><br /> 众所周知,随着容器的快速发展,容器管理工具kubernetes也应运而生,目前不仅百度、京东、阿里、google等大公司在使用kubernetes,一些中小企业也开始把业务迁移到kubernetes,那么作为运维、开发、测试或者架构师来说,必须要掌握这项技术,才能提现我们的工作价值,才能在行业具备保持较高的技术水平,kubernetes作为成熟的容器编排工具,具有容器集群的自动化部署、自动化伸缩和故障自恢复的能力,让容器的部署和管理变得更加容易,能够给企业和提供一个智能化的容器云管理平台,为企业快速上云提供一个安全可靠的解决方案,此课程主要介绍kubernetes1.14/kubernetes1.15版本高可用集群的安装部署和使用,通过我多年工作经验总结,带你深入体验企业实战案例,让您轻松快速的掌握k8s,接下来让我们一起出发吧。</span></span> </strong> </p> <strong> </strong> <p> <strong> <span style="font-size:14px;"><span style="font-size:18px;"><span style="font-size:20px;"><strong>二、课程亮点</strong></span></span></span> </strong> </p> <strong> </strong><span style="font-size:20px;"><strong><img src="https://img-bss.csdnimg.cn/202006040558566592.png" alt="" /><br /></strong></span> <p> <span style="font-size:20px;"><strong>三、讲师简介</strong></span> </p> <p> <span style="font-size:16px;"><span style="color:#000000;">先(lucky)</span><span style="color:#000000;">:</span></span><span style="color:#000000;font-size:16px;">高级运维工程师、资深DevOps工程师,在互联网上市公司拥有多年一线运维经验,主导过亿级pv项目的架构设计和运维工作</span> </p> <p> <span style="font-size:16px;"><span style="color:#000000;font-size:16px;">主要研究方向:</span></span> </p> <p> <span style="font-size:16px;"><span style="color:#000000;font-size:16px;">1.云计算方向:</span><span style="color:#000000;font-size:16px;">容器</span></span> </p> <p> <span style="font-size:16px;"><span style="color:#000000;font-size:16px;">(kubernetes、docker),虚拟化(kvm、Vmware vSphere),微服务(istio),PaaS(openshift),IaaS(openstack)等</span><br /><span style="color:#000000;font-size:16px;">2.系统/运维方向:</span><span style="color:#000000;font-size:16px;">linux系统下的常用组件(nginx,tomcat,elasticsearch,zookeeper,kafka等),DevOps(Jenkins+gitlab+sonarqube+nexus+k8s),CI/CD,监控(zabbix、prometheus、falcon)等</span><span style="font-size:39px;color:#000000;">.</span></span><strong><span style="font-size:20px;"><span style="color:#000000;"></span></span></strong> </p>
©️2020 CSDN 皮肤主题: 技术黑板 设计师:CSDN官方博客 返回首页