- Setup terraform
terraform init
- Apply infra
terraform apply
- Cluster connection
gcloud container clusters get-credentials tae-test --zone asia-southeast1-c --project rtae-lab
- Create namespace
kubectl create ns workspace
- 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 -
- Add Nginx Helm repo
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
- 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
- Add Cert Manager Helm repro
helm repo add jetstack https://charts.jetstack.io
- Install Cert Manager
helm install cert-manager jetstack/cert-manager \
--version v1.16.1 \
--namespace cert-manager \
--create-namespace \
--set crds.enabled=true
- 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
- Add Cross plane Helm repro
helm repo add crossplane-stable https://charts.crossplane.io/stable
- 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}'
- Add KubeRay Helm repo
helm repo add kuberay https://ray-project.github.io/kuberay-helm/
- 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
- 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