openshift-docs icon indicating copy to clipboard operation
openshift-docs copied to clipboard

extensions/v1beta1 does not have any HorizontalPodAutoscaler

Open ravicm opened this issue 7 years ago • 2 comments

Which section(s) is the issue in?

Example 1 on this page https://docs.openshift.com/container-platform/3.9/dev_guide/pod_autoscaling.html#pod-autoscaling-memory

What needs fixing?

/ansible/inventories # cat hpa-ext-v1b1.yml
apiVersion: extensions/v1beta1
kind: HorizontalPodAutoscaler
metadata:
  name: frontend
spec:
  scaleRef:
    kind: DeploymentConfig
    name: router
    apiVersion: v1
    subresource: scale
  minReplicas: 1
  maxReplicas: 10
  cpuUtilization:
    targetPercentage: 80
/ansible/inventories #
/ansible/inventories #
/ansible/inventories #
/ansible/inventories # kubectl apply -f hpa-ext-v1b1.yml
error: error validating "hpa-ext-v1b1.yml": error validating data: couldn't find type: v1beta1.HorizontalPodAutoscaler; if you choose to ignore these errors, turn validation off with --validate=false
/ansible/inventories #
/ansible/inventories #
/ansible/inventories # kubectl apply -f hpa-ext-v1b1.yml --validate=false
error: unable to recognize "hpa-ext-v1b1.yml": no matches for extensions/, Kind=HorizontalPodAutoscaler

/ansible/inventories # oc version
oc v3.7.0+7ed6862
kubernetes v1.7.6+a08f5eeb62
features: Basic-Auth GSSAPI Kerberos SPNEGO

Server https://<readacted>:8443
openshift v3.7.2+cd74924-1
kubernetes v1.7.6+a08f5eeb62
/ansible/inventories #
/ansible/inventories #
/ansible/inventories #
/ansible/inventories # kubectl version
Client Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.6+a08f5eeb62", GitCommit:"c84beff", GitTreeState:"clean", BuildDate:"2017-11-29T16:24:59Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.6+a08f5eeb62", GitCommit:"c84beff", GitTreeState:"clean", BuildDate:"2018-04-11T21:18:09Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"linux/amd64"}
/ansible/inventories #

Also in the ref doc here : https://docs.openshift.com/container-platform/3.7/rest_api/apis-autoscaling/v1.HorizontalPodAutoscaler.html

I dont see /apis/extensions/v1beta1 has any HorizontalPodAutoscaler

ravicm avatar Jul 17 '19 02:07 ravicm

Sorry. @vikram-redhat Did i miss your response?. what is the reason for closing this ticket?

ravicm avatar Dec 17 '19 22:12 ravicm

@ravicm Hey - 3.10 and below docs are now out of support. I have closed tickets that deal with those docs. If it is an issue in the 3.11 docs could you please open a new issue. Thanks!

vikram-redhat avatar Dec 19 '19 01:12 vikram-redhat