diff --git a/Dockerfile b/Dockerfile index 6a21371..237652c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/README.md b/README.md index 719c93a..083ee47 100644 --- a/README.md +++ b/README.md @@ -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." diff --git a/dev-tools/push/push_prod_image.sh b/dev-tools/push/push_prod_image.sh index 19eef5b..597082b 100644 --- a/dev-tools/push/push_prod_image.sh +++ b/dev-tools/push/push_prod_image.sh @@ -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 diff --git a/doc_images/http_stats.png b/doc_images/http_stats.png new file mode 100644 index 0000000..7598f2e Binary files /dev/null and b/doc_images/http_stats.png differ diff --git a/doc_images/url_monitor.png b/doc_images/url_monitor.png new file mode 100644 index 0000000..1941414 Binary files /dev/null and b/doc_images/url_monitor.png differ diff --git a/html5/kubeinvaders.js b/html5/kubeinvaders.js index b23e2c7..e630e06 100644 --- a/html5/kubeinvaders.js +++ b/html5/kubeinvaders.js @@ -713,16 +713,7 @@ window.setInterval(function draw() { spaceshipY = canvas.height - spaceshipHeight; } } - - // if (aliens_temp != aliens) { - // for (i=0; i