Skip to content

Commit b2d448b

Browse files
Merge release v0.1.21
Release v0.1.21
2 parents d860b13 + 011c026 commit b2d448b

3 files changed

Lines changed: 46 additions & 1 deletion

File tree

docs/guides/rbac-for-users/readme.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ The kubeconfig file should be placed in a location where HPE employees have read
6868
The next step is to create ClusterRole and ClusterRoleBinding resources. The ClusterRole provided allows viewing all cluster and namespace scoped resources, but disallows creating, deleting, or modifying any resources.
6969

7070
ClusterRole
71+
7172
```yaml
7273
apiVersion: rbac.authorization.k8s.io/v1
7374
kind: ClusterRole
@@ -80,6 +81,7 @@ rules:
8081
```
8182
8283
ClusterRoleBinding
84+
8385
```yaml
8486
apiVersion: rbac.authorization.k8s.io/v1
8587
kind: ClusterRoleBinding
@@ -138,6 +140,7 @@ If the "flux" user requires only the normal WLM permissions, then create and app
138140
The `dws-workload-manager role is defined in [workload_manager_role.yaml](https://github.com/DataWorkflowServices/dws/blob/master/config/rbac/workload_manager_role.yaml).
139141

140142
ClusterRoleBinding for WLM permissions only:
143+
141144
```yaml
142145
apiVersion: rbac.authorization.k8s.io/v1
143146
kind: ClusterRoleBinding
@@ -158,6 +161,7 @@ If the "flux" user requires the normal WLM permissions as well as some of the NN
158161
The `nnf-workload-manager` role is defined in [workload_manager_nnf_role.yaml](https://github.com/NearNodeFlash/nnf-sos/blob/master/config/rbac/workload_manager_nnf_role.yaml).
159162

160163
ClusterRoleBinding for WLM and NNF permissions:
164+
161165
```yaml
162166
apiVersion: rbac.authorization.k8s.io/v1
163167
kind: ClusterRoleBinding
@@ -173,4 +177,30 @@ roleRef:
173177
apiGroup: rbac.authorization.k8s.io
174178
```
175179

180+
If the "flux" user also requires "get" access to pods and their logs in the "default" namespace, then there is also a namespaced Role resource to provide that access. Create a RoleBinding to associate the "flux" user with the "nnf-workload-manager-coregrp" Role. The "flux" user will be bound to access the NNF resources, across all namespaces, via the ClusterRoleBinding above and it will be bound to access the pod resources, in only the "default" namespace, via this RoleBinding.
181+
182+
```console
183+
kubectl get role -n default nnf-workload-manager-coregrp
184+
```
185+
186+
The `nnf-workload-manager-coregrp` role is defined in [workload_manager_nnf_role_ns.yaml](https://github.com/NearNodeFlash/nnf-sos/blob/master/config/rbac-ns/workload_manager_nnf_role_ns.yaml).
187+
188+
RoleBinding for pod permissions:
189+
190+
```yaml
191+
kind: RoleBinding
192+
apiVersion: rbac.authorization.k8s.io/v1
193+
metadata:
194+
name: flux
195+
namespace: default
196+
subjects:
197+
- kind: User
198+
name: flux
199+
apiGroup: rbac.authorization.k8s.io
200+
roleRef:
201+
kind: Role
202+
name: nnf-workload-manager-coregrp
203+
apiGroup: ""
204+
```
205+
176206
The WLM should then use the kubeconfig file associated with this "flux" user to access the DataWorkflowServices API and the Rabbit system.

docs/guides/storage-profiles/readme.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,12 +302,17 @@ In general, `scale` gives a simple way for users to get a filesystem that has pe
302302
- `$VG_NAME` - expands to a volume group name that is controlled by Rabbit software.
303303
- `$DEVICE_LIST` - expands to a list of space-separated `/dev/<path>` devices. This list will contain the devices that were iterated over for the pvcreate step.
304304
- `$DEVICE_NUM` - expands to the count of devices in `$DEVICE_LIST`
305+
- `$DEVICE_NUM-1` - expands to the count of devices in `$DEVICE_LIST` minus 1
306+
- `$DEVICE_NUM-2` - expands to the count of devices in `$DEVICE_LIST` minus 2
307+
- `$DEVICE` - expands to the name of a new device. This is used by `vgextend` when repairing a RAID device
305308

306309
### LVM LV Commands
307310

308311
- `$VG_NAME` - see vgcreate above.
309312
- `$LV_NAME` - expands to a logical volume name that is controlled by Rabbit software.
310313
- `$DEVICE_NUM` - expands to a number indicating the number of devices allocated for the volume group.
314+
- `$DEVICE_NUM-1` - expands to a number indicating the number of devices allocated for the volume group minus 1.
315+
- `$DEVICE_NUM-2` - expands to a number indicating the number of devices allocated for the volume group minus 2.
311316
- `$DEVICE1, $DEVICE2, ..., $DEVICEn` - each expands to one of the devices from the `$DEVICE_LIST` above.
312317
- `$PERCENT_VG` - expands to the size that each LV should be based on a percentage of the total VG size
313318
- `$LV_SIZE` - expands to the size of the LV in kB in the format expected by `lvcreate`
@@ -330,6 +335,16 @@ In general, `scale` gives a simple way for users to get a filesystem that has pe
330335
- `$DEVICE_NUM` - expands to a number indicating the number of devices allocated for this storage request.
331336
- `$DEVICE1, $DEVICE2, ..., $DEVICEn` - each expands to one of the devices from the `$DEVICE_LIST` above.
332337

338+
### zpool replace
339+
340+
- `$DEVICE_NUM` - expands to a number indicating the number of devices allocated for this storage request.
341+
- `$DEVICE_NUM-1` - expands to a number indicating the number of devices allocated for this storage request minus 1.
342+
- `$DEVICE_NUM-2` - expands to a number indicating the number of devices allocated for this storage request minus 2.
343+
- `$DEVICE_LIST` - expands to a list of space-separated `/dev/<path>` devices. This list will contain the devices that were allocated for this storage request.
344+
- `$POOL_NAME` - expands to a pool name that is controlled by Rabbit software.
345+
- `$OLD_DEVICE` - expands to the name of a device that is degraded
346+
- `$NEW_DEVICE` - expands to the name of a new device that can replace the degraded device
347+
333348
### lustre mkfs
334349

335350
- `$FS_NAME` - expands to the filesystem name that was passed to Rabbit software from the workflow's #DW line.

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Release: 0.1.20
1+
# Release: 0.1.21
22
site_name: NNF
33
site_description: 'Near Node Flash'
44
docs_dir: docs/

0 commit comments

Comments
 (0)