qdyxmas's Room

Done is better than perfect...



    sudo yum install -y python36
    sudo yum install -y yum-utils device-mapper-persistent-data lvm2
    sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
    sudo yum install docker-ce
    systemctl enable docker
    systemctl start docker
4.下载docker python3.6的镜像
    docker search python #查看python相关的镜像文件
    docker pull markadams/chromium-xvfb-py3    #这个是selenium的一个镜像,包含python36
    docker build -t xkmonitor -f Dockerfile .
    docker run  -d -i -t xkmonitor /bin/bash    #如果能够进入表示已经启动
    docker images获取xkmonitor的image id
    docker tag image_id soloxmas/xkool-monitor
    docker login #输入注册的用户名和密码 
    docker push soloxmas/xkool-monitor #把打好tag的image推送到docker库中以便拉取,这一步比较慢


    curl -Lo kubectl    http://kubernetes.oss-cn-hangzhou.aliyuncs.com/kubernetes-release/release/v1.16.0/bin/linux/amd64/kubectl
    chmod +x kubectl
    cp kubectl /usr/local/bin

    curl -Lo minikube http://kubernetes.oss-cn-hangzhou.aliyuncs.com/minikube/releases/v1.4.0/minikube-linux-amd64
    chmod +x minikube
    cp minikube /usr/local/bin
    minikube start --vm-driver=none
    minikube status #查看状态
    kubectl create namespace xkool-monitor
    kubectl apply -f monitor-deploy-port.yml

    echo 1 > /proc/sys/net/ipv4/ip_forward  #开启linux转发功能



    kubectl get pod -n xkool-monitor        #查看有哪些pod在运行
        [root@localhost xk_monitor]# kubectl get pod -n xkool-monitor
        NAME                             READY   STATUS    RESTARTS   AGE
        monitor-5746bfdb9b-hnrsq         1/1     Running   0          4m8s
        xkool-monitor-6cd4d56f55-9hvjx   1/1     Running   2          6h53m
    kubectl get deployment -n xkool-monitor #查看有哪些pod在运行
        [root@localhost xk_monitor]# kubectl get deployment -n xkool-monitor
        NAME            READY   UP-TO-DATE   AVAILABLE   AGE
        monitor         1/1     1            1           9m58s
        xkool-monitor   1/1     1            1           6h59m
kubectl delete pod xkool-monitor-6cd4d56f55-9hvjx -n xkool-monitor  #删除pod
kubectl delete deployment xkool-monitor -n xkool-monitor            #删除deployment

ubuntu 18.04 k8s/docker

    sudo apt-get update
     apt-get install docker.io=17.12.1-0ubuntu1
    systemctl start docker
    systemctl enable docker #设置开机启动
4.拉取docker image镜像
    docker pull soloxmas/xkool-monitor
    wget "https://storage.googleapis.com/kubernetes-release/release/v1.12.2/bin/linux/amd64/kubectl" -O "/usr/local/bin/kubectl"
    cp kubectl /usr/local/bin/
    chmod +x /usr/local/bin/kubectl
    1. curl -Lo minikube http://kubernetes.oss-cn-hangzhou.aliyuncs.com/minikube/releases/v0.30.0/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
    2. minikube start --vm-driver=none --registry-mirror=https://registry.docker-cn.com
    kubectl create namespace xkool-monitor
    kubectl apply -f monitor-deploy.yml
    root@xkool:~/xk_monitor# kubectl get pod -n xkool-monitor
    NAME                      READY   STATUS    RESTARTS   AGE
    monitor-f99d4df76-2pvfh   1/1     Running   0          14m


23 评论

  1. KcnIZ

    Pills information for patients. Brand names. <a href="https://lyricafor.top">buying lyrica without insurance</a> in Canada All news about medicine. Read here.

  2. JaniceWeS

    how to buy cialis <a href="https://mycialistabs.com/">is there a generic for cialis</a> cialis picture

  3. TiffanyreD

    order cialis online <a href="https://toptadalafiltabs.com/">tadalafil online</a> 20 mg cialis

  4. Stellavam

    good topics to write an argumentative essay on <a href="https://topessaywriterfas.com/">cheap essay writing service uk</a> how to write an essay on a short story

  5. RebeccaMew

    write me a essay <a href="http://writemyessayslfd.com/">the write stuff thinking through essays</a> write that essay

  6. FrancesHix

    buy generic 100mg viagra online <a href="https://mrviagrashop.com">viagra for men</a> cvs viagra

  7. Martinanulse

    itsoktocry viagra <a href="https://mysildenafilkr.com/">cheap viagra</a> viagra jokes

  8. Kathryngogue

    what is the difference between viagra and cialis <a href="http://tadalafilled.com/">tadalafil dosage</a> is cialis over the counter

  9. JjmVO

    references on a resume <a href="http://coverletterforresumetop.com/">help me create a resume</a> special education teacher resume

  10. KreLS

    resume accent <a href="https://writingacoverletteronline.com/">build your resume</a> project manager cover letter

  11. ZytML

    cost of viagra <a href="https://edviagramaster.net/">viagra triangle</a> viagra without a doctor prescription canada

  12. GyxMS

    compra viagra <a href="https://sildenafilviagratop.com">walgreens generic viagra</a> sildenafil

  13. TelRU

    cialis dosage 40 mg <a href="https://cialisortadalafil.com/">tadalafil side effects long term</a> buy cialis online reddit

  14. UstNJ

    cialis <a href="https://topcialistabs.com/">https://topcialistabs.com/</a> viagra vs cialis forum

  15. KvyER

    <a href="https://5bz.ru/">информационная база предприятий россии</a>

  16. yztfmdh

    qdyxmas's Room yztfmdh http://www.g4cryf67ka15vh4pb2p2h51h836xx608s.org/ <a href="http://www.g4cryf67ka15vh4pb2p2h51h836xx608s.org/">ayztfmdh</a> [url=http://www.g4cryf67ka15vh4pb2p2h51h836xx608s.org/]uyztfmdh[/url]

  17. wjqecinnbo

    qdyxmas's Room [url=http://www.gl5cx87ma3h752u8n0qu693o7fme586cs.org/]uwjqecinnbo[/url] <a href="http://www.gl5cx87ma3h752u8n0qu693o7fme586cs.org/">awjqecinnbo</a> wjqecinnbo http://www.gl5cx87ma3h752u8n0qu693o7fme586cs.org/

  18. cmdcwdrvvl

    qdyxmas's Room <a href="http://www.gsj2w996crq63uku81068nti893p4r2fs.org/">acmdcwdrvvl</a> [url=http://www.gsj2w996crq63uku81068nti893p4r2fs.org/]ucmdcwdrvvl[/url] cmdcwdrvvl http://www.gsj2w996crq63uku81068nti893p4r2fs.org/

  19. JkxMV

    <a href="https://domalech.ru">can i buy trazodone</a>

  20. DlqAS

    Medicine information sheet. Drug Class. <a href="https://plaquenil4people.top">where can i buy plaquenil</a> in Canada Some trends of meds. Read here.

  21. mfhqqywqce

    qdyxmas's Room [url=http://www.gttv089pwfw3b3pti05016a78f6f7o98s.org/]umfhqqywqce[/url] <a href="http://www.gttv089pwfw3b3pti05016a78f6f7o98s.org/">amfhqqywqce</a> mfhqqywqce http://www.gttv089pwfw3b3pti05016a78f6f7o98s.org/

  22. CharlesVex

    “I haven’t seen you in these parts,” the barkeep said, sidling over to where I sat. “Designation’s Bao.” He stated it exuberantly, as if word of his exploits were shared aside settlers about multitudinous a firing in Aeternum. He waved to a unanimated tun hard by us, and I returned his indication with a nod. He filled a field-glasses and slid it to me across the stained red wood of the bench before continuing. “As a betting houseman, I’d be willing to wager a above-board bit of invent you’re in Ebonscale Reach for more than the wet one's whistle and sights,” he said, eyes glancing from the sword sheathed on my cool to the capitulate slung across my back. http://www.google.md/url?q=https://renewworld.ru/

  23. CharlesVex

    “I haven’t seen you in these parts,” the barkeep said, sidling during to where I sat. “Designation’s Bao.” He stated it exuberantly, as if solemn word of honour of his exploits were shared by means of settlers hither many a verve in Aeternum. He waved to a wooden tun upset us, and I returned his gesture with a nod. He filled a telescope and slid it to me across the stained red wood of the bar in the vanguard continuing. “As a betting houseman, I’d be assenting to wager a honourable speck of silver you’re in Ebonscale Reach in search more than the carouse and sights,” he said, eyes glancing from the sword sheathed on my in to the bow slung across my back. http://maps.google.im/url?q=https://renewworld.ru/new-world-kak-popast-na-alfa-i-beta-testy/