Giter Site home page Giter Site logo

k8s-photon's Introduction

Packer Build for Photon 5 Kubernetes Template VM

This repository contains files for automated build, configuration and deployment of a VMware Photon OS v5 image using Hashicorp packer ready to be configured as part of a Kubernetes cluster (k8s) to be deployed to a vSphere environment as virtual machines. The way the scripts are written this should be easily adjustable to alternative virtualization platforms. The components and versions are:

  • VMware Photon OS v5.0
  • containerd v1.7.19
  • runc v1.1.13
  • CNI plugins v1.5.1
  • nerdctl v1.7.6
  • calicoctl v3.28.0
  • kubectl v1.30.2
  • kubectl-convert v1.30.2
  • crictl v1.30.1
  • kubeadm v1.30.2
  • kubelet v1.30.2

The envisaged usage sequence is:

  1. Clone the repository, update config.auto.pkrvars.hcl in the packer folder as appropriate for the target environment
  2. Run packer init . and packer build . from the packer folder to create a template VM
  3. Once a template has been successfully built, the deploy.ps1 PowerShell script in the powershell folder can be used with PowerCLI to deploy VMs for the cluster
  4. From within the deployed cluster VMs, run kubeadm to initialize/build the kubernetes cluster and configure components

Alternatively, a 'bare-bones' VM template can be manually built and the script k8s-setup-manual.sh from the packer\data\scripts folder run inside it to perform (mainly) the same actions as the packer build in case of any issues with packer.

Note that the versions of components used are (at the time of writing) the most recent release versions of the components and will be ahead (considerably in some cases) of the versions obtainable from the Photon OS repositories available through tdnf - this is intentional as one of the goals of this project was to be able to expirement with the 'latest and greatest'.

NOTE This repository is intended to be accompanied by a blog post which will be linked here once available

k8s-photon's People

Contributors

jondwaite avatar

Watchers

 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.