1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-07 06:54:16 +00:00

Took away cpu limits due to recommendations in the industry and moved from the beta to v1 ingress apis in K8s

This commit is contained in:
2022-04-28 00:54:03 +00:00
parent 85701e194a
commit add48b95c3
5 changed files with 7 additions and 11 deletions

View File

@@ -48,7 +48,6 @@ spec:
mountPath: /var/lib/influxdb mountPath: /var/lib/influxdb
resources: resources:
limits: limits:
cpu: "0.7"
memory: "512Mi" memory: "512Mi"
requests: requests:
memory: "128Mi" memory: "128Mi"

View File

@@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1 apiVersion: networking.k8s.io/v1
kind: Ingress kind: Ingress
metadata: metadata:
name: wrestlingdev-app-ingress-external name: wrestlingdev-app-ingress-external
@@ -11,9 +11,12 @@ spec:
http: http:
paths: paths:
- path: / - path: /
pathType: Prefix
backend: backend:
serviceName: wrestlingdev-app service:
servicePort: 80 name: wrestlingdev-app
port:
number: 80
tls: tls:
- hosts: - hosts:
- wrestlingdev.com - wrestlingdev.com

View File

@@ -64,7 +64,6 @@ spec:
mountPath: /var/lib/mysql mountPath: /var/lib/mysql
resources: resources:
limits: limits:
cpu: "0.5"
memory: "512Mi" memory: "512Mi"
requests: requests:
memory: "256Mi" memory: "256Mi"
@@ -128,7 +127,6 @@ spec:
mountPath: /var/lib/mysql mountPath: /var/lib/mysql
resources: resources:
limits: limits:
cpu: "0.2"
memory: "100Mi" memory: "100Mi"
requests: requests:
memory: "50Mi" memory: "50Mi"
@@ -162,7 +160,6 @@ spec:
value: "7" value: "7"
resources: resources:
limits: limits:
cpu: "100m"
memory: "128Mi" memory: "128Mi"
requests: requests:
memory: "32Mi" memory: "32Mi"

View File

@@ -36,7 +36,6 @@ spec:
- containerPort: 11211 - containerPort: 11211
resources: resources:
limits: limits:
cpu: "0.2"
memory: "64Mi" memory: "64Mi"
requests: requests:
memory: "64Mi" memory: "64Mi"

View File

@@ -100,7 +100,6 @@ spec:
key: influxdb_port key: influxdb_port
resources: resources:
limits: limits:
cpu: "0.5"
memory: "768Mi" memory: "768Mi"
requests: requests:
memory: "300Mi" memory: "300Mi"
@@ -119,7 +118,7 @@ metadata:
name: wrestlingdev-app-deployment-autoscale name: wrestlingdev-app-deployment-autoscale
spec: spec:
scaleTargetRef: scaleTargetRef:
apiVersion: extensions/v1beta1 apiVersion: apps/v1
kind: Deployment kind: Deployment
name: wrestlingdev-app-deployment name: wrestlingdev-app-deployment
minReplicas: 2 minReplicas: 2
@@ -223,7 +222,6 @@ spec:
args: ["exec", "bin/delayed_job", "-n", "1", "run"] args: ["exec", "bin/delayed_job", "-n", "1", "run"]
resources: resources:
limits: limits:
cpu: "0.5"
memory: "512Mi" memory: "512Mi"
requests: requests:
memory: "200Mi" memory: "200Mi"