Skip to content

Commit bb2b923

Browse files
Fix StatefulSet update: use server-side apply with force-conflicts
StatefulSets don't allow updating immutable spec fields with regular kubectl apply. Use --server-side --force-conflicts to handle this, falling back to --force if server-side apply isn't available. Co-Authored-By: Claude Opus 4.6 <[email protected]>
1 parent cfeff62 commit bb2b923

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,8 @@ jobs:
201201
run: |
202202
kubectl apply -f k8s/api-service.yaml
203203
kubectl apply -f k8s/api-deployment.yaml
204-
kubectl apply -f k8s/mpc-statefulset.yaml
204+
kubectl apply -f k8s/mpc-statefulset.yaml --server-side --force-conflicts || \
205+
kubectl apply -f k8s/mpc-statefulset.yaml --force
205206
206207
- name: Apply dashboard
207208
run: |

0 commit comments

Comments
 (0)