Coder Social home page Coder Social logo

ks.apigw.ru's Introduction

Запуск Kubesphere на esxi с нуля

Пререквизиты

  • Машина управления с Windows, с неё будем запускать все команды
  • Сервер с лицензированным esxi 7.х с настроенной сетью для VM
  • Эта VM сеть доступна с машины управления
  • Установленный модуль PS VMware.PowerCLI (Install-Module -Name VMware.PowerCLI)...
  • настроенные LAN network, VPN (pfsense) ...
  • Windows OpenSSH клиент
  • python для генерации хэшей паролей
  • Машина с Linux для запуска kubekey или WSL

Подготовка типовой ВМ (Packer)

  1. Запустить .\prepare.ps1 для генерации ключей и kickstart файла в папке .config
  2. Скопировать и отредактировать my.pkrvars.hcl.example -> .my.pkrvars.hcl
  3. packer init
docker run -it --rm `
-e PACKER_PLUGIN_PATH=plugins `
-v "${pwd}:/mnt" `
-w /mnt/packer `
hashicorp/packer:latest `
init .
  1. packer build
docker run -it --rm `
-e PACKER_PLUGIN_PATH=plugins `
-v "${pwd}:/mnt" `
-w /mnt/packer `
hashicorp/packer:latest `
build --var-file=../.my.pkrvars.hcl .

Создание новых ВМ на основе типовой ВМ (clone)

Скрипт clone.ps1 позволяет склонировать созданную ранее машину любое количсетво раз с новыми именами:

.\clone.ps1 my-vm1 my-vm2 my-vm3 ...

Разворачивание Kubesphere (kubekey)

Делается в WSL/VM/... т.к. kubekey есть только под линукс.

  1. Скачать KubeKey
  2. В соответствии с инструкцией настроить "внешний" балансировщик
  3. Скопировать и отредактировать kubesphere/kubesphere.yaml.example -> .config/kubesphere.yaml
  4. Использовать kk create
kk create cluster --filename .config/kubesphere.yaml

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.