-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. add independent namespace, service account. 2. deploy gm deployment instead of pod, service instead of host namespace. 3. add resource limits for gm/lc. 4. add alternative command to set gm_ip. 5. unset 'Always' imagePullPolicy.
- Loading branch information
Showing
4 changed files
with
170 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: neptune | ||
--- | ||
# cluster role | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: neptune | ||
rules: | ||
# list/watch these ai-feature crds | ||
- apiGroups: | ||
- neptune.io | ||
resources: | ||
- datasets | ||
- models | ||
- jointinferenceservices | ||
- federatedlearningjobs | ||
- incrementallearningjobs | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
|
||
# update crd status | ||
- apiGroups: | ||
- neptune.io | ||
resources: | ||
- datasets/status | ||
- models/status | ||
- jointinferenceservices/status | ||
- federatedlearningjobs/status | ||
- incrementallearningjobs/status | ||
verbs: | ||
- get | ||
- update | ||
|
||
# current we implement ai features by k8s pods, services | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- pods | ||
verbs: | ||
- create | ||
- get | ||
- list | ||
- watch | ||
- delete | ||
|
||
- apiGroups: | ||
- "" | ||
resources: | ||
- services | ||
verbs: | ||
- create | ||
- list | ||
- get | ||
|
||
- apiGroups: | ||
- "" | ||
resources: | ||
- nodes | ||
verbs: | ||
- get | ||
|
||
- apiGroups: | ||
- "" | ||
resources: | ||
- events | ||
verbs: | ||
- create | ||
- list | ||
- get | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: neptune | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: neptune | ||
subjects: | ||
- kind: ServiceAccount | ||
name: neptune | ||
namespace: neptune | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: neptune | ||
namespace: neptune |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters