update deploy and readme
This commit is contained in:
@@ -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
|
||||
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:
|
||||
temp:
|
||||
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:
|
||||
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'
|
||||
memory: 1Gi
|
||||
cpu: '48'
|
||||
Reference in New Issue
Block a user