<p>Can we set min and max limit for deployments at deployment level, not at cluster or replica set level in kubernetes ?</p>

<p>On deployment level <strong>it is not possible</strong>, but there is an option to do this indirectly. You should use a <strong>HorizontalPodAutoscaler</strong> (HPA for short):</p>
<blockquote>
<p>HPA automatically updates a workload resource (such as a Deployment or
StatefulSet), with the aim of automatically scaling the workload to
match demand.</p>
</blockquote>
<p>Example code for HPA:</p>
<pre><code>apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
  name: php-apache
spec:
  scaleTargetRef:
    apiVersion: apps/v1
    kind: Deployment
    name: php-apache
  minReplicas: 1
  maxReplicas: 10
</code></pre>
<p>More information can be found in <a href="https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/" rel="noreferrer">Kubernetes documentation</a>.</p>
