Compare commits

..

6 Commits

Author SHA1 Message Date
Hussein Galal
1f2595edfb Use new version scheme for the chart (#31) 2023-02-03 14:18:21 +02:00
Hussein Galal
b0f1fc1184 Remove cr.yaml file (#30) 2023-02-03 14:12:11 +02:00
Hussein Galal
8f5de4a5d2 Remove GITHUB_TOKEN from install helm (#29) 2023-02-03 14:09:42 +02:00
Hussein Galal
46491a4310 Fix charts and merge charts to main (#28) 2023-02-03 14:07:29 +02:00
Hussein Galal
a299353eca fix chart and github workflow (#27)
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
2023-02-03 13:41:24 +02:00
Hussein Galal
eb4e5dd099 Add readme and fix release (#25)
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
2023-02-03 06:38:50 +02:00
7 changed files with 53 additions and 12 deletions

View File

@@ -3,7 +3,7 @@ name: Chart Release
on:
push:
branches:
- k3k-chart
- main
jobs:
release:

View File

@@ -26,6 +26,7 @@ jobs:
overwrite: 'true'
files: |
${{ github.workspace }}/bin/k3k
${{ github.workspace }}/bin/k3kcli
- name: Docker Hub Login
uses: docker/login-action@v2
with:

48
README.md Normal file
View File

@@ -0,0 +1,48 @@
# K3K
A Kubernetes in Kubernetes tool, k3k provides a way to run multiple embedded isolated k3s clusters on your kubernetes cluster.
## Why?
![alt text](https://github.com/galal-hussein/k3k/blob/main/hack/becausewecan.jpg?raw=true)
## Usage
K3K consists of a controller and a cli tool, the controller can be deployed via a helm chart and the cli can be downloaded from the releases page.
### Deploy Controller
[Helm](https://helm.sh) must be installed to use the charts. Please refer to
Helm's [documentation](https://helm.sh/docs) to get started.
Once Helm has been set up correctly, add the repo as follows:
helm repo add k3k https://galal-hussein.github.io/k3k
If you had already added this repo earlier, run `helm repo update` to retrieve
the latest versions of the packages. You can then run `helm search repo
k3k` to see the charts.
To install the k3k chart:
helm install my-k3k k3k/k3k
To uninstall the chart:
helm delete my-k3k
### Create a new cluster
To create a new cluster you need to install and run the cli or create a cluster object, to install the cli:
```
wget https://github.com/galal-hussein/k3k/releases/download/v0.0.0-alpha2/k3k
chmod +x k3k
sudo cp k3k /usr/local/bin
```
To create a new cluster you can use:
```
k3k cluster create --name example-cluster --token test
```

View File

@@ -2,5 +2,5 @@ apiVersion: v2
name: k3k
description: A Helm chart for K3K
type: application
version: 0.1.0
appVersion: 0.1.0
version: 0.1.1
appVersion: 0.0.0-alpha3

View File

@@ -23,12 +23,4 @@ spec:
- containerPort: 8080
name: https
protocol: TCP
livenessProbe:
httpGet:
path: /
port: https
readinessProbe:
httpGet:
path: /
port: https
serviceAccountName: {{ include "k3k.serviceAccountName" . }}

View File

@@ -5,7 +5,7 @@ image:
repository: husseingalal/k3k
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: ""
tag: "v0.0.0-alpha3"
imagePullSecrets: []
nameOverride: ""

BIN
hack/becausewecan.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 KiB