Skip to content

Commit e7901aa

Browse files
yanmxaclaude
andcommitted
add Flower 2.x serverapp and clientapp manifest templates
The new template files were missed in the initial commit because git add -u only tracks modified/deleted files, not new untracked ones. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Meng Yan <myan@redhat.com>
1 parent 49a3955 commit e7901aa

2 files changed

Lines changed: 64 additions & 0 deletions

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
apiVersion: work.open-cluster-management.io/v1alpha1
2+
kind: ManifestWorkReplicaSet
3+
metadata:
4+
name: {{ .Name }}
5+
namespace: {{ .Namespace }}
6+
spec:
7+
placementRefs:
8+
- name: {{ .PlacementName }}
9+
manifestWorkTemplate:
10+
workload:
11+
manifests:
12+
- apiVersion: apps/v1
13+
kind: Deployment
14+
metadata:
15+
name: {{ .Name }}
16+
namespace: {{ .ClientNamespace }}
17+
spec:
18+
replicas: 1
19+
selector:
20+
matchLabels:
21+
app.kubernetes.io/component: superexec-clientapp
22+
app.kubernetes.io/instance: {{ .Name }}
23+
template:
24+
metadata:
25+
labels:
26+
app.kubernetes.io/component: superexec-clientapp
27+
app.kubernetes.io/instance: {{ .Name }}
28+
spec:
29+
containers:
30+
- name: superexec
31+
image: {{ .Image }}
32+
imagePullPolicy: Always
33+
args:
34+
- "--insecure"
35+
- "--appio-api-address={{ .SuperNodeAddress }}"
36+
- "--plugin-type=clientapp"
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: {{ .Name }}
5+
namespace: {{ .Namespace }}
6+
labels:
7+
app.kubernetes.io/name: federated-learning
8+
app.kubernetes.io/component: superexec-serverapp
9+
spec:
10+
replicas: 1
11+
selector:
12+
matchLabels:
13+
app.kubernetes.io/component: superexec-serverapp
14+
app.kubernetes.io/instance: {{ .Name }}
15+
template:
16+
metadata:
17+
labels:
18+
app.kubernetes.io/component: superexec-serverapp
19+
app.kubernetes.io/instance: {{ .Name }}
20+
spec:
21+
containers:
22+
- name: superexec
23+
image: {{ .Image }}
24+
imagePullPolicy: Always
25+
args:
26+
- "--insecure"
27+
- "--appio-api-address={{ .SuperLinkAddress }}"
28+
- "--plugin-type=serverapp"

0 commit comments

Comments
 (0)