Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gke deployment updates #9

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open

Conversation

positimothy
Copy link

@positimothy positimothy commented Aug 5, 2024

Updates to the way marqo on k8s is deployed on GKE:

  • Changed setup script to auto enable GKE Kubernetes API Engine.
  • Changed setup script to have options for deploy and destroy.
  • Changed setup script to read in envars so users don't edit the setup script.
  • Changed setup script so envars will be re-exported in different sessions i.e. if destroying the cluster in a new session the cluster name doesn't need to be provided by the user.
  • Export cluster IP address automatically as envar and to a file as permanent record so it can be used by python scripts etc.
  • Expand tests.
  • Updated READMEs to reflect these changes.
  • Add instructions to GKE README to install required glcoud plugin.

…LUSTER_IP is exported to so it's universal for testing purposes on all platforms, UPDADTE name of env files to avoid standard gitignore issues, UPDATE README
manifest_file_path="${OUT_DIR}/${APP_INSTANCE_NAME}_manifest_gke.yaml"
helm template "${APP_INSTANCE_NAME}" chart/marqo-kubernetes --set cloudProviderMatcher=cloud.google.com/gke-nodepool,gpu_enabled=$INSTALL_GPU,override_cuda_path=$INSTALL_GPU > "$manifest_file_path"

kubectl apply -f "$manifest_file_path"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it will take sometimes ( around 5 minutes at least) until all pods are up and health .
From this line until line 80 we need to have a while loop.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Fixed.

ali60
ali60 previously approved these changes Aug 7, 2024
Copy link
Contributor

@ali60 ali60 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
I think we should fix AKS and EKS to use the same format ,this can be done in future

gcloud container clusters get-credentials "$CLUSTER"

# Create vespaadmin node pools.
gcloud container node-pools create vespaadmin --cluster "$CLUSTER" --machine-type n1-standard-2 --disk-type pd-standard --disk-size=20 --num-nodes 1

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't these be taking the values from the manifest? ie the manifest should specify the machine-type and disk-type?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants