|
@@ -1,6 +1,6 @@
|
|
|
---
|
|
|
-#apiVersion: apps.kruise.io/v1beta1
|
|
|
-apiVersion: apps/v1
|
|
|
+apiVersion: apps.kruise.io/v1beta1
|
|
|
+#apiVersion: apps/v1
|
|
|
kind: StatefulSet
|
|
|
metadata:
|
|
|
name: global-book-api
|
|
@@ -75,12 +75,12 @@ spec:
|
|
|
port: 8080
|
|
|
initialDelaySeconds: 45
|
|
|
periodSeconds: 20
|
|
|
- #updateStrategy:
|
|
|
- # type: RollingUpdate
|
|
|
- # rollingUpdate:
|
|
|
- # podUpdatePolicy: InPlaceIfPossible
|
|
|
- # inPlaceUpdateStrategy:
|
|
|
- # gracePeriodSeconds: 10
|
|
|
+ updateStrategy:
|
|
|
+ type: RollingUpdate
|
|
|
+ rollingUpdate:
|
|
|
+ podUpdatePolicy: InPlaceIfPossible
|
|
|
+ inPlaceUpdateStrategy:
|
|
|
+ gracePeriodSeconds: 10
|
|
|
volumeClaimTemplates:
|
|
|
- metadata:
|
|
|
name: volume
|