https://github.com/podenv/silverkube
A kubernetes service for desktop
https://github.com/podenv/silverkube
Last synced: about 1 year ago
JSON representation
A kubernetes service for desktop
- Host: GitHub
- URL: https://github.com/podenv/silverkube
- Owner: podenv
- License: apache-2.0
- Created: 2019-09-22T16:45:58.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-08-05T21:20:38.000Z (almost 4 years ago)
- Last Synced: 2025-04-20T12:55:43.012Z (about 1 year ago)
- Language: Python
- Size: 85.9 KB
- Stars: 35
- Watchers: 5
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Silverkube - a kubernetes service for desktop
The goal is to provide a kubernetes service suitable to manage
a desktop workstation:
- Minimal services to be started early.
- Basic auth enough to let a container starts more containers.
This process is pretty much an experimental work in progress,
use at your own risk.
Note that running the display server in a kubernetes pod presently
does not work rootless. It seems like systemd-login does some
magic to authorize this, and it is not clear if and how that can
be forwarded to the kubelet context.
## Install
- On a fedora-36 system, install the pre-built package:
```shell
sudo dnf install -y $SILVERKUBE_RPM_RELEASE_URL
```
- Or build the package locally using:
```shell
python3 build.py
```
- Or build the package inside a container:
```shell
mkdir -p ~/.cache/silverkube
podman run --rm -it \
-v $HOME/.cache/silverkube:/root/.cache/silverkube:Z \
-v $(pwd):/data:Z --workdir /data \
registry.fedoraproject.org/fedora:33 python3 build.py
```
## Usage
- Make sure the hostname resolve to localhost, and run `systemctl stop systemd-resolved`
- Start the services rootless
```shell
$ silverkube start
[...]
up!
alias kubectl='/home/fedora/.local/bin/rootless-join kubectl --kubeconfig /home/fedora/.config/silverkube/kubeconfig'
```
- Or start the services as root
```shell
$ sudo silverkube start
[...]
up!
alias kubectl='kubectl --kubeconfig /etc/silverkube/kubeconfig'
```
- Stop the services using `stop` argument