Coder Social home page Coder Social logo

kccncna-2022's Introduction

KCCNCNA-2022

Wanted to document the logistics behind my KubeCon 2022 live-cluster demonstration of Lula. I'll consider it a success if even one person finds the process valuable or enables them to also created offline kubernetes demonstrations without worry.

Cluster Bootstrap

I used Rancher Desktop do to it's innate ability to treat air gap as a first class citizen. Once kubernetes is enabled, Rancher Desktop downloads the required artifacts and stores them locally such that internet connecitivty is no longer required to setup kubernetes - even if you reset your cluster.

Istio prep

My demonstration was requiring istio service mesh as a pre-deployed system. As such, I needed to ensure I could repeatably deploy istio to my local cluster offline. I then created a zarf package for istio base and istiod helm orchestration with the required images and performed a zarf package create in the istio directory to produce the zarf package zarf-packge-istio-package-amd64.tar.zst.

Demo prep

I wanted to deploy simple workloads without dependencies on other services. I used nginx with a simple deployment.yaml manifest and the nginx image. The manifest contains a variable that can be modified imperatively during deployment in a format that zarf understands. Performing the zarf package create from the project root produced the zarf package zarf-package-compliance-demo-amd64.tar.zst.

Other items

  • I had previously performed a zarf init which downloads and caches the init package for future use.
  • I built the lula binary from the repository

Demo Execution

  • Rancher Desktop
    • Reset Cluster
  • zarf init
    • uses a local cache of the init package
  • zarf package deploy zarf-packge-istio-package-amd64.tar.zst --confirm
  • zarf package deploy zarf-package-compliance-demo-amd64.tar.zst --confirm --set INJECT=true
  • lula execute oscal-component.yaml
    • This produces a passing result
  • zarf package deploy zarf-package-compliance-demo-amd64.tar.zst --confirm --set INJECT=false
  • lula execute oscal-component.yaml
    • This produces a failing result

kccncna-2022's People

Contributors

brandtkeller avatar

Stargazers

Roman 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.