From 4c3c16b030ba7808c346532b12193912fd289a23 Mon Sep 17 00:00:00 2001 From: wangyanpeng Date: Fri, 19 Nov 2021 14:47:50 +0800 Subject: [PATCH] Update K8S-StatefulSet File --- k8s/statefulset.yaml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/k8s/statefulset.yaml b/k8s/statefulset.yaml index bb3ccb65d..195bba958 100644 --- a/k8s/statefulset.yaml +++ b/k8s/statefulset.yaml @@ -32,13 +32,16 @@ spec: - name: uptime-kuma containerPort: 3001 protocol: TCP + # Compute Resource Quota https://kubernetes.io/docs/concepts/policy/resource-quotas/#compute-resource-quota resources: + # The node running Pod must meet the most basic requirements to run Pod. requests: - cpu: 100m - memory: 256Mi - limits: cpu: 500m - memory: 1000Mi + memory: 1024Mi + # The maximum amount of memory and CPU that can be used during Pod operation + limits: + cpu: 1000m + memory: 2048Mi # envFrom: # - configMapRef: # name: uptime-kuma-config-map @@ -97,7 +100,7 @@ spec: --- ## You can configure Ingress according to your own environment or use external services to expose services. If you use Ingress, Https can directly proxy. ## Use wildcard certificate managed by cert-manager, Ingress configuration, for reference only -apiVersion: extensions/v1beta1 +apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: uptime-kuma-ingress