test6
This commit is contained in:
17
fleet.yaml
Normal file
17
fleet.yaml
Normal 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
|
||||||
@@ -6,7 +6,7 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: nginx
|
app: nginx
|
||||||
replicas: 1
|
replicas: 2
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
19
zxp/v2/test.yaml
Normal file
19
zxp/v2/test.yaml
Normal 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
|
||||||
Reference in New Issue
Block a user