apiVersion: v1
kind: Namespace
metadata:
name: myspace
---
apiVersion: v1
kind: ResourceQuota
metadata:
name: compute-quota
namespace: myspace
spec:
hard:
requests.cpu: "1"
requests.memory: 1Gi
limits.cpu: "2"
limits.memory: 2Gi
---
apiVersion: v1
kind: ResourceQuota
metadata:
name: object-quota
namespace: myspace
spec:
hard:
configmaps: "10"
persistentvolumeclaims: "4"
replicationcontrollers: "20"
secrets: "10"
services: "10"
services.loadbalancers: "2"
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: helloworld-deployment
namespace: myspace
spec:
replicas: 3
template:
metadata:
labels:
app: helloworld
spec:
containers:
- name: k8s-demo
image: wardviaene/k8s-demo
ports:
- name: nodejs-port
containerPort: 3000
resources:
requests:
cpu: 200m
memory: 0.5Gi
limits:
cpu: 400m
memory: 1Gi
apiVersion: v1
kind: LimitRange
metadata:
name: limits
namespace: myspace
spec:
limits:
- default:
cpu: 200m
memory: 512Mi
defaultRequest:
cpu: 100m
memory: 256Mi
type: Container
Kubernetes Fundamental Tutorials | Session 1 | Jan-2021 | By DevOpsSchool
Kubernetes Fundamental Tutorials | Session 3 | Jan-2021 | By DevOpsSchool
Kubernetes Fundamental Tutorials | Session 2 | Jan-2021 | By DevOpsSchool
Kubernetes Fundamental Tutorials | Session 6 | Jan-2021 | By DevOpsSchool
Kubernetes Fundamental Tutorials | Session 5 | Jan-2021 | By DevOpsSchool
Kubernetes Fundamental Tutorials | Session 4 | Jan-2021 | By DevOpsSchool
Kubernetes Fundamental Tutorials | Session 7 | Jan-2021 | By DevOpsSchool
Kubernetes Fundamental Tutorials | Session 8 | Jan-2021 | By DevOpsSchool
Kubernetes Fundamental Tutorials | Session 9 | Jan-2021 | By DevOpsSchool
Kubernetes Fundamental Tutorials | Session 10 | Jan-2021 | By DevOpsSchool
Kubernetes Fundamental Tutorials | Session 11 | Jan-2021 | By DevOpsSchool
Latest posts by Rajesh Kumar (see all)
- Best AI tools for Software Engineers - November 4, 2024
- Installing Jupyter: Get up and running on your computer - November 2, 2024
- An Introduction of SymOps by SymOps.com - October 30, 2024