浏览代码

[CI SKIP]

robert 1 年之前
父节点
当前提交
fa32606048
共有 1 个文件被更改,包括 13 次插入0 次删除
  1. 13 0
      deploy-tmp.yaml

+ 13 - 0
deploy-tmp.yaml

@@ -20,3 +20,16 @@ spec:
       - name: $DRONE_REPO_NAME
         image: $JNLP_REPO/$JNLP_ENV/$DRONE_REPO_NAME:$JNLP_TAG
         imagePullPolicy: Always
+        ports:
+        - containerPort: $JNLP_CONTAINER_PORT
+          name: port
+        livenessProbe:
+          tcpSocket:
+            port: $JNLP_CONTAINER_PORT
+          initialDelaySeconds: $JNLP_LIVENESS_INIT
+          periodSeconds: $JNLP_LIVENESS_PER
+        readinessProbe:
+          tcpSocket:
+            port: $JNLP_CONTAINER_PORT
+          initialDelaySeconds: $JNLP_READINESS_INIT
+          periodSeconds: $JNLP_READINESS_PER