diff --git a/Dockerfile b/Dockerfile index d89f42a..b70d890 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ FROM python:latest -RUN apt update && apt install -y lm-sensors watch +RUN apt update && apt install -y lm-sensors watch stress CMD sleep infinity \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..a2de881 --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ +# Temperature monitoring and stress testing + +## Temperature + +```bash +kubectl exec -it $(kubectl get pod --selector=app=temp --output=jsonpath={.items..metadata.name}) -- watch -n1 sensors +``` + +## CPU Throttling + +```bash +kubectl exec -it $(kubectl get pod --selector=app=temp --output=jsonpath={.items..metadata.name}) -- watch -n1 lscpu +``` + +## Stress + +```bash +kubectl exec -it $(kubectl get pod --selector=app=temp --output=jsonpath={.items..metadata.name}) -- stress -c 24 +``` \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml index 2d18e48..631fbfd 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -3,4 +3,4 @@ version: '3' services: temp: build: . - image: hub.ducoterra.net/ducoterra/temp:0.0.1 \ No newline at end of file + image: hub.ducoterra.net/ducoterra/temp:0.0.2 \ No newline at end of file diff --git a/helm/templates/deploy.yaml b/helm/templates/deploy.yaml index b274d7a..f5406df 100644 --- a/helm/templates/deploy.yaml +++ b/helm/templates/deploy.yaml @@ -14,11 +14,11 @@ spec: spec: containers: - name: {{ .Release.Name }} - image: hub.ducoterra.net/ducoterra/temp:0.0.1 + image: hub.ducoterra.net/ducoterra/temp:0.0.2 resources: requests: memory: 1Mi cpu: 1m limits: - memory: 128Mi - cpu: '250m' \ No newline at end of file + memory: 1Gi + cpu: '48' \ No newline at end of file