centos 7 setup minikube k8s environment

tools

These tools just for virtual cloud compute machine learning

docker you can install by yum brew apt-get

deploy.sh is for kubeflow

ks is ksonnet

helm s2i sti docker-compose kubectl minikube

modeldb.jar is for modeldb package ,you need install jdk maven mongodb python3 thrift protobuf grpc nodejs npm sqlite ,then you can run it,some python3 package lore grpc-tools keras tensorflow numpy pandas sklearn anaconda

java -jar modeldb-with-dependency.jar

then you need git clone modeldb.git repo and init sqlite database use modeldb generate_database.sh script then you can cd modeldb frontend directory ,run [npm start]

then you need git clone seldon-core git repo ,and install seldon-core on kubenete,and docker pull some seldon -wrapper tools

minikube kubectl helm ks[ksonnet] s2i docker-compose sti kubeflow you need copy it to /usr/local/bin/ or add then to the path enviroment variable

git clone https://github.com/mitdbg/modeldb.git

git clone https://github.com/SeldonIO/seldon-core.git

git clone thrift

docker pull seldonio/seldon-core-s2i-python3:0.1

docker pull seldonio/core-python-wrapper:0.7

edit at 2018-8-23 am 10:31

some seldon-core docker images do not contain some python package ,you can run it image become container with /bin/bash,then into the container ,edit python package source change to douban ,https://pypi.douban.com/simple ,and pip3 install keras tensorflow pandas scipy grpc-tools. then docker commit this container will become new image

notice : some things was wrong if you want to use helm ,you could choose,one your server must has global vpn proxy to get googleapi reposity in China ,two change the default repo to aliyun and so on

maybe you want download some compoment fast in China low net speed and great firewall block ,

for docker suggest use netease http://hub-mirror.c.163.com

for python pip package use htttps://pypi.douban.com/simple

for helm

for kubenete

for maven use aliyun

for scala sbt use aliyun

for nodejs npm use aliyun

please use yum install the virtualbox rpm package ,because that can download the dependency by itself

yum install VirtualBox-5.2-5.2.16_123759_el7-1.x86_64.rpm

then you do "minikube start " it will download kubenete virtualbox file ,but maybe cannot run ,will has one error !!

[root@10 software]# minikube start

Starting local Kubernetes v1.10.0 cluster... Starting VM... E0828 15:22:55.257507 86755 start.go:168] Error starting host: Error creating host: Error executing step: Running precreate checks. : We support Virtualbox starting with version 5. Your VirtualBox install is "WARNING: The vboxdrv kernel module is not loaded. Either there is no module\n available for the current kernel (3.10.0-862.9.1.el7.x86_64) or it failed to\n load. Please recompile the kernel module and install it by\n\n sudo /sbin/vboxconfig\n\n You will not be able to start VMs until this problem is fixed.\n5.2.18r124319". Please upgrade at https://www.virtualbox.org.

then you do "/usr/lib/virtualbox/vboxdrv.sh setup " but maybe also has error

[root@10 software]# /usr/lib/virtualbox/vboxdrv.sh setup

vboxdrv.sh: Stopping VirtualBox services. vboxdrv.sh: Starting VirtualBox services. vboxdrv.sh: Building VirtualBox kernel modules. This system is currently not set up to build kernel modules. Please install the Linux kernel "header" files matching the current kernel for adding new hardware support to the system. The distribution packages containing the headers are probably: kernel-devel kernel-devel-3.10.0-862.9.1.el7.x86_64

you need to install kernel-devel ,like the system notice

yum install -y kernel-devel-3.10.0-862.9.1.el7.x86_64

then do " /usr/lib/virtualbox/vboxdrv.sh setup " again

final do "minikube start " maybe it will run normally

also you can read this arctile https://blog.csdn.net/liumiaocn/article/details/52041726

when you make install thrift

thrift 0.11.0 yum install ant -y [for java compile ] https://github.com/apache/thrift

http://ftp.wayne.edu/apache/thrift/0.11.0/thrift-0.11.0.tar.gz https://blog.csdn.net/yangzhenzhen/article/details/77823331

./bootstrap.sh ./configure --enable-coverage --with-go=no --with-golang=no make && make install

if make thrift failed beaucse nodejs compile ,you can add args --with-js-no --with-node=no --with-nodejs=no ,maybe it can successsed

when you want to install grpc

git clone https://github.com/grpc/grpc.git cd grpc git submodule update --init make make install

pip3 install grpcio-tools

when you install mongodb

the config file like that

idae - MongoDB config start - 2016-05-02

設(shè)置數(shù)據(jù)文件的存放目錄

dbpath = /usr/local/mongodb/bin/data/test/db

設(shè)置日志文件的存放目錄及其日志文件名

logpath = /usr/local/mongodb/bin/data/test/logs/mongodb.log

設(shè)置端口號(默認(rèn)的端口號是 27017)

port = 27017

設(shè)置為以守護(hù)進(jìn)程的方式運(yùn)行件舵,即在后臺運(yùn)行

fork = true

nohttpinterface = true

nohttpinterface = true

配置遠(yuǎn)程連接

bind_ip = 0.0.0.0

auth=true

idae - MongoDB config end - 2016-05-02

then create db and log directory mkdir -p /usr/local/mongodb/bin/data/test/db mkdir -p /usr/local/mongodb/bin/data/test/logs/

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個(gè)濱河市脯厨,隨后出現(xiàn)的幾起案子铅祸,更是在濱河造成了極大的恐慌,老刑警劉巖,帶你破解...
    沈念sama閱讀 211,194評論 6 490
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件临梗,死亡現(xiàn)場離奇詭異涡扼,居然都是意外死亡,警方通過查閱死者的電腦和手機(jī)盟庞,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 90,058評論 2 385
  • 文/潘曉璐 我一進(jìn)店門吃沪,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人什猖,你說我怎么就攤上這事票彪。” “怎么了不狮?”我有些...
    開封第一講書人閱讀 156,780評論 0 346
  • 文/不壞的土叔 我叫張陵降铸,是天一觀的道長。 經(jīng)常有香客問我荤傲,道長垮耳,這世上最難降的妖魔是什么颈渊? 我笑而不...
    開封第一講書人閱讀 56,388評論 1 283
  • 正文 為了忘掉前任遂黍,我火速辦了婚禮,結(jié)果婚禮上俊嗽,老公的妹妹穿的比我還像新娘雾家。我一直安慰自己,他們只是感情好绍豁,可當(dāng)我...
    茶點(diǎn)故事閱讀 65,430評論 5 384
  • 文/花漫 我一把揭開白布芯咧。 她就那樣靜靜地躺著,像睡著了一般竹揍。 火紅的嫁衣襯著肌膚如雪敬飒。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 49,764評論 1 290
  • 那天芬位,我揣著相機(jī)與錄音无拗,去河邊找鬼。 笑死昧碉,一個(gè)胖子當(dāng)著我的面吹牛英染,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播被饿,決...
    沈念sama閱讀 38,907評論 3 406
  • 文/蒼蘭香墨 我猛地睜開眼四康,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了狭握?” 一聲冷哼從身側(cè)響起闪金,我...
    開封第一講書人閱讀 37,679評論 0 266
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎论颅,沒想到半個(gè)月后哎垦,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體喝检,經(jīng)...
    沈念sama閱讀 44,122評論 1 303
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 36,459評論 2 325
  • 正文 我和宋清朗相戀三年撼泛,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了挠说。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點(diǎn)故事閱讀 38,605評論 1 340
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡愿题,死狀恐怖损俭,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情潘酗,我是刑警寧澤杆兵,帶...
    沈念sama閱讀 34,270評論 4 329
  • 正文 年R本政府宣布,位于F島的核電站仔夺,受9級特大地震影響琐脏,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜缸兔,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 39,867評論 3 312
  • 文/蒙蒙 一日裙、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧惰蜜,春花似錦昂拂、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 30,734評論 0 21
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至财著,卻和暖如春联四,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背撑教。 一陣腳步聲響...
    開封第一講書人閱讀 31,961評論 1 265
  • 我被黑心中介騙來泰國打工朝墩, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留,地道東北人驮履。 一個(gè)月前我還...
    沈念sama閱讀 46,297評論 2 360
  • 正文 我出身青樓鱼辙,卻偏偏與公主長得像,于是被迫代替她去往敵國和親玫镐。 傳聞我的和親對象是個(gè)殘疾皇子倒戏,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 43,472評論 2 348

推薦閱讀更多精彩內(nèi)容