diff --git a/deployment-temp.yml b/deployment-temp.yml index fda0307..7187ea3 100644 --- a/deployment-temp.yml +++ b/deployment-temp.yml @@ -29,14 +29,15 @@ spec: - image: $REGISTRY/$IMAGE_NAMESPACE/$IMAGE_NAME:$APP_TAG name: $APP_NAME imagePullPolicy: Always - readinessProbe: + livenessProbe: # 存活探针:失败意味着应用彻底挂了,需要重启来恢复 httpGet: path: /test port: 9090 - initialDelaySeconds: 1 - timeoutSeconds: 10 - failureThreshold: 30 - successThreshold: 5 + initialDelaySeconds: 10 # 延迟xx秒开始执行 + periodSeconds: 15 # 每隔15秒执行一次 + timeoutSeconds: 10 # 10秒未返回结果则超时 + failureThreshold: 10 # 探测失败后的重试次数,当达到这个次数后就判定结果为失败 +# successThreshold: 5 ports: - containerPort: 9090 imagePullSecrets: diff --git a/pom.xml b/pom.xml index 34d59d4..9ce717e 100644 --- a/pom.xml +++ b/pom.xml @@ -11,7 +11,7 @@ com.bamanker myk3sTest - v3.1.0-native + v3.1-native myk3sTest myk3sTest