From db750f1832da08f98e6968ba8cb74f979ed1418d Mon Sep 17 00:00:00 2001 From: talksik Date: Mon, 20 Nov 2023 12:37:35 -0800 Subject: [PATCH] cleanup and adding in k3s folder --- README.md | 4 ++++ Taskfile.yaml | 7 ------- k3s/install_server.sh | 4 ++++ metallb.yaml => k3s/metallb.yaml | 0 .../sample-app-deployment.yaml | 0 sample-app-service.yaml => k3s/sample-app-service.yaml | 0 src/index.html | 1 - 7 files changed, 8 insertions(+), 8 deletions(-) delete mode 100644 Taskfile.yaml create mode 100644 k3s/install_server.sh rename metallb.yaml => k3s/metallb.yaml (100%) rename sample-app-deployment.yaml => k3s/sample-app-deployment.yaml (100%) rename sample-app-service.yaml => k3s/sample-app-service.yaml (100%) delete mode 100644 src/index.html diff --git a/README.md b/README.md index d4c80fe..97a1b44 100644 --- a/README.md +++ b/README.md @@ -30,3 +30,7 @@ We run our reverse-proxy on homelab1 or talksik-homelab-main. The current configuration is at `talksik@homelab1.home:/etc/nginx/nginx.conf` as one would expect. However, we have a (likely stale) copy in `./reverse-proxy`. +## Kubernetes +Using k3s. Lightweight, easy system service. + +Make sure you have static ip for each node. diff --git a/Taskfile.yaml b/Taskfile.yaml deleted file mode 100644 index 35ce49a..0000000 --- a/Taskfile.yaml +++ /dev/null @@ -1,7 +0,0 @@ -version: '3' - -tasks: - redis: - cmds: - - docker run --name my-redis -d -p 6379:6379 redis - diff --git a/k3s/install_server.sh b/k3s/install_server.sh new file mode 100644 index 0000000..b7c6d97 --- /dev/null +++ b/k3s/install_server.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +# servicelb disabled so that metallb can work +curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="--disable=servicelb --cluster-init" sh - diff --git a/metallb.yaml b/k3s/metallb.yaml similarity index 100% rename from metallb.yaml rename to k3s/metallb.yaml diff --git a/sample-app-deployment.yaml b/k3s/sample-app-deployment.yaml similarity index 100% rename from sample-app-deployment.yaml rename to k3s/sample-app-deployment.yaml diff --git a/sample-app-service.yaml b/k3s/sample-app-service.yaml similarity index 100% rename from sample-app-service.yaml rename to k3s/sample-app-service.yaml diff --git a/src/index.html b/src/index.html deleted file mode 100644 index f76d8e9..0000000 --- a/src/index.html +++ /dev/null @@ -1 +0,0 @@ -

Hello, World!