the existing infrastructure
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- manifests.yaml
|
||||
@@ -0,0 +1,16 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: web
|
||||
labels:
|
||||
team: web
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ResourceQuota
|
||||
metadata:
|
||||
name: quota
|
||||
namespace: web
|
||||
spec:
|
||||
hard:
|
||||
requests.cpu: "4"
|
||||
requests.memory: 8Gi
|
||||
@@ -0,0 +1,5 @@
|
||||
name: web
|
||||
owner: bob
|
||||
team: web
|
||||
cpu: "4"
|
||||
memory: 8Gi
|
||||
@@ -0,0 +1,5 @@
|
||||
# A new team namespace: the record, the namespace and its quota, and a kustomization that lists them.
|
||||
kind: create
|
||||
params: { name: web }
|
||||
owner: bob
|
||||
values: { team: web, cpu: "4", memory: 8Gi }
|
||||
@@ -0,0 +1,17 @@
|
||||
# The shop team: storefront, orders and payments.
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: shop
|
||||
labels:
|
||||
team: shop
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ResourceQuota
|
||||
metadata:
|
||||
name: quota
|
||||
namespace: shop
|
||||
spec:
|
||||
hard:
|
||||
requests.cpu: "12" # raised for the sales, see PLAT-142
|
||||
requests.memory: 16Gi
|
||||
@@ -0,0 +1,5 @@
|
||||
name: shop
|
||||
owner: alice
|
||||
team: shop
|
||||
cpu: "12"
|
||||
memory: 16Gi
|
||||
@@ -0,0 +1,5 @@
|
||||
# More CPU for shop: the record and the quota change in place, the comments stay; the
|
||||
# kustomization and the README are left alone.
|
||||
kind: update
|
||||
key: shop
|
||||
values: { name: shop, owner: alice, team: shop, cpu: "12", memory: 16Gi }
|
||||
Reference in New Issue
Block a user