-
-
Save zyriuse75/e75a75dc447eeef9e8530f974b19c28a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#list of running HPA | |
[root@chgvascldp99 morla]# kubectl get hpa -n ns-svc-cas | |
NAME REFERENCE TARGETS MINPODS MAXPODS REPLICAS AGE | |
hpa-pod Deployment/cas-dp-ap 0%/28% 2 2 2 42m | |
#i trying to update the HPA with the name hpa-pod | |
[root@chgvascldp99 morla]# kubectl autoscale hpa-pod --min=2 --max=5 -n ns-svc-cas | |
error: resource(s) were provided, but no name, label selector, or --all flag specified | |
# | |
[root@chgvascldp99 morla]# kubectl autoscale deployment cas-dp-ap --min=2 --max=5 -n ns-svc-cas | |
deployment.apps "cas-dp-ap" autoscaled | |
# it create a new one who will fail. | |
[root@chgvascldp99 morla]# kubectl get hpa -n ns-svc-cas | |
NAME REFERENCE TARGETS MINPODS MAXPODS REPLICAS AGE | |
cas-dp-ap Deployment/cas-dp-ap <unknown>/80% 2 5 0 3s | |
hpa-pod Deployment/cas-dp-ap 0%/28% 2 2 2 43m |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment