Skip to content

WebberMao/k8s-workshop

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

k8s-workshop

Purpose

In this example, we use k3d (a containerized version of k3s) for demostrate how kubernetes can do.

Presentation

Installation

curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | bash

Create cluster

k3d cluster create demo1 -p "8888:80@loadbalancer"
// this way, we are expost loadbalancer inside k3d into localhost:8888

Create Namespace

kubectl apply -f namespace.yaml

Access services

// curl v1 api
curl http://localhost:8888/v1 


// curl v2 api
curl http://localhost:8888/v2

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 47.2%
  • Go 29.3%
  • Shell 22.1%
  • HTML 1.4%