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

Feat/compute filter out gke nodes #119

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

simonebruzzechesse
Copy link

Hi,

We recently updated the .eslintrc configuration to work with Windows end of line, issueing a yarn build command on the client folder would otherwise result in a error like the following: "Line 35:1: Delete prettier/prettier".

On the compute file we appended a string on the tag_filter expression to filter out compute instances belonging to one GKE cluster (node pool). This is useful in case one or more labels matching a Zorya policy are assigned both to the cluster and to the node pool. In this very specific case we noticed an error when Zorya tries to stop instances belonging to the Node Pool MIG which results in the latter destroying and recreating those instances and an overall failure in shutting down GKE cluster nodes.

The real problem is due to Zorya not being able to manage GCP MIG. The compute change_status method should not consider instances belonging to Managed Instance Group since, as I said before, "instance stop" is not possible for those VMs. We dind't find a simple way to filter out instances belonging to MIG since this information is available in the metadata field but this field is not managed (from official Google documentation) in the compute list filter options.

…t EOL in order to avoid failure on windows systems during build process
…to avoid listing VMs belonging to GKE node pools having the same tags specified for a given policy
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.

1 participant