I don't think it's unreasonable for there to be a "scale protection" feature which indicates that scaling is non desirable. But there's no way to *prevent* a user from running two copies of something, other than as Michail notes preventing the user from mutating something.
What are you trying to defend against? The more concrete examples you can provide (where the app would be broken if there is >1 copy) the more we can do to ensure the use case is solved. On Sun, May 22, 2016 at 4:16 PM, Michail Kargakis <[email protected]> wrote: > Oh, I see. Then a HPA is not exactly what you want. You can constrain other > users from > scaling your app by having it in its own namespace that only you are able to > access but > ultimately this is not optimal and you cannot just remove the rights from > others to update > resources. I am not sure if any clean solution to this exists atm. > > On Fri, May 20, 2016 at 7:30 PM, Luis Pabón <[email protected]> wrote: >> >> Hi Michail and Humble, >> The goal is for the user/admin to be unable to scale up an application >> which cannot scale past one container. Michail, I'll try out what you >> pointed out. >> >> Thanks, >> >> - Luis >> >> ----- Original Message ----- >> From: "Michail Kargakis" <[email protected]> >> To: "Humble Devassy Chirammal" <[email protected]> >> Cc: "Luis Pabón" <[email protected]>, "users" >> <[email protected]> >> Sent: Friday, May 20, 2016 5:01:56 AM >> Subject: Re: Limiting scaling of a pod >> >> Luis, >> >> you can setup an horizontal pod autoscaler on top of your replication >> controller or deployment config with a MAX number of pods you want >> For HPA to work, you will need to enable cluster metrics >> >> https://docs.openshift.org/latest/install_config/cluster_metrics.html >> https://docs.openshift.org/latest/dev_guide/pod_autoscaling.html >> >> On Fri, May 20, 2016 at 10:56 AM, Humble Devassy Chirammal < >> [email protected]> wrote: >> >> > Hi Luis, >> > >> > Isnt it the 'replicas' setting in the pod yml/json does ? Or are you >> > looking for some other scaling limit here ? >> > >> > --Humble >> > >> > >> > On Thu, May 19, 2016 at 9:06 AM, Luis Pabón <[email protected]> wrote: >> > >> >> Is there a way to set OpenShift/Kubernetes maximum scaling limit of a >> >> Pod >> >> in the yml/json file for either manual scaling or autoscaling? >> >> >> >> - Luis >> >> >> >> _______________________________________________ >> >> users mailing list >> >> [email protected] >> >> http://lists.openshift.redhat.com/openshiftmm/listinfo/users >> >> >> > >> > >> > _______________________________________________ >> > users mailing list >> > [email protected] >> > http://lists.openshift.redhat.com/openshiftmm/listinfo/users >> > >> > > > > > _______________________________________________ > users mailing list > [email protected] > http://lists.openshift.redhat.com/openshiftmm/listinfo/users > _______________________________________________ users mailing list [email protected] http://lists.openshift.redhat.com/openshiftmm/listinfo/users
