constraint mix max pod.yaml

Replica Limits Configuration

This document outlines the configuration for replica limits in a Kubernetes environment.

Overview

The replica limits are defined for the Deployment kind within the apps API group. These limits ensure that deployments scale within the specified bounds.

Configuration Example

Here is an example configuration:

apiVersion: constraints.gatekeeper.sh/v1beta1
kind: k8sreplicalimits
metadata:
  name: replica-limits
spec:
  match:
    kinds:
      - apiGroups: ["apps"]
        kinds: ["Deployment"]
  parameters:
    ranges:
      - min_replicas: 3
        max_replicas: 10

Parameters