operator icon indicating copy to clipboard operation
operator copied to clipboard

Allow static replicas of knative-serving workloads to be created

Open husnialhamdani opened this issue 2 years ago • 3 comments

Problem Based on https://knative.dev/docs/install/operator/configuring-serving-cr/#override-replicas-labels-and-annotations, there's no way to define a static replicas, in certain case, specifiying static number would be needed.

Exit Criteria Allow user to have a static number of replicas.

husnialhamdani avatar Oct 01 '23 15:10 husnialhamdani

If you want specify the number of replicas, this is how you can do it

...
  workloads:
  - name: webhook
    replicas: 3

The workloads, you can specify the name of the deployment/daemonset/statefulset, etc. In this example, webhook is the name.

houshengbo avatar Nov 16 '23 03:11 houshengbo

Still doesn't works, I tried like this. The HPA still there.

apiVersion: operator.knative.dev/v1beta1
kind: KnativeServing
metadata:
  name: knative-serving
  namespace: knative-serving
spec:
  workloads:
   - name: activator
     replicas: 5
   - name: webhook
     replicas: 3
  podDisruptionBudgets:
    - name: activator-pdb
      minAvailable: 1
    - name: webhook-pdb
      minAvailable: 1

husnialhamdani avatar Dec 07 '23 10:12 husnialhamdani

This issue is stale because it has been open for 90 days with no activity. It will automatically close after 30 more days of inactivity. Reopen the issue with /reopen. Mark the issue as fresh by adding the comment /remove-lifecycle stale.

github-actions[bot] avatar Mar 07 '24 01:03 github-actions[bot]