duyangang 1 an în urmă
părinte
comite
274ede2fcf
1 a modificat fișierele cu 5 adăugiri și 1 ștergeri
  1. 5 1
      deploy-tmp.yaml

+ 5 - 1
deploy-tmp.yaml

@@ -43,7 +43,11 @@ spec:
               name: port
           volumeMounts:
             - name: volume
-              mountPath: $JNLP_MOUNT_PATH 
+              mountPath: $JNLP_MOUNT_PATH
+          lifecycle:
+            preStop:
+              exec:
+                command: ["/bin/sh","-c","curl -H 'loginName:admin' -H 'password:ea1so2ua3dm4in5' -X POST 127.0.0.1:8080/actuator/shutdown"]
           livenessProbe:
             tcpSocket:
               port: $JNLP_CONTAINER_PORT