zyx 2 lat temu
rodzic
commit
562fcf97d6
2 zmienionych plików z 6 dodań i 7 usunięć
  1. 1 1
      apply.sh
  2. 5 6
      open.yml

+ 1 - 1
apply.sh

@@ -3,7 +3,7 @@ git reset HEAD --hard
 git pull
 gradle build -x test -Dorg.gradle.java.home=/opt/jdk-17.0.4.1
 
-version=$(date +%s)
+version="1.0"
 docker build -t registry.cn-chengdu.aliyuncs.com/cxzx-spider/open:$version .
 docker push registry.cn-chengdu.aliyuncs.com/cxzx-spider/open:$version
 sed -i "s!{ { image } }!registry\.cn-chengdu\.aliyuncs\.com/cxzx-spider/open:$version!g" open.yml

+ 5 - 6
open.yml

@@ -28,13 +28,12 @@ spec:
           imagePullPolicy: IfNotPresent
           name: open
           resources:
+            limits:
+              cpu: 100m
+              memory: 512Mi
             requests:
-              limits:
-                cpu: 100m
-                memory: 512Mi
-              requests:
-                cpu: 100m
-                memory: 256Mi
+              cpu: 100m
+              memory: 256Mi
           livenessProbe:
             httpGet:
               port: 80