Compare commits

..

19 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
Hussein Galal
420a784e01 fix ci (#22) 2023-02-03 06:01:52 +02:00
Hussein Galal
71eeee5a0c Add k3kcli (#21)
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
2023-02-03 05:55:33 +02:00
Hussein Galal
43db69743b Add release workflow (#20)
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
2023-02-03 01:04:16 +02:00
Hussein Galal
ded0c0d178 Merge pull request #19 from galal-hussein/issue-9
Initial Allocator Impl
2023-02-02 23:56:00 +02:00
Brian Downs
e1b2f7c25f update per pr review
Signed-off-by: Brian Downs <brian.downs@gmail.com>
2023-02-02 14:45:00 -07:00
Brian Downs
76a2e255b3 update cidr pool names
Signed-off-by: Brian Downs <brian.downs@gmail.com>
2023-02-02 14:20:48 -07:00
Brian Downs
ab1b54b335 add doc comments
Signed-off-by: Brian Downs <brian.downs@gmail.com>
2023-02-02 14:17:57 -07:00
Brian Downs
60191ae867 initial allocator impl
Signed-off-by: Brian Downs <brian.downs@gmail.com>
2023-02-02 14:09:54 -07:00
galal-hussein
8c4035332b more workflow fixes 2023-02-02 23:06:14 +02:00
galal-hussein
137c588e61 more workflow fixes 2023-02-02 23:04:42 +02:00
galal-hussein
8eb468d37d fix
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
2023-02-02 23:02:06 +02:00
Hussein Galal
a0de7a06e9 Merge pull request #18 from galal-hussein/build_workflow
Add release and chart workflow
2023-02-02 22:58:33 +02:00
galal-hussein
44c7063eb1 Add release and chart workflow 2023-02-02 22:57:46 +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.0.0-alpha3
appVersion: v0.0.0-alpha3
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

@@ -16,4 +16,4 @@ serviceAccount:
create: true
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: ""
name: ""

BIN
hack/becausewecan.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 KiB