some changes...

This commit is contained in:
luckysideburn
2024-06-08 17:42:15 +00:00
parent f5a5af8061
commit 45e6a02d1f
9 changed files with 21 additions and 27 deletions
+3 -3
View File
@@ -2,8 +2,9 @@ FROM nginx:stable
# Update repo and install some utilities and prerequisites
RUN apt-get update -y
RUN apt-get -y install procps git vim wget gnupg ca-certificates jq openssl task-spooler at curl apt-transport-https python3 python3-pip redis libssl-dev
RUN pip3 install pyyaml
RUN apt-get -y install git vim wget curl at gnupg procps
RUN apt-get -y install ca-certificates jq openssl task-spooler apt-transport-https python3 python3-pip redis libssl-dev
RUN apt-get -y install python3-yaml python3-kubernetes python3-redis python3-requests
# Install kubectl
RUN curl -LO "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl"
@@ -64,7 +65,6 @@ COPY scripts/data/codenames.txt /usr/local/openresty/nginx/conf/kubeinvaders/dat
COPY scripts/programming_mode /opt/programming_mode/
COPY scripts/metrics_loop /opt/metrics_loop/
COPY scripts/logs_loop /opt/logs_loop/
RUN pip3 install -r /opt/programming_mode/requirements.txt
EXPOSE 8080
+13 -1
View File
@@ -23,7 +23,7 @@ We have embedded a demo on the DevOpsTRibe blog for you to try out the tool.
1. [Description](#Description)
2. [Installation](#Installation)
3. [Usage](#Usage)
4. [Architecture](#Architecture)
4. [URL Monitoring During Chaos Session](#Url-Monitoring-During-Chaos-Session)
5. [Persistence](#Persistence)
6. [Generic Troubleshooting & Known Problems](#Generic-Troubleshooting-And-Known-Problems)
7. [Troubleshooting Unknown Namespace](#Troubleshooting-Unknown-Namespace)
@@ -369,6 +369,18 @@ Press the + or - buttons to increase or decrease the game screen.
- Select "Set Custom Chaos Container for Nodes" from the menu to use your preferred image or configuration against nodes.
# Url Monitoring During Chaos Session
During a chaos engineering session, you can monitor the behavior of an HTTP call exposed by an Ingress.
Use the flag "Add HTTP check & Chaos Report" and add the URL to monitor
![Alt Text](./doc_images/url_monitor.png)
Follow real time charts during the experiment
![Alt Text](./doc_images/http_stats.png)
## Persistence
K-inv uses Redis to save and manage data. Redis is configured with "appendonly."
+4 -1
View File
@@ -7,8 +7,11 @@ podman tag local/kubeinvaders:develop docker.io/luckysideburn/kubeinvaders:$imag
podman tag docker.io/luckysideburn/kubeinvaders:$image_version docker.io/luckysideburn/kubeinvaders:latest
podman tag docker.io/luckysideburn/kubeinvaders:$image_version docker.io/luckysideburn/kubeinvaders:develop
podman tag docker.io/luckysideburn/kubeinvaders:$image_version 10.10.10.3:5000/kubeinvaders:v1.9.7
podman tag docker.io/luckysideburn/kubeinvaders:$image_version docker.io/luckysideburn/kubeinvaders:v1.9.6
podman tag docker.io/luckysideburn/kubeinvaders:$image_version docker.io/luckysideburn/kubeinvaders:latest_debug
podman push docker.io/luckysideburn/kubeinvaders:$image_version
podman push docker.io/luckysideburn/kubeinvaders:latest
podman push 10.10.10.3:5000/kubeinvaders:$image_version
podman push docker.io/luckysideburn/kubeinvaders:latest_debug
podman push docker.io/luckysideburn/kubeinvaders:v1.9.6
Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

+1 -10
View File
@@ -713,16 +713,7 @@ window.setInterval(function draw() {
spaceshipY = canvas.height - spaceshipHeight;
}
}
// if (aliens_temp != aliens) {
// for (i=0; i<aliens.length; i++) {
// if (aliens[i]["active"]) {
// drawAlien(aliens[i]["x"], aliens[i]["y"], aliens[i]["name"], aliens[i]["status"]);
// }
// }
// aliens_temp = aliens;
// }
ctx.fillStyle = 'white';
ctx.font = '16px pixel';
-4
View File
@@ -1,4 +0,0 @@
redis
pyyaml
requests
kubernetes
-4
View File
@@ -1,4 +0,0 @@
redis
pyyaml
requests
kubernetes
@@ -1,4 +0,0 @@
redis
pyyaml
requests
kubernetes