Persistent volumes

This commit is contained in:
Dominik Chilla 2020-09-22 16:50:45 +02:00
parent 016ad28512
commit 4ddd03b075

View File

@ -15,6 +15,9 @@
* [devel](#namespace-devel)
* [staging](#namespace-staging)
* [prod](#namespace-prod)
* [Persistent volumes](#pv)
* [Local provider](#pv-local)
* [Longhorn - distributed/lightweight provider](#pv-longhorn)
* [HELM charts](#helm)
* [Create a chart](#helm-create)
* [Install local chart without packaging](#helm-install-without-packaging)
@ -342,10 +345,16 @@ namespace-devel-limitranges.yaml:
apiVersion: v1
kind: LimitRange
metadata:
name: limit-range-staging
name: limit-range-devel
spec:
limits:
- max:
- default:
cpu: 500m
memory: 1Gi
defaultRequest:
cpu: 10m
memory: 4Mi
max:
cpu: 500m
memory: 1Gi
min:
@ -376,7 +385,13 @@ metadata:
name: limit-range-staging
spec:
limits:
- max:
- default:
cpu: 500m
memory: 1Gi
defaultRequest:
cpu: 10m
memory: 4Mi
max:
cpu: 500m
memory: 1Gi
min:
@ -407,13 +422,25 @@ metadata:
name: limit-range-prod
spec:
limits:
- min:
cpu: 10m
- defaultRequest:
cpu: 50m
memory: 4Mi
min:
cpu: 50m
memory: 4Mi
type: Container
```
`kubectl apply -f namespace-prod-limitranges.yaml -n prod`
# Persistent Volumes <a name="pv"></a>
## Local provider (local - ouf-of-the-box) <a name="pv-local"></a>
https://rancher.com/docs/k3s/latest/en/storage/
## Longhorn (lightweight/distributed) <a name="pv-longhorn"></a>
* Requirements: https://longhorn.io/docs/0.8.0/install/requirements/
* Install: https://rancher.com/docs/k3s/latest/en/storage/
# HELM charts <a name="helm"></a>
Docs:
* https://helm.sh/docs/intro/using_helm/