how to enable api flags in kubernetes

12/11/2018

The below screenshot shows the kubernetes document to enable API server flags, but no clear instructions were given on where to change these API server flags. I'm using kubernetes on digital ocean cloud. I can not use hpa. enter image description here kubernetes version is: enter image description here

-- AATHITH RAJENDRAN
digital-ocean
kubernetes
kubernetes-apiserver

3 Answers

12/11/2018

I believe you need to get working HPA in your kubernetes cluster. I have written a step by step answer for that, how can you achieve it:

How to Enable KubeAPI server for HPA Autoscaling Metrics

Please have a look. Hope this helps

-- Prafull Ladha
Source: StackOverflow

12/11/2018

you can create a apiserver.conf file in master node & mount it in /etc/kubernetes/ directory of apiserver container. This will help you to customize your API server. here is the sample code for this.

-- kishorebjv
Source: StackOverflow

4/29/2019

This depends on how your api-server is running. If it's as a service on the master node, @kishorebjv may have your answer, but if the api-server runs as a pod in kubernetes you should only have to add the flags to the args for that deployment/daemonset.

-- switchboard.op
Source: StackOverflow