admiraltyio / admiralty

A system of Kubernetes controllers that intelligently schedules workloads across clusters.
https://admiralty.io
Apache License 2.0
683 stars 86 forks source link

Install on GKE: insufficient quota to match these scopes #124

Closed adrienjt closed 3 years ago

adrienjt commented 3 years ago

This issue is similar to https://github.com/open-policy-agent/gatekeeper/issues/1120

We added priorityClassName: system-cluster-critical to Admiralty pods in v0.14. GKE limits priority class consumption by default: https://kubernetes.io/docs/concepts/policy/resource-quotas/#limit-priority-class-consumption-by-default

apiVersion: v1
kind: ResourceQuota
metadata:
  name: admiralty
  namespace: admiralty
spec:
  hard:
    pods: 12 # should cover the 4 deployments replica counts and rollout surges
  scopeSelector:
    matchExpressions:
    - operator: In
      scopeName: PriorityClass
      values:
      - system-cluster-critical

Workaround in the meantime: add the ResourceQuota manually and retry.