From e5f261f64253e15abcd7a9e5aa53c68aa440eaf5 Mon Sep 17 00:00:00 2001 From: ducoterra Date: Sun, 12 Jul 2020 14:42:23 -0400 Subject: [PATCH] new resource quotas --- README.md | 7 +++++++ namespace/templates/resourcequota.yaml | 7 ++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4c9255a..42d5f02 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,13 @@ kubectl apply -f certsigner ./userspace.sh tester ``` +### Update a user + +```bash +export USER=user +helm template $USER ./namespace | kubectl --context admin apply -f - +``` + ### Objectives 1. Provision a namespace with clusterroles, rolebindings, and a dedicated nfs-provisioner with one helm chart diff --git a/namespace/templates/resourcequota.yaml b/namespace/templates/resourcequota.yaml index 9b94515..858e817 100644 --- a/namespace/templates/resourcequota.yaml +++ b/namespace/templates/resourcequota.yaml @@ -8,4 +8,9 @@ spec: requests.cpu: "12" requests.memory: "24G" limits.cpu: "48" - limits.memory: "64G" \ No newline at end of file + limits.memory: "64G" + hdd.storageclass.storage.k8s.io/requests.storage: 1Ti + nvme.storageclass.storage.k8s.io/persistentvolumeclaims: "2" + nvme.storageclass.storage.k8s.io/requests.storage: 100Gi + external-ssd.storageclass.storage.k8s.io/persistentvolumeclaims: "0" + external-ssd.storageclass.storage.k8s.io/requests.storage: 0Mi \ No newline at end of file