update deploy and readme
This commit is contained in:
@@ -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
19
README.md
Normal 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
|
||||||
|
```
|
||||||
@@ -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
|
||||||
@@ -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'
|
||||||
Reference in New Issue
Block a user