Giter Club home page Giter Club logo

kubernetes's Introduction

基本环境

virtualbox下创建一个虚拟机,使用桥接网络,Ubuntu-Server 18.04 LTS,名为k8s-master,再clone一个名为k8s-node01

网络注意事项

  1. 在执行kubeadm init时需要将网卡enp0s3(即是NAT的那个网卡)关闭 sudo ifconfig enp0s3 down 初始化成功后再将该网卡启动 sudo ifconfig enp0s3 up 暂时不知有什么影响
  2. 关闭swap sudo swapoff -a
  3. 关闭防火墙 sudo ufw disable

部署步骤

主要参考视频进行操作,经过整合成文件中的*.sh脚本,其主要用于部署基本环境,具体搭建方式请看视频

  1. k8s_env.sh会对docker和kubernetes工具进行环境准备,默认使用root为权限密码,可以在第一个传参位置输入自己的密码 bash k8s_env.sh [your_password] 准备好环境后会询问是否拉取必要的docker镜像,调用docker_operations.sh实现
  2. docker_operations.shk8s_env.sh一样可以在第一传参位置输入自己的密码修改,默认是root bash docker_operations.sh [your_password]
  3. 在参考视频进行部署kubernetes时请注意先完成“网络注意事项的内容”

具体的操作方法可以参看我写的此篇微博

kubernetes's People

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.