容器共16篇
K8S之编写yaml文件 | 转|leon的博客

K8S之编写yaml文件 | 转

[cce lang='bash']# yaml格式的pod定义文件完整内容: apiVersion: v1 # 必选,版本号,例如v1 kind: Pod # 必选,Pod metadata: # 必选,元数据 name: string # 必选,Pod名称 namespace: stri...
Leon的博客的头像|leon的博客Leon的博客4年前
7920
Rancher部署k8s及使用(四)|leon的博客

Rancher部署k8s及使用(四)

第1章 安装kubernetes dashboard 1.1 安装dashboard 1.2 获取登录token及优化 1.2.1 获取config文件 1.2.2 复制config文件并下载kubectl文件 1.2.3 服务器创建config文件 [cce lang='bash']# 所...
Leon的博客的头像|leon的博客Leon的博客5年前
17600
Rancher部署k8s及使用(三)|leon的博客

Rancher部署k8s及使用(三)

第1章 部署K8S集群 1.1 部署K8S Master [cce lang='bash']sudo docker run -d --privileged --restart=unless-stopped --net=host -v /etc/kubernetes:/etc/kubernetes -v /var/run:/var/run ra...
Leon的博客的头像|leon的博客Leon的博客5年前
17360
Rancher部署k8s及使用(二)|leon的博客

Rancher部署k8s及使用(二)

第1章 部署Rancher 1.1 部署docker 备注:所有服务器部署docker服务。 1.1.1 安装docker软件 [cce lang='bash'][root@all ~]# yum install -y yum-utils device-mapper-persistent-data lvm2 [r...
Leon的博客的头像|leon的博客Leon的博客5年前
12900
k8s二进制部署系列11-部署应用插件(coredns,dashboard,heapter)|leon的博客

k8s二进制部署系列11-部署应用插件(coredns,dashboard,heapter)

1.1 部署coredns 1.1.1 编辑配置文件 [cce lang='bash']cd /server/tools/kubernetes/cluster/addons/dns cp coredns.yaml{.base,} diff coredns.yaml.base coredns.yaml 61c61 < kubernetes...
Leon的博客的头像|leon的博客Leon的博客6年前
17050
k8s二进制部署系列10-检查k8s集群状态|leon的博客

k8s二进制部署系列10-检查k8s集群状态

1.1 检查master服务状态 [cce lang='bash'][root@k8s-master ~]# systemctl status kube-apiserver.service kube-controller-manager.service kube-scheduler.service | grep active Active: ac...
Leon的博客的头像|leon的博客Leon的博客6年前
23150
k8s二进制部署系列09-部署k8s node节点|leon的博客

k8s二进制部署系列09-部署k8s node节点

1.1 准备环境 1.1.1 安装相关程序 [cce lang='bash']yum install -y conntrack ipvsadm ipset jq iptables curl sysstat libseccomp[/cce] 1.1.2 配置内核参数 [cce lang='bash']cat > /etc/...
Leon的博客的头像|leon的博客Leon的博客6年前
13950
k8s二进制部署系列08-部署k8s master节点|leon的博客

k8s二进制部署系列08-部署k8s master节点

1.1 准备master环境 1.1.1 创建密钥key [cce lang='bash']head -c 32 /dev/urandom | base64 QzItwAKKlCclTRy+XDbZh53DcTSyjmfFFCfve/MSsgE=[/cce] 1.1.2 创建加密配置文件 [cce lang='bash']ca...
Leon的博客的头像|leon的博客Leon的博客6年前
10020
k8s二进制部署系列07-配置master节点高可用|leon的博客

k8s二进制部署系列07-配置master节点高可用

keepalived 提供 kube-apiserver 对外服务的 VIP; haproxy 监听 VIP,后端连接所有 kube-apiserver 实例,提供健康检查和负载均衡功能 所有组件(如 kubeclt、apiserver、controller-manager、...
Leon的博客的头像|leon的博客Leon的博客6年前
9220
k8s二进制部署系列06-配置kubectl程序|leon的博客

k8s二进制部署系列06-配置kubectl程序

1.1 部署并分发k8s程序文件 [cce lang='bash']cd /server/tools/ tar xf kubernetes-server-linux-amd64.tar.gz scp kubernetes/server/bin/{kube-apiserver,kube-controller-manager,kube-sche...
Leon的博客的头像|leon的博客Leon的博客6年前
7250