第18节 名词解释
❤️💕💕记录sealos开源项目的学习过程。k8s,docker和云原生的学习。Myblog:http://nsddd.top
[TOC]
名词
提示
// /var/lib/sealer/data/my-cluster/pki
func (k *Runtime) getPKIPath() string {
return filepath.Join(k.infra.GetClusterRootfsPath(), "pki")
}
// /var/lib/sealer/data/my-cluster/pki/etcd
func (k *Runtime) getEtcdCertPath() string {
return filepath.Join(k.getPKIPath(), "etcd")
}
// /var/lib/sealer/data/my-cluster/rootfs/statics
func (k *Runtime) getStaticFileDir() string {
return filepath.Join(k.infra.GetClusterRootfsPath(), "statics")
}
// /var/lib/sealer/data/my-cluster/mount/etc/kubeadm.yml
func (k *Runtime) getDefaultKubeadmConfig() string {
return filepath.Join(k.infra.GetClusterRootfsPath(), "etc", "kubeadm.yml")
}
注释上读取的是mount过程中生成的文件路径,安装过程中使用的是该路径,后续这些文件被移动到相应位置后,sealer又会执行unmount移出挂载
Public Key Infrastructure(PKI)
: 中文叫做公开密钥基础设施,也就是利用公开密钥机制建立起来的基础设施。
path:
/var/lib/sealer/data/my-cluster/pki
EtcdCert
:client certificate 用于通过服务器验证客户端。例如etcdctl,etcd proxy,fleetctl或docker客户端。 server certificate 由服务器使用,并由客户端验证服务器身份。例如docker服务器或kube-apiserver。 peer certificate 由 etcd 集群成员使用,供它们彼此之间通信使用。
path:
/var/lib/sealer/data/my-cluster/pki/etcd
StaticFile
/var/lib/sealer/data/my-cluster/rootfs/statics
DefaultKubeadmConfig
/var/lib/sealer/data/my-cluster/mount/etc/kubeadm.yml
DNS domain
:域名服务器
配置
const (
AuditPolicyYml = "audit-policy.yml"
KubeadmFileYml = "/etc/kubernetes/kubeadm.yaml"
AdminConf = "admin.conf"
ControllerConf = "controller-manager.conf"
SchedulerConf = "scheduler.conf"
KubeletConf = "kubelet.conf"
// kube file
KUBECONTROLLERCONFIGFILE = "/etc/kubernetes/controller-manager.conf"
KUBESCHEDULERCONFIGFILE = "/etc/kubernetes/scheduler.conf"
AdminKubeConfPath = "/etc/kubernetes/admin.conf"
StaticPodDir = "/etc/kubernetes/manifests"
LvscarePodFileName = "kube-lvscare.yaml"
)
对应的目录:
[root@iZbp1evo5cnwagauz3w188Z kubernetes]# pwd;ls -al
/etc/kubernetes
total 48
drwxr-xr-x 4 root root 4096 Nov 9 16:19 .
drwxr-xr-x. 85 root root 4096 Nov 13 12:04 ..
-rw------- 1 root root 5583 Nov 9 16:19 admin.conf
-rw-r--r-- 1 root root 3073 Nov 9 16:19 audit-policy.yml
-rw------- 1 root root 5623 Nov 9 16:19 controller-manager.conf
-rw------- 1 root root 1999 Nov 9 16:20 kubelet.conf
drwx------ 2 root root 4096 Nov 9 16:19 manifests
drwxr-xr-x 3 root root 4096 Nov 9 16:19 pki
-rw------- 1 root root 5567 Nov 9 16:19 scheduler.conf
END 链接
✴️版权声明 © :本书所有内容遵循CC-BY-SA 3.0协议(署名-相同方式共享)©