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

[Task] autoscalar and openvswitch-exec #327

Merged
merged 4 commits into from
Sep 25, 2018
Merged

Conversation

John-Lin
Copy link
Contributor

No description provided.

@John-Lin
Copy link
Contributor Author

測試 autoscalar是否可以運行的方法參考
https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/

# 創建 deployment
kubectl run php-apache --image=k8s.gcr.io/hpa-example --requests=cpu=200m --expose --port=80

# 創建 autoscalar
kubectl autoscale deployment php-apache --cpu-percent=50 --min=1 --max=10

# 增加deployment的工作量
kubectl run -i --tty load-generator --image=busybox /bin/sh

while true; do wget -q -O- http://php-apache.default.svc.cluster.local; done

#等待一分鐘後檢查
kubectl get hpa

@codecov-io
Copy link

Codecov Report

Merging #327 into develop will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #327   +/-   ##
========================================
  Coverage    71.29%   71.29%           
========================================
  Files           65       65           
  Lines         4135     4135           
========================================
  Hits          2948     2948           
  Misses         948      948           
  Partials       239      239

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8d948ee...6a3dbe3. Read the comment docs.

@John-Lin John-Lin merged commit 9cf6324 into develop Sep 25, 2018
@John-Lin John-Lin deleted the johnlin/metrics-and-ovs branch September 26, 2018 03:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants