This commit is contained in:
2025-08-01 19:31:29 +08:00
parent e12c9243bc
commit 5817427687
3 changed files with 37 additions and 1 deletions

17
fleet.yaml Normal file
View File

@@ -0,0 +1,17 @@
namespace: default
targetCustomizations:
- name: v1
clusterSelector:
matchLabels:
app: v1
yaml:
overlays:
- zxp/v1
- name: v2
clusterSelector:
matchLabels:
app: v2
yaml:
overlays:
- zxp/v2

View File

@@ -6,7 +6,7 @@ spec:
selector:
matchLabels:
app: nginx
replicas: 1
replicas: 2
template:
metadata:
labels:

19
zxp/v2/test.yaml Normal file
View File

@@ -0,0 +1,19 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
spec:
selector:
matchLabels:
app: nginx
replicas: 2
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.25.2
ports:
- containerPort: 81