Skip to content

Falumpaset/oneminutedeployment-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The One Minute Deployment

The goal of this repo to work as a proof of concept for the proposed One Minute Deployment.

However, this is a revised iteration of the initial idea which I discuss here.

Try it yourself

In this tutorial, you will deploy a simple NodeJS application to your cluster. The application outputs Hello World to your brower through Kubernetes port-forwarding. Afterwards, you will alter the deployment to showcase the simplicity and speed of our approach. Finally, we will clean your cluster.

Prerequisites

In case you are familiar with the VS Code Dev Container extention, the predefined devcontainer configuration is most convenient.
⚠⚠ Please makes sure that your kubeconfig is accessible in the container. Do so by moving it into ~/.kube/config or export it export KUBECONFIG=/path/file/in/container.

Otherwise you need

  • Access to a running Kubernetes Cluster
  • Access to a container registry, populate the Markdown with the credentials
  • NodeJS and yarn installed
  • Oras installed on your machine.
  • Kubectl installed

Steps

  • make yourself familiar with the source code and the deployment scripts.
  • in the project root type make initial_deploy to initially deploy the application. kubectl will create a oneminutedeployment namespace and install the deployment into it.
  • open 127.0.0.1:1337 to verify that the application works
  • open index.js and alter line 6 to res.send('This Rocks!')
  • in the project root type make deploy
  • open 127.0.0.1:1337 to verify that the changes made it to the cluster
  • finally make teardown to clear it up

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published