reduce resource usage

This commit is contained in:
Sergey Bondarev
2021-09-27 19:24:22 +03:00
parent f41e7a6611
commit 705c2dbc6d
19 changed files with 26 additions and 26 deletions
+3 -3
View File
@@ -3,7 +3,7 @@
1) Применяем манифест pvc.yml
```bash
kubectl apply -f ~/slurm/practice/4.saving-data/3.pvc/pvc.yaml
kubectl apply -f ~/slurm/practice/5.saving-data/3.pvc/pvc.yaml
kubectl get pvc
kubectl get pv
@@ -12,7 +12,7 @@ kubectl get pv
2) Запустим приложение, использующее PV
```bash
kubectl apply -f ~/slurm/practice/4.saving-data/3.pvc/
kubectl apply -f ~/slurm/practice/5.saving-data/3.pvc/
```
3) Посмотрим describe и смонтированные тома в контейнере
@@ -25,5 +25,5 @@ kubectl exec -it fileshare-<TAB> -- df -h
4) Очищаем
```bash
kubectl delete -f ~/slurm/practice/4.saving-data/3.pvc/
kubectl delete -f ~/slurm/practice/5.saving-data/3.pvc/
```
+1 -1
View File
@@ -32,7 +32,7 @@ spec:
- containerPort: 80
resources:
requests:
cpu: 50m
cpu: 10m
memory: 100Mi
limits:
cpu: 100m
+1 -1
View File
@@ -8,4 +8,4 @@ spec:
- ReadWriteMany
resources:
requests:
storage: 1Gi
storage: 10Mi