forked from PinSpace-Org/GistPin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnamespaces.yaml
More file actions
79 lines (79 loc) 路 1.3 KB
/
Copy pathnamespaces.yaml
File metadata and controls
79 lines (79 loc) 路 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
apiVersion: v1
kind: Namespace
metadata:
name: gistpin-dev
---
apiVersion: v1
kind: Namespace
metadata:
name: gistpin-staging
---
apiVersion: v1
kind: Namespace
metadata:
name: gistpin-prod
---
apiVersion: v1
kind: ResourceQuota
metadata:
name: app-quota
namespace: gistpin-dev
spec:
hard:
requests.cpu: "4"
requests.memory: 8Gi
limits.cpu: "8"
limits.memory: 16Gi
pods: "50"
---
apiVersion: v1
kind: ResourceQuota
metadata:
name: app-quota
namespace: gistpin-staging
spec:
hard:
requests.cpu: "8"
requests.memory: 16Gi
limits.cpu: "16"
limits.memory: 32Gi
pods: "100"
---
apiVersion: v1
kind: ResourceQuota
metadata:
name: app-quota
namespace: gistpin-prod
spec:
hard:
requests.cpu: "16"
requests.memory: 32Gi
limits.cpu: "32"
limits.memory: 64Gi
pods: "200"
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: default-deny-all
namespace: gistpin-prod
spec:
podSelector: {}
policyTypes:
- Ingress
- Egress
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-ingress-nginx
namespace: gistpin-prod
spec:
podSelector: {}
ingress:
- from:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: ingress-nginx
policyTypes:
- Ingress