update deploy and readme

This commit is contained in:
ducoterra
2020-06-17 12:29:16 -04:00
parent e93eec782e
commit 5caa4ede71
4 changed files with 24 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
FROM python:latest 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 CMD sleep infinity

19
README.md Normal file
View File

@@ -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
```

View File

@@ -3,4 +3,4 @@ version: '3'
services: services:
temp: temp:
build: . build: .
image: hub.ducoterra.net/ducoterra/temp:0.0.1 image: hub.ducoterra.net/ducoterra/temp:0.0.2

View File

@@ -14,11 +14,11 @@ spec:
spec: spec:
containers: containers:
- name: {{ .Release.Name }} - name: {{ .Release.Name }}
image: hub.ducoterra.net/ducoterra/temp:0.0.1 image: hub.ducoterra.net/ducoterra/temp:0.0.2
resources: resources:
requests: requests:
memory: 1Mi memory: 1Mi
cpu: 1m cpu: 1m
limits: limits:
memory: 128Mi memory: 1Gi
cpu: '250m' cpu: '48'