Skip to content

Commit 7fee873

Browse files
kiranp2396Kiran-Patelckadner
authored
Update Kubernetes high version in deployment docs (#318) (#332)
* Add Troubleshooting section * Limit K8s version for KIND cluster using `--image` flag Resolves #318 Signed-off-by: Kiran-Patel <[email protected]> Signed-off-by: Kiran Patel [email protected] Signed-off-by: Christian Kadner <[email protected]> Co-authored-by: Kiran-Patel <[email protected]> Co-authored-by: Christian Kadner <[email protected]>
1 parent 3fc0338 commit 7fee873

File tree

2 files changed

+30
-6
lines changed

2 files changed

+30
-6
lines changed

docs/install-mlx-on-kind.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ you could download the `kustomize` `v3.2.0` binary as described
4040

4141
Increase the default resources for Docker:
4242

43-
- CPUs: 8 Cores
44-
- Memory: 16 GB RAM
45-
- Disk: 32+ GB
43+
- **CPUs**: 8 Cores
44+
- **Memory**: 16 GB RAM
45+
- **Disk**: 32+ GB
4646

4747
**Note**: We found that on older laptops, like a 2016 MacBook Pro (2.7 GHz i7, 16 GB RAM) the MLX
4848
deployment on KIND may require to give all available resources to the Docker daemon in order to be
@@ -54,7 +54,7 @@ other application to crash.
5454
## Create KIND Cluster
5555

5656
```Bash
57-
kind create cluster --name mlx
57+
kind create cluster --name mlx --image kindest/node:v1.21.12
5858
kubectl cluster-info --context kind-mlx
5959
kubectl get pods --all-namespaces
6060
```

docs/mlx-setup.md

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
# Deploy MLX on an existing Kubernetes cluster
22

33
## Prerequisites
4-
* An existing Kubernetes cluster. Version 1.17+
5-
* The minimum recommended capacity requirement for MLX is 8 vCPUs and 16GB RAM
4+
* An existing Kubernetes cluster:
5+
- **Min version: 1.17**
6+
- **Max version: 1.21**
7+
* The recommended minimum capacity requirement for MLX are:
8+
- **CPUs**: 8 Cores
9+
- **Memory**: 16 GB RAM
10+
- **Disk**: 32+ GB
611
* If you are using IBM Cloud, follow the appropriate instructions for standing up your Kubernetes cluster using the [IBM Cloud Kubernetes Service](https://cloud.ibm.com/docs/containers?topic=containers-cs_cluster_tutorial#cs_cluster_tutorial)
712
* If you are using OpenShift on IBM Cloud, please follow the instructions for standing up your [IBM Cloud Red Hat OpenShift cluster](https://cloud.ibm.com/docs/openshift?topic=openshift-openshift_tutorial)
813
* [`kustomize v3.2.0`](https://github.com/kubernetes-sigs/kustomize/releases/tag/v3.2.0) is installed
@@ -48,3 +53,22 @@ To delete this MLX deployment, run the following commands in the same manifests
4853
```
4954
kustomize build example | kubectl delete -f -
5055
```
56+
57+
## Troubleshooting
58+
59+
- If you see errors like these during the deployment, it may be because of a unsupported Kubernetes version.
60+
Check the [Prerequisites](#prerequisites) for the supported Kubernetes versions.
61+
62+
```
63+
# while ! kustomize build example | kubectl apply -f -; do echo "Retrying to apply resources"; sleep 10; done
64+
...
65+
unable to recognize "STDIN": no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1beta1"
66+
unable to recognize "STDIN": no matches for kind "RoleBinding" in version "rbac.authorization.k8s.io/v1beta1"
67+
unable to recognize "STDIN": no matches for kind "ClusterRoleBinding" in version "rbac.authorization.k8s.io/v1beta1"
68+
unable to recognize "STDIN": no matches for kind "EnvoyFilter" in version "networking.istio.io/v1alpha3"
69+
...
70+
```
71+
To find your Kubernetes server version, run `kubectl version | grep Server`:
72+
```
73+
Server Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.12", ...
74+
```

0 commit comments

Comments
 (0)