Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vertical Pod Autoscaler #5

Open
thoraxe opened this issue Aug 10, 2020 · 3 comments
Open

Vertical Pod Autoscaler #5

thoraxe opened this issue Aug 10, 2020 · 3 comments
Assignees
Labels
new lab Net new lab content is needed

Comments

@thoraxe
Copy link
Contributor

thoraxe commented Aug 10, 2020

vpa docs

stress container

@thoraxe thoraxe added the new lab Net new lab content is needed label Aug 10, 2020
@thoraxe
Copy link
Contributor Author

thoraxe commented Aug 12, 2020

apiVersion: apps/v1
kind: Deployment
metadata:
  name: stress
  labels:
    app: stress
spec:
  replicas: 1
  selector:
    matchLabels:
      app: stress
  template:
    metadata:
      labels:
        app: stress
    spec:
      containers:
      - name: stress-container
        image: polinux/stress
        command: ['stress', '-c', '1']

@thoraxe
Copy link
Contributor Author

thoraxe commented Aug 12, 2020

apiVersion: autoscaling.k8s.io/v1
kind: VerticalPodAutoscaler
metadata:
  name: stress-recommender
spec:
  targetRef:
    apiVersion: "apps/v1"
    kind:       Deployment 
    name:       stress 
  updatePolicy:
    updateMode: "Auto" 

@thoraxe
Copy link
Contributor Author

thoraxe commented Aug 12, 2020

This doesn't appear to work when a limitrange is defined on the namespace. trying to figure out why.

@thoraxe thoraxe self-assigned this Aug 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new lab Net new lab content is needed
Projects
None yet
Development

No branches or pull requests

1 participant