Skip to content

Conversation

@sohaib-sharih
Copy link

Hi,
Reference:

  1. Course: Kubernetes for the Absolute Beginners - Hands-on](https://www.udemy.com/course/learn-kubernetes/)
  2. Lecture 54: GKE default settings requires you to set up the resources in the containers, if you don't do that declaratively, then the Autopilot injects the default resources which may restrict you from deploying additional resources.

Problem:

  1. If you try to create resources out of deployment yaml files without defining resources (cpu + memory), then it will give you the following error on your GKE CLI:
    Warning: autopilot-default-resources-mutator:Autopilot updated Deployment default/result: defaulted unspecified 'cpu' resource for containers [result] (see http://g.co/gke/autopilot-defaults).

Solution:

  1. Define resource requests + Limits in all your pods specs.
  2. Then create resources, and all your pods will run.
    Reference link of Autopilot: https://cloud.google.com/kubernetes-engine/docs/concepts/autopilot-resource-requests#defaults

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