-
Notifications
You must be signed in to change notification settings - Fork 29
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
Fix some bugs and add fabric #566
Conversation
healthz: "pineking/exechealthz-amd64:1.2" | ||
addon_manager: "pineking/kube-addon-manager-amd64:v6.4-alpha.3" | ||
kubedns: "pineking/kubedns-amd64:1.9" | ||
hyperkube: "gcr.io/google_containers/hyperkube-amd64:v1.6.2" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
尽量把镜像转到Docker hub上吧,gcr的镜像不翻墙是下不来的。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我看了一下脚本里边,为了不翻墙做了很多冗余的工作。
所以,我想我们应该设定这个脚本运行在一个可以翻墙的环境里边。这样,脚本很多地方会变得非常简单。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
嗯,模版里统一用官方的镜像好点。
docker/Dockerfile
Outdated
@@ -9,7 +8,7 @@ apk add dnsmasq openssl | |||
# Upload Sextant Go programs and retrieve dependencies. | |||
RUN mkdir -p /go/bin | |||
COPY cloud-config-server /go/bin | |||
COPY registry /go/bin | |||
#COPY registry /go/bin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No comment out lines please!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
download_kernel: n | ||
centos_version: "7.3.1611" | ||
download_kernel: y | ||
# mirror_site, please check that $mirror_site/$centos_version/(isos|os) exist. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add # IMPORTANT:
at the beginning.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
# http://mirrors.163.com/centos | ||
# http://vault.centos.org/ | ||
mirror_site: http://vault.centos.org | ||
# please note this version number, it's important. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# please note this version number, it's important.
=> # Configure the centos version for isos and rpms
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
ceph: "typhoon1986/ceph-daemon:tag-build-master-jewel-ubuntu-14.04-fix370" | ||
default_backend: "yancey1989/defaultbackend:1.0" | ||
ntp: "redaphid/docker-ntp-server" | ||
heapster: "kubernetes/heapster:canary" | ||
grafana: "lupan/heapster_grafana:v2.6.0-2" | ||
influxdb: "lupan/heapster_influxdb:v0.5" | ||
dashboard: "pineking/kubernetes-dashboard-amd64:v1.6.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change this image to the gcr.io
version too.
scripts/centos.sh
Outdated
@@ -4,11 +4,14 @@ GPU_DIR='gpu_drivers' | |||
ABSOLUTE_GPU_DIR="$BSROOT/html/static/CentOS7/$GPU_DIR" | |||
HTTP_GPU_DIR="http://$BS_IP/static/CentOS7/$GPU_DIR" | |||
|
|||
RED='\033[0;31m' | |||
GREEN='\033[0;32m' | |||
RESET="\033[0;0m" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
赞👍。
@gongweibao 这个没问题是不是可以先 merge,可以分多次提 PR,避免很多功能糅合在一个 PR 里,每个 PR 越独立越简单越好。 |
在 #567 comment 是否可以讨论下统一下,避免浪费人力? |
fabric/upgrade_kenerl.py
Outdated
@@ -0,0 +1,65 @@ | |||
from __future__ import with_statement |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
文件名 typo,kenerl -> kernel
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.Done.
ntp: "redaphid/docker-ntp-server" | ||
heapster: "kubernetes/heapster:canary" | ||
grafana: "lupan/heapster_grafana:v2.6.0-2" | ||
influxdb: "lupan/heapster_influxdb:v0.5" | ||
dashboard: "pineking/kubernetes-dashboard-amd64:v1.6.0" | ||
dashboard: "pgcr.io/google_containers/kubernetes-dashboard-amd64:v1.6.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pgcr -> gcr?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
多谢。用vim的时候按错了估计。
KERNEL_LT=$(ls ${BSROOT}/html/static/CentOS7/repo/cloudinit/kernel-lt-*) | ||
if [[ -n ${KERNEL_LT} ]]; then | ||
REPO_IMAGES=${REPO_IMAGES} + 'kernel-lt kernel-devel' | ||
REPO_IMAGES=${REPO_IMAGES}' kernel-lt kernel-devel' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kernel-lt-devel ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
对。
fabric/upgrade_kenerl.py
Outdated
|
||
@parallel | ||
def upgrade(): | ||
put("./upgrade_kenerl.sh", "/tmp/upgrade_kenerl.sh") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kenerl.sh -> kernel.sh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
fabric/README_CN.md
Outdated
|
||
# 步骤三:升级kernel | ||
``` | ||
fab -f gpu_driver.py prepare |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update_kernel.py ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
exit 1 | ||
fi | ||
|
||
if [[ $1 == " y" ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
“ y” 引号里有一空格?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是的。脚本解析yaml文件的时候有一个空格。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM++
Fix #567
Fix #571