pelithne / kubernetes-workshop

MIT License
3 stars 7 forks source link

Replace command for autoscaling with declarative way #2

Open adamlith opened 5 years ago

adamlith commented 5 years ago

You should consider using a yaml file for creating the hpa, so as to not teach someone to do anything non-declarativly:

Put this in a azure-vote-fron-hpa.yaml file: apiVersion: autoscaling/v1 kind: HorizontalPodAutoscaler metadata: name: azure-vote-front-hpa spec: maxReplicas: 10 minReplicas: 3 scaleTargetRef: apiVersion: extensions/v1beta1 kind: Deployment name: azure-vote-front-hpa targetCPUUtilizationPercentage: 50

And then modify the instructions to use that file.

pelithne commented 5 years ago

👍 . But next time a PR, right :-)