• Stars
    star
    939
  • Rank 47,001 (Top 1.0 %)
  • Language
    Go
  • License
    Apache License 2.0
  • Created over 2 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Collection of mini-programs demonstrating Kubernetes client-go usage.

Kubernetes client-go examples

! Support development of this project > patreon.com/iximiuz

A collection of mini-programs covering various client-go use cases inspired by client-go/examples. The intention (at least so far) is to test (more or less) fresh version of Go and packages against a few latest Kubernetes versions.

What tested at the moment:

  • go 1.18
  • k8s.io/client-go v0.23.1 v0.24.7 v0.25.3
  • Kubernetes v1.22.15 1.23.12 v1.24.6 v1.25.2

Setup

Most examples expect minikube with at least two Kubernetes clusters - shared1 and shared2.

curl -sLS https://get.arkade.dev | sudo sh
arkade get minikube kubectl

minikube start --profile shared1
minikube start --profile shared2

Run

Oversimplified (for now):

cd <program>
go run main.go

TODO

Contribution

Contributions are always welcome! Want to participate but don't know where to start? The TODO list above could give you some ideas. Before jumping to the code, please create an issue describing the addition/change first. This will allow me to coordinate the effort and make sure multiple people don't work on the same task.

More Repositories

1

cdebug

cdebug - a swiss army knife of container debugging
Go
1,008
star
2

kexp

k'exp - Kubernetes Explorer
TypeScript
640
star
3

docker-to-linux

Make bootable Linux disk image abusing Docker
Makefile
631
star
4

awesome-container-tinkering

List of awesome tools to tinker with containers.
479
star
5

pq

Parse and Query log files as time series
Rust
362
star
6

conman

Simplistic container manager
Go
105
star
7

flask-gevent-tutorial

How to use Flask with gevent (uWSGI and Gunicorn editions)
Python
89
star
8

simple-event-loop

Fully-functional Event Loop in 100 Lines of Python
Python
59
star
9

prometheus-playground

Prometheus Playground
Python
45
star
10

labctl

iximiuz Labs control - start remote microVM playgrounds from the command line.
Go
39
star
11

shimmy

Simplistic container runtime shim
Rust
38
star
12

ptyme

Simplest possible example of PTY usage
C
31
star
13

goimagego

goimagego - work with container images in Go (showcase)
Go
21
star
14

golife.c

Conway's Game of Life written in C and compiled to WebAssembly
C
19
star
15

envoy-playground

Container-based playground showing various capabilities of service proxy pattern.
Makefile
18
star
16

node-diskusage-ng

Get disk usage info in pure JS via OS built-in tools
JavaScript
17
star
17

reapme

Playing with Linux processes termination in Rust
Rust
15
star
18

nim-2048

The 2048 game implementation in nim
Nim
14
star
19

producer-consumer-vis

Producer-consumer problem visualization
JavaScript
12
star
20

cancharts

Lightweight HTML5 canvas charts
JavaScript
11
star
21

wsmux

wsmux - a simple WebSocket tunnel server
Go
11
star
22

popen2

popen2() - bidirectional popen()
C
10
star
23

readlines-ng

Tiny and fast async generator to read streams line by line
JavaScript
6
star
24

nom-parser-example

nom parser example
Rust
4
star
25

algorithms

Collection of different kind of algorithms
Scheme
4
star
26

multi_reader.rs

MultiReader - a composite reader implementation
Rust
2
star
27

js-itertools

Attempt to port Python's itertools to JavaScript
JavaScript
2
star
28

echelon0

First echelon of logs analysis
Rust
2
star
29

x86emu-py

Python
1
star
30

webgopher

A simple web service written in Go
Go
1
star
31

dotfiles

My dotfiles
Vim Script
1
star
32

CareersAnalyzer-web

CSS
1
star
33

node-express-ex-boilerplate

ExpressJS App Extended Boilerplate
JavaScript
1
star
34

CareersAnalyzer-grabber

Python
1
star