Configure Resources Limits
This commit is contained in:
@@ -73,7 +73,7 @@ function main() {
|
||||
minikube kubectl -- $@
|
||||
}
|
||||
|
||||
minikube start --driver kvm2
|
||||
minikube start --driver kvm2 --cpus 6 --memory 6Gib
|
||||
minikube addons enable ingress-dns
|
||||
minikube addons enable ingress
|
||||
|
||||
|
||||
@@ -17,6 +17,13 @@ spec:
|
||||
- name: backend
|
||||
image: yoshiunfriendly/backend-hideyoshi.com
|
||||
imagePullPolicy: Always
|
||||
resources:
|
||||
requests:
|
||||
memory: "256Mi"
|
||||
cpu: "250m"
|
||||
limits:
|
||||
memory: "512Mi"
|
||||
cpu: "750m"
|
||||
ports:
|
||||
- containerPort: 8070
|
||||
env:
|
||||
|
||||
@@ -19,6 +19,13 @@ spec:
|
||||
- name: frontend
|
||||
image: yoshiunfriendly/frontend-hideyoshi.com:latest
|
||||
imagePullPolicy: "Always"
|
||||
resources:
|
||||
requests:
|
||||
memory: "256Mi"
|
||||
cpu: "250m"
|
||||
limits:
|
||||
memory: "1536Mi"
|
||||
cpu: "750m"
|
||||
ports:
|
||||
- containerPort: 5000
|
||||
env:
|
||||
|
||||
@@ -17,6 +17,13 @@ spec:
|
||||
- name: postgres
|
||||
image: postgres:14-bullseye
|
||||
imagePullPolicy: "IfNotPresent"
|
||||
resources:
|
||||
requests:
|
||||
memory: "512Mi"
|
||||
cpu: "500m"
|
||||
limits:
|
||||
memory: "512Mi"
|
||||
cpu: "500m"
|
||||
ports:
|
||||
- containerPort: 5432
|
||||
env:
|
||||
|
||||
@@ -17,6 +17,13 @@ spec:
|
||||
- name: redis
|
||||
image: bitnami/redis
|
||||
imagePullPolicy: "IfNotPresent"
|
||||
resources:
|
||||
requests:
|
||||
memory: "1024Mi"
|
||||
cpu: "250m"
|
||||
limits:
|
||||
memory: "1024Mi"
|
||||
cpu: "500m"
|
||||
ports:
|
||||
- containerPort: 6379
|
||||
env:
|
||||
|
||||
@@ -19,6 +19,13 @@ spec:
|
||||
command: [ "./run-queue.sh" ]
|
||||
args: [ "-q" ]
|
||||
imagePullPolicy: "Always"
|
||||
resources:
|
||||
requests:
|
||||
memory: "512Mi"
|
||||
cpu: "250m"
|
||||
limits:
|
||||
memory: "1024Mi"
|
||||
cpu: "500m"
|
||||
env:
|
||||
- name: REDIS_BASE_URL
|
||||
valueFrom:
|
||||
|
||||
@@ -17,6 +17,13 @@ spec:
|
||||
- name: storage
|
||||
image: yoshiunfriendly/storage-hideyoshi.com:latest
|
||||
imagePullPolicy: "Always"
|
||||
resources:
|
||||
requests:
|
||||
memory: "256Mi"
|
||||
cpu: "250m"
|
||||
limits:
|
||||
memory: "512Mi"
|
||||
cpu: "500m"
|
||||
ports:
|
||||
- containerPort: 8000
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user