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

Questions about implementing Foldy in production #21

Open
jiywang3 opened this issue Jun 20, 2023 · 2 comments
Open

Questions about implementing Foldy in production #21

jiywang3 opened this issue Jun 20, 2023 · 2 comments

Comments

@jiywang3
Copy link

I got the following error when running scripts/create_nodepools.sh:

$ bash scripts/create_nodepools.sh

  • '[' 0 -ne 0 ']'
    ++ yq eval .GoogleProjectId foldy/values.yaml -e
    usage: yq [-h] [--yaml-output] [--yaml-roundtrip]
    [--yaml-output-grammar-version {1.1,1.2}] [--width WIDTH]
    [--indentless-lists] [--in-place] [--version]
    [jq_filter] [files ...]
    yq: error: argument files: can't open '.GoogleProjectId': [Errno 2] No such file or directory: '.GoogleProjectId'
  • GOOGLE_PROJECT_ID=
@jiywang3 jiywang3 changed the title Questions about implement Foldy in production Questions about implementing Foldy in production Jun 20, 2023
@jiywang3
Copy link
Author

Maybe it's different version of yq. It worked after I replace "yq eval" with "yq".

@jiywang3
Copy link
Author

I installed yq with pip3 install yq, which is actually jq. After I replace “yq eval” with “yq -r”, it worked. But then I got the following errors:

bash scripts/create_nodepools.sh

  • '[' 0 -ne 0 ']'
    ++ yq -r .GoogleProjectId foldy/values.yaml -e
  • GOOGLE_PROJECT_ID=celestial-ridge-370319
    ++ yq -r .GkeClusterId foldy/values.yaml -e
  • GKE_CLUSTER_NAME=foldy-jiyao
    ++ yq -r .ServiceAccount foldy/values.yaml -e
  • GOOGLE_SERVICE_ACCOUNT_ID=foldy-sa
  • SERVICE_ACCOUNT_FULL_ADDRESS=foldy-sa@celestial-ridge-370319.iam.gserviceaccount.com
  • echo 'Using GKE Cluster ID: '
    Using GKE Cluster ID:
  • echo 'Using Google Service Account: [email protected]'
    Using Google Service Account: [email protected]
  • gcloud container node-pools create generalnodes --zone us-east1 --cluster foldy-jiyao --num-nodes 0 --min-nodes 0 --max-nodes 3 --enable-autoscaling --spot --machine-type e2-standard-2 --service-account [email protected]
    Default change: During creation of nodepools or autoscaling configuration changes for cluster versions greater than 1.24.1-gke.800 a default location policy is applied. For Spot and PVM it defaults to ANY, and for all other VM kinds a BALANCED policy is used. To change the default values use the --location-policy flag.
    ERROR: (gcloud.container.node-pools.create) ResponseError: code=400, message=Autopilot clusters do not support mutating node pools.

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

No branches or pull requests

1 participant