From b72c1b897ba89edda79b141ac75a26dc2c233aeb Mon Sep 17 00:00:00 2001 From: Eugenio Marzo Date: Fri, 30 Dec 2022 11:45:13 +0100 Subject: [PATCH] added presets --- README.md | 22 +- confs/redis/redis.conf | 4 +- html5/index.html | 200 ++++++++++++++---- html5/kubeinvaders.js | 92 ++++++-- images/chaos-exec/Dockerfile | 2 + .../chaos-exec/examples/generate_buttons.sh | 4 + .../examples/generate_preset_code.sh | 7 + images/chaos-exec/examples/test.json | 15 ++ images/chaos-exec/start.sh | 10 + nginx/KubeInvaders.conf | 70 ++++++ scripts/chaos-containers.lua | 5 +- scripts/logs_loop/start.py | 5 +- scripts/programming_mode.lua | 1 + 13 files changed, 370 insertions(+), 67 deletions(-) create mode 100644 images/chaos-exec/examples/generate_buttons.sh create mode 100644 images/chaos-exec/examples/generate_preset_code.sh create mode 100644 images/chaos-exec/examples/test.json create mode 100644 images/chaos-exec/start.sh diff --git a/README.md b/README.md index 0ec5d23..1e2f008 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,18 @@ -*Gamified chaos engineering tool and log viewer for Kubernetes* +* KubeInvaders a.k.a kInv +* Gamified chaos engineering tool and log viewer for Kubernetes* # Table of Contents 1. [Description](#Description) 2. [Installation](#Installation) 3. [Usage](#Usage) -4. [Known Problems & Troubleshooting](#Known-problems-and-troubleshooting) -5. [Metrics](#Metrics) -6. [Security](#Security) -7. [Community](#Community) -8. [Community blogs and videos](#Community-blogs-and-videos) -9. [License](#License) +4. [Persistence][#Persistence] +5. [Known Problems & Troubleshooting](#Known-problems-and-troubleshooting) +6. [Metrics](#Metrics) +7. [Security](#Security) +8. [Community](#Community) +9. [Community blogs and videos](#Community-blogs-and-videos) +10. [License](#License) ![Alt Text](./doc_images/dashboard.png) @@ -119,6 +121,12 @@ Press + or - buttons to increase or decrease the game screen. - Select from the menu "Set Custom Chaos Container for nodes" for using your preferred image or configuration against nodes. +## Persistence + +"Kinv" uses Redis for save and manage data. Redis is configured with "appendonly". + +At moment the helm chart does not support PersistentVolumes but this task is in the to do list... + ## Known problems and troubleshooting * It seems that KubeInvaders does not work with EKS because of problems with ServiceAccount. diff --git a/confs/redis/redis.conf b/confs/redis/redis.conf index 748053c..a518688 100644 --- a/confs/redis/redis.conf +++ b/confs/redis/redis.conf @@ -31,7 +31,7 @@ lazyfree-lazy-eviction no lazyfree-lazy-expire no lazyfree-lazy-server-del no replica-lazy-flush no -appendonly no +appendonly yes appendfilename "appendonly.aof" appendfsync everysec no-appendfsync-on-rewrite no @@ -61,4 +61,4 @@ client-output-buffer-limit pubsub 32mb 8mb 60 hz 10 dynamic-hz yes aof-rewrite-incremental-fsync yes -rdb-save-incremental-fsync yes \ No newline at end of file +rdb-save-incremental-fsync yes diff --git a/html5/index.html b/html5/index.html index 4010766..bd44616 100644 --- a/html5/index.html +++ b/html5/index.html @@ -7,6 +7,27 @@