Compare commits
2
Commits
3fd0dc3816
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
85fcba0bc5 | ||
|
|
d8cbb3aa69 |
@@ -0,0 +1,7 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
namespace: docs-portal
|
||||||
|
resources:
|
||||||
|
- resourcequota.yaml
|
||||||
|
- limitrange.yaml
|
||||||
|
- networkpolicy.yaml
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: LimitRange
|
||||||
|
metadata:
|
||||||
|
name: default-limits
|
||||||
|
spec:
|
||||||
|
limits:
|
||||||
|
- default:
|
||||||
|
cpu: 200m
|
||||||
|
memory: 128Mi
|
||||||
|
defaultRequest:
|
||||||
|
cpu: 50m
|
||||||
|
memory: 64Mi
|
||||||
|
type: Container
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: NetworkPolicy
|
||||||
|
metadata:
|
||||||
|
name: allow-traefik-ingress
|
||||||
|
spec:
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
app: docs-portal
|
||||||
|
policyTypes:
|
||||||
|
- Ingress
|
||||||
|
ingress:
|
||||||
|
- from:
|
||||||
|
- namespaceSelector: {}
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
port: 80
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ResourceQuota
|
||||||
|
metadata:
|
||||||
|
name: namespace-quota
|
||||||
|
spec:
|
||||||
|
hard:
|
||||||
|
requests.cpu: 250m
|
||||||
|
requests.memory: 256Mi
|
||||||
|
limits.cpu: 500m
|
||||||
|
limits.memory: 512Mi
|
||||||
|
pods: "5"
|
||||||
Reference in New Issue
Block a user