Skip to content

The Unified and Autonomous Development Platform

Remove cpu and memory setting for mini k8s configuration

Robin Shen4496f1d74f75
diff --git a/server-product/k8s/mini/cpu-settings.yaml b/server-product/k8s/mini/cpu-settings.yaml
deleted file mode 100644
index 3684da37b2..0000000000
--- a/server-product/k8s/mini/cpu-settings.yaml
+++ /dev/null
@@ -1,25 +0,0 @@
-apiVersion: apps/v1
-kind: Deployment
-metadata:
- name: onedev
-spec:
- template:
- spec:
- containers:
- - name: onedev
- resources:
- requests:
- cpu: 500m
----
-apiVersion: apps/v1
-kind: Deployment
-metadata:
- name: mysql
-spec:
- template:
- spec:
- containers:
- - name: mysql
- resources:
- requests:
- cpu: 250m
diff --git a/server-product/k8s/mini/disk-settings.yaml b/server-product/k8s/mini/disk-settings.yaml
index 985ba85a81..ca6c26e339 100644
--- a/server-product/k8s/mini/disk-settings.yaml
+++ b/server-product/k8s/mini/disk-settings.yaml
@@ -5,7 +5,7 @@ metadata:
spec:
resources:
requests:
- storage: 2Gi
+ storage: 1Gi
---
apiVersion: v1
kind: PersistentVolumeClaim
diff --git a/server-product/k8s/mini/kustomization.yaml b/server-product/k8s/mini/kustomization.yaml
index ebaa66798d..a16b850657 100644
--- a/server-product/k8s/mini/kustomization.yaml
+++ b/server-product/k8s/mini/kustomization.yaml
@@ -2,6 +2,4 @@ namespace: onedev
bases:
- ../base
patchesStrategicMerge:
-- cpu-settings.yaml
-- memory-settings.yaml
- disk-settings.yaml
diff --git a/server-product/k8s/mini/memory-settings.yaml b/server-product/k8s/mini/memory-settings.yaml
deleted file mode 100644
index 456076f9e6..0000000000
--- a/server-product/k8s/mini/memory-settings.yaml
+++ /dev/null
@@ -1,25 +0,0 @@
-apiVersion: apps/v1
-kind: Deployment
-metadata:
- name: onedev
-spec:
- template:
- spec:
- containers:
- - name: onedev
- resources:
- requests:
- memory: 1Gi
----
-apiVersion: apps/v1
-kind: Deployment
-metadata:
- name: mysql
-spec:
- template:
- spec:
- containers:
- - name: mysql
- resources:
- requests:
- memory: 500Mi