-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change default version Update docs
- Loading branch information
Showing
9 changed files
with
187 additions
and
49 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# This config creates a deployment with two pods, each requesting 100 millicores | ||
# and trying to utilize slightly above 500 millicores (repeatedly using CPU for | ||
# 0.5s and sleeping 0.5s). | ||
# It also creates a corresponding Vertical Pod Autoscaler that adjusts the requests. | ||
# Note that the update mode is left unset, so it defaults to "Auto" mode. | ||
apiVersion: "autoscaling.k8s.io/v1beta1" | ||
kind: VerticalPodAutoscaler | ||
metadata: | ||
name: hamster-vpa-deprecated | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: hamster | ||
--- | ||
apiVersion: extensions/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
name: hamster | ||
spec: | ||
replicas: 2 | ||
template: | ||
metadata: | ||
labels: | ||
app: hamster | ||
spec: | ||
containers: | ||
- name: hamster | ||
image: k8s.gcr.io/ubuntu-slim:0.1 | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 50Mi | ||
command: ["/bin/sh"] | ||
args: ["-c", "while true; do timeout 0.5s yes >/dev/null; sleep 0.5s; done"] |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
apiVersion: autoscaling.k8s.io/v1beta1 | ||
kind: VerticalPodAutoscaler | ||
metadata: | ||
name: redis-vpa | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: redis | ||
--- | ||
apiVersion: apps/v1beta2 # for versions before 1.8.0 use apps/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
name: redis-master | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: redis | ||
replicas: 3 | ||
template: | ||
metadata: | ||
labels: | ||
app: redis | ||
spec: | ||
containers: | ||
- name: master | ||
image: k8s.gcr.io/redis:e2e # or just image: redis | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 100Mi | ||
ports: | ||
- containerPort: 6379 |
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
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