As your cluster grows, Namespaces give you virtual clusters within a single physical cluster, and resource quotas ensure fair resource sharing between teams.
kubectl create namespace staging
kubectl create namespace production
kubectl apply -f deployment.yaml -n staging
kubectl config set-context --current --namespace=staging
apiVersion: v1
kind: ResourceQuota
metadata:
name: staging-quota
namespace: staging
spec:
hard:
requests.cpu: "4"
requests.memory: 8Gi
pods: "20"
In Part 8, we set up Ingress controllers for HTTP routing with domain names and HTTPS.
← Back to Blog