Skip to content

Commit 8bb8dd4

Browse files
authoredOct 18, 2024
Update minimum supported base platform to OpenShift 4.14 / Kuberenetes 1.27 (#86)
1 parent c6af463 commit 8bb8dd4

27 files changed

+35
-35
lines changed
 

‎SETUP.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ will be used in the setup process for each team of MLBatch users that
1111
is onboarded.
1212

1313
This setup has been developed on OpenShift 4.14 and Kubernetes 1.27 and
14-
is intended to support OpenShift 4.12 and up and/or Kubernetes 1.25 and up.
14+
is intended to support OpenShift 4.14 and up and/or Kubernetes 1.27 and up.
1515

1616
To start with, recursively clone and enter this repository:
1717
```sh
@@ -50,11 +50,11 @@ Instructions are provided for the following OpenShift AI ***fast*** releases:
5050

5151
## Kubernetes
5252

53-
MLBatch can be installed on any Kubernetes cluster version 1.25 or later
53+
MLBatch can be installed on any Kubernetes cluster version 1.27 or later
5454
by following these instructions:
55-
+ [Kubernetes Cluster Setup](./setup.k8s-v1.25/CLUSTER-SETUP.md)
56-
+ [Kubternets Team Setup](./setup.k8s-v1.25/TEAM-SETUP.md)
57-
+ [Kubernetes Uninstall](setup.k8s-v1.25/UNINSTALL.md)
55+
+ [Kubernetes Cluster Setup](./setup.k8s-v1.27/CLUSTER-SETUP.md)
56+
+ [Kubternets Team Setup](./setup.k8s-v1.27/TEAM-SETUP.md)
57+
+ [Kubernetes Uninstall](setup.k8s-v1.27/UNINSTALL.md)
5858

5959
On Kubernetes version 1.30 and later, an enhanced user experience is
6060
available by using ValidatingAdmissionPolicies to streamline quota

‎setup.k8s-v1.25/kind/kind-config.yaml

-13
This file was deleted.

‎setup.k8s-v1.25/CLUSTER-SETUP.md renamed to ‎setup.k8s-v1.27/CLUSTER-SETUP.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ kubectl delete crd noderesourcetopologies.topology.node.k8s.io
2727

2828
Create `default-priority`, `high-priority`, and `low-priority` priority classes:
2929
```sh
30-
kubectl apply -f setup.k8s-v1.25/mlbatch-priorities.yaml
30+
kubectl apply -f setup.k8s-v1.27/mlbatch-priorities.yaml
3131
```
3232

3333
## Coscheduler
@@ -40,8 +40,8 @@ helm install scheduler-plugins --namespace scheduler-plugins --create-namespace
4040
```
4141
Patch Coscheduler pod priorities:
4242
```sh
43-
kubectl patch deployment -n scheduler-plugins --type=json --patch-file setup.k8s-v1.25/coscheduler-priority-patch.yaml scheduler-plugins-controller
44-
kubectl patch deployment -n scheduler-plugins --type=json --patch-file setup.k8s-v1.25/coscheduler-priority-patch.yaml scheduler-plugins-scheduler
43+
kubectl patch deployment -n scheduler-plugins --type=json --patch-file setup.k8s-v1.27/coscheduler-priority-patch.yaml scheduler-plugins-controller
44+
kubectl patch deployment -n scheduler-plugins --type=json --patch-file setup.k8s-v1.27/coscheduler-priority-patch.yaml scheduler-plugins-scheduler
4545
```
4646

4747
## Install Operators
@@ -53,22 +53,22 @@ kubectl create namespace mlbatch-system
5353

5454
Install the Kubeflow Training Operator
5555
```sh
56-
kubectl apply --server-side -k setup.k8s-v1.25/training-operator
56+
kubectl apply --server-side -k setup.k8s-v1.27/training-operator
5757
```
5858

5959
Install the KubeRay Operator
6060
```sh
61-
kubectl apply --server-side -k setup.k8s-v1.25/kuberay
61+
kubectl apply --server-side -k setup.k8s-v1.27/kuberay
6262
```
6363

6464
Install Kueue
6565
```sh
66-
kubectl apply --server-side -k setup.k8s-v1.25/kueue
66+
kubectl apply --server-side -k setup.k8s-v1.27/kueue
6767
```
6868

6969
Install the AppWrapper Operator
7070
```sh
71-
kubectl apply --server-side -k setup.k8s-v1.25/appwrapper
71+
kubectl apply --server-side -k setup.k8s-v1.27/appwrapper
7272
```
7373
The provided configuration differs from the default configuration of the
7474
operators as follows:
@@ -90,14 +90,14 @@ operators as follows:
9090

9191
Create Kueue's default flavor:
9292
```sh
93-
kubectl apply -f setup.k8s-v1.25/default-flavor.yaml
93+
kubectl apply -f setup.k8s-v1.27/default-flavor.yaml
9494
```
9595

9696
## Cluster Role
9797

9898
Create `mlbatch-edit` role:
9999
```sh
100-
kubectl apply -f setup.k8s-v1.25/mlbatch-edit-role.yaml
100+
kubectl apply -f setup.k8s-v1.27/mlbatch-edit-role.yaml
101101
```
102102

103103
## Slack Cluster Queue
File renamed without changes.

‎setup.k8s-v1.25/UNINSTALL.md renamed to ‎setup.k8s-v1.27/UNINSTALL.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ Then to uninstall the MLBatch controllers and reclaim the corresponding
66
namespaces, do the following:
77
```sh
88
# Delete operators and CRDs
9-
kubectl delete -k setup.k8s-v1.25/appwrapper
10-
kubectl delete -k setup.k8s-v1.25/kueue
11-
kubectl delete -k setup.k8s-v1.25/kuberay
12-
kubectl delete -k setup.k8s-v1.25/training-operator
9+
kubectl delete -k setup.k8s-v1.27/appwrapper
10+
kubectl delete -k setup.k8s-v1.27/kueue
11+
kubectl delete -k setup.k8s-v1.27/kuberay
12+
kubectl delete -k setup.k8s-v1.27/training-operator
1313

1414
# Delete namespace
1515
kubectl delete namespace mlbatch-system

‎setup.k8s-v1.27/kind/kind-config.yaml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# this config file contains all config fields with comments
2+
kind: Cluster
3+
apiVersion: kind.x-k8s.io/v1alpha4
4+
# 1 control plane node and 1 worker node
5+
nodes:
6+
# the control plane node config
7+
- role: control-plane
8+
# kubernetes version 1.27.17 from kind v0.24.0
9+
image: kindest/node:v1.27.17@sha256:3fd82731af34efe19cd54ea5c25e882985bafa2c9baefe14f8deab1737d9fabe
10+
# the worker
11+
- role: worker
12+
# kubernetes version 1.27.17 from kind v0.24.0
13+
image: kindest/node:v1.27.17@sha256:3fd82731af34efe19cd54ea5c25e882985bafa2c9baefe14f8deab1737d9fabe
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# Values for Kubernetes v1.25+
1+
# Values for Kubernetes v1.27+
22

33
OPENSHIFT: false
4-
VERSION: k8s-v1.25
4+
VERSION: k8s-v1.27
55
KUBECTL: kubectl
66
VAP: false
77
SLACKCQ: true

‎setup.tmpl/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ docs: gotmpl
2929
../tools/gotmpl/gotmpl -input ./TEAM-SETUP.md.tmpl -output ../setup.RHOAI-v2.12/TEAM-SETUP.md -values RHOAI-v2.12.yaml
3030
../tools/gotmpl/gotmpl -input ./CLUSTER-SETUP.md.tmpl -output ../setup.RHOAI-v2.13/CLUSTER-SETUP.md -values RHOAI-v2.13.yaml
3131
../tools/gotmpl/gotmpl -input ./TEAM-SETUP.md.tmpl -output ../setup.RHOAI-v2.13/TEAM-SETUP.md -values RHOAI-v2.13.yaml
32-
../tools/gotmpl/gotmpl -input ./CLUSTER-SETUP.md.tmpl -output ../setup.k8s-v1.25/CLUSTER-SETUP.md -values Kubernetes-v1.25.yaml
33-
../tools/gotmpl/gotmpl -input ./TEAM-SETUP.md.tmpl -output ../setup.k8s-v1.25/TEAM-SETUP.md -values Kubernetes-v1.25.yaml
32+
../tools/gotmpl/gotmpl -input ./CLUSTER-SETUP.md.tmpl -output ../setup.k8s-v1.27/CLUSTER-SETUP.md -values Kubernetes-v1.27.yaml
33+
../tools/gotmpl/gotmpl -input ./TEAM-SETUP.md.tmpl -output ../setup.k8s-v1.27/TEAM-SETUP.md -values Kubernetes-v1.27.yaml
3434
../tools/gotmpl/gotmpl -input ./CLUSTER-SETUP.md.tmpl -output ../setup.k8s-v1.30/CLUSTER-SETUP.md -values Kubernetes-v1.30.yaml
3535
../tools/gotmpl/gotmpl -input ./TEAM-SETUP.md.tmpl -output ../setup.k8s-v1.30/TEAM-SETUP.md -values Kubernetes-v1.30.yaml
3636

0 commit comments

Comments
 (0)