zoukankan      html  css  js  c++  java
  • K8S 03 安装

    常见安装部署方式

    • Minikube 单节点, 微型, 仅供学习
    • 二进制安装部署(生产首选,新手推荐) 难
    • 使用 kubeadmin 进行部署,K8S的部署工具(相对简单,熟手推荐)

    虚拟机准备

    hostnamectl set-hostname ubuntu01.host.com

    进到这个目录 /etc/sysconfig/network-scripts, 根据网卡, 修改IP地址. 在 ifcfg 相关的文件里.

    systemctl stop firewalld

    getenforce 一定要是 disable的, SELinux.

    yum install epel-release 相当于装 aliyun 的库.

    yum install wget net-tools telnet tree nmap sysstat lrzsz dos2unix bind-utils -y

    安装 bind9  DNS 服务, 因为 K8S 是应用层调用, 需要域名.

      yum install bind -y

      rpm -qa bind

      vi /etc/named.conf

      named-checkconf

    多步骤, 首先搭建好 DNS 服务.

    需要签发一大堆的证书.  用 kubadmin 签发的整数, 默认有效期是 1 年.

    安装 docker

    curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun

    下载好之后,要对 docker 进行配置

    mkdir /etc/docker

    vi /etc/docker/daemon.json, 然后输入:

    需要 /data/docker 目录, 如果没有就创建

    systemctl start docker

    docker version

    docker ps -a

  • 相关阅读:
    16. 3Sum Closest
    17. Letter Combinations of a Phone Number
    20. Valid Parentheses
    77. Combinations
    80. Remove Duplicates from Sorted Array II
    82. Remove Duplicates from Sorted List II
    88. Merge Sorted Array
    257. Binary Tree Paths
    225. Implement Stack using Queues
    113. Path Sum II
  • 原文地址:https://www.cnblogs.com/moveofgod/p/12567024.html
Copyright © 2011-2022 走看看