Skip to content

RTae/kuberay-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KubeRay Setup

GKE Cluster

  1. Setup terraform
terraform init
  1. Apply infra
terraform apply

Demo setup

  1. Cluster connection
gcloud container clusters get-credentials tae-test --zone asia-southeast1-c --project rtae-lab
  1. Create namespace
kubectl create ns workspace

Demo KubeRay Service

  1. Setup Hugging face
export HF_TOKEN=<Hugging Face access token>
kubectl create secret generic hf-secret --from-literal=hf_api_token=${HF_TOKEN} --dry-run=client -n workspace -o yaml | kubectl apply -f -

Setup Nginx

  1. Add Nginx Helm repo
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
  1. Install Nginx
helm install ingress-nginx ingress-nginx/ingress-nginx \
    --version 4.11.3 \
    --namespace ingress-nginx \
    --create-namespace

optional

helm upgrade ingress-nginx ingress-nginx/ingress-nginx \
    --version 4.11.3 \
    --namespace ingress-nginx \
    --create-namespace

Setup Cert-manager

  1. Add Cert Manager Helm repro
helm repo add jetstack https://charts.jetstack.io
  1. Install Cert Manager
helm install cert-manager jetstack/cert-manager \
    --version v1.16.1 \
    --namespace cert-manager \
    --create-namespace \
    --set crds.enabled=true
  1. Install cert config
kubectl apply -f ./dependency/cert-manager/cert.yaml

optional

helm upgrade cert-manager jetstack/cert-manager \
    --version v1.16.1 \
    --namespace cert-manager \
    --set crds.enabled=true

Setup Crossplane

  1. Add Cross plane Helm repro
helm repo add crossplane-stable https://charts.crossplane.io/stable
  1. Install Crossplane
helm install crossplane crossplane-stable/crossplane  \
    --version 1.17.2 \
    --namespace crossplane-system \
    --create-namespace

optional

helm upgrade crossplane crossplane-stable/crossplane  \
    --version 1.17.2 \
    --namespace crossplane-system \
    --set 'args={--enable-composition-functions,--enable-composition-webhook-schema-validation,--enable-composition-revisions,--enable-environment-configs}'

Setup KubeRay

  1. Add KubeRay Helm repo
helm repo add kuberay https://ray-project.github.io/kuberay-helm/
  1. Install Ray Operator and CRD
helm install kuberay-operator kuberay/kuberay-operator  \
    --version 1.2.2 \
    --namespace kuberay \
    --create-namespace

optional

helm upgrade kuberay-operator kuberay/kuberay-operator  \
    --version 1.2.2 \
    --namespace kuberay 
  1. Install Ray API Server
helm install kuberay-apiserver kuberay/kuberay-apiserver  \
    --version 1.2.2 \
    --namespace kuberay \
    --create-namespace

optional

helm upgrade kuberay-apiserver kuberay/kuberay-apiserver  \
    --version 1.2.2 \
    --namespace kuberay 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published