Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
AugustasV committed Nov 16, 2021
0 parents commit 705c9e5
Show file tree
Hide file tree
Showing 101 changed files with 1,661 additions and 0 deletions.
37 changes: 37 additions & 0 deletions 001/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Trying out KinD, Podman in Rootless
## Introduction
On my fresh Sparky Linux machine, I had the goal of setting up my local Kubernetes environment, so I could test things locally and contribute to open source projects. I wanted to try rootless mode.
## Prerequisite
* [docker](https://docs.docker.com/engine/install/debian/#install-using-the-repository)
* [podman]()
* [kinD](https://kind.sigs.k8s.io/docs/user/quick-start)
## Use Case
Create kubernetes cluster
## Research
What is rootless mode? Every container needs root access to work properly. Even if you only inside container as user, still underlying there is root access commands running in the background.

It doesn't matter if it is a podman or a docker. Root access introduces some security issues, so developers trying their best to change underlying infrastructure and somehow make it work without root. But still [no success](https://www.redhat.com/en/blog/preview-running-containers-without-root-rhel-76)
There is quite active project like [usernetes](https://github.com/rootless-containers/usernetes) for rootless containers.

## Try yourself
I tried to run rootless containers by myself, but unsuccessfully, with rootless docker and rootless podman configs. I uninstalled
rootless podman and installed regular docker and it almost worked from first try.
```augustasv@probook:~$ kind create cluster
Creating cluster "kind" ...
✓ Ensuring node image (kindest/node:v1.21.1) 🖼✓ Preparing nodes 📦✓ Writing configuration 📜✓ Starting control-plane 🕹️ ^T✓ Installing CNI 🔌✓ Installing StorageClass 💾ERROR:
failed to create cluster: failed to write KUBECONFIG: open /home/augustasv/.kube/config: permission denied
```
Simple chmod 644 command did a trick, works as expected.
```
augustasv@probook:~$ k get pods -n kube-system
NAME READY STATUS RESTARTS AGE
coredns-558bd4d5db-b4xjb 1/1 Running 0 106m
coredns-558bd4d5db-ctl6x 1/1 Running 0 106m
etcd-kind-control-plane 1/1 Running 0 107m
kindnet-kkbsv 1/1 Running 0 106m
kube-apiserver-kind-control-plane 1/1 Running 0 107m
kube-controller-manager-kind-control-plane 1/1 Running 0 107m
kube-proxy-8vxj6 1/1 Running 0 106m
kube-scheduler-kind-control-plane 1/1 Running 0 107m
```
100DaysOfKubernetesJourney
15 changes: 15 additions & 0 deletions 002/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# New post title here

## Introduction


## Prerequisite


## Use Case


## Research


## Try yourself
15 changes: 15 additions & 0 deletions 003/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# New post title here

## Introduction


## Prerequisite


## Use Case


## Research


## Try yourself
15 changes: 15 additions & 0 deletions 004/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# New post title here

## Introduction


## Prerequisite


## Use Case


## Research


## Try yourself
15 changes: 15 additions & 0 deletions 005/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# New post title here

## Introduction


## Prerequisite


## Use Case


## Research


## Try yourself
15 changes: 15 additions & 0 deletions 006/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# New post title here

## Introduction


## Prerequisite


## Use Case


## Research


## Try yourself
15 changes: 15 additions & 0 deletions 007/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# New post title here

## Introduction


## Prerequisite


## Use Case


## Research


## Try yourself
15 changes: 15 additions & 0 deletions 008/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# New post title here

## Introduction


## Prerequisite


## Use Case


## Research


## Try yourself
15 changes: 15 additions & 0 deletions 009/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# New post title here

## Introduction


## Prerequisite


## Use Case


## Research


## Try yourself
15 changes: 15 additions & 0 deletions 010/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# New post title here

## Introduction


## Prerequisite


## Use Case


## Research


## Try yourself
15 changes: 15 additions & 0 deletions 011/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# New post title here

## Introduction


## Prerequisite


## Use Case


## Research


## Try yourself
15 changes: 15 additions & 0 deletions 012/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# New post title here

## Introduction


## Prerequisite


## Use Case


## Research


## Try yourself
15 changes: 15 additions & 0 deletions 013/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# New post title here

## Introduction


## Prerequisite


## Use Case


## Research


## Try yourself
15 changes: 15 additions & 0 deletions 014/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# New post title here

## Introduction


## Prerequisite


## Use Case


## Research


## Try yourself
15 changes: 15 additions & 0 deletions 015/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# New post title here

## Introduction


## Prerequisite


## Use Case


## Research


## Try yourself
15 changes: 15 additions & 0 deletions 016/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# New post title here

## Introduction


## Prerequisite


## Use Case


## Research


## Try yourself
15 changes: 15 additions & 0 deletions 017/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# New post title here

## Introduction


## Prerequisite


## Use Case


## Research


## Try yourself
15 changes: 15 additions & 0 deletions 018/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# New post title here

## Introduction


## Prerequisite


## Use Case


## Research


## Try yourself
15 changes: 15 additions & 0 deletions 019/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# New post title here

## Introduction


## Prerequisite


## Use Case


## Research


## Try yourself
15 changes: 15 additions & 0 deletions 020/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# New post title here

## Introduction


## Prerequisite


## Use Case


## Research


## Try yourself
15 changes: 15 additions & 0 deletions 021/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# New post title here

## Introduction


## Prerequisite


## Use Case


## Research


## Try yourself
15 changes: 15 additions & 0 deletions 022/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# New post title here

## Introduction


## Prerequisite


## Use Case


## Research


## Try yourself
15 changes: 15 additions & 0 deletions 023/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# New post title here

## Introduction


## Prerequisite


## Use Case


## Research


## Try yourself
Loading

0 comments on commit 705c9e5

Please sign in to comment.