一、k8s
文档:
https://jimmysong.io/kubernetes-handbook/concepts/deployment.html
命令行大全
https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands
http://docs.kubernetes.org.cn/626.html
二、rancher学习视频
http://www.cnblogs.com/rancher-maomao/p/9073919.html
三、jenkins 如何在rancher里面实现持续集成
https://rancher.com/blog/2018/2018-11-27-scaling-jenkins/ jenkins调用kubectl的插件
四、linux 命令行大全
http://www.runoob.com/linux/linux-command-manual.html
五、Docker 命令行大全
http://www.runoob.com/docker/docker-command-manual.html
六、Docker,Docker Compose,Docker Swarm,Kubernetes之间的区别
https://blog.csdn.net/notsaltedfish/article/details/80959913
七、如果在Rancher里面通过容器部署Jenkins的话,会因为官方的jenkins镜像里面没有安装docker,kubectl等工具导致jenkins无法执行docker之类的命令。需要使用下面的Dockerfile来安装jenkins。
https://github.com/daviddang91/jenkins-docker-kubectl/blob/master/Dockerfile
https://github.com/jenkinsci/docker/issues/263
1 FROM jenkins/jenkins:lts 2 MAINTAINER robert.li@shareworks.cn 3 USER root 4 5 ENV JAVA_VERSION 8 6 ENV MAVEN_VERSION 3.6.0 7 8 # Install the latest Docker CE binaries 9 RUN \ 10 apt-get update && \ 11 apt-get -y install apt-transport-https \ 12 ca-certificates \ 13 curl \ 14 gnupg2 \ 15 software-properties-common && \ 16 curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg > /tmp/dkey; apt-key add /tmp/dkey && \ 17 add-apt-repository \ 18 "deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \ 19 $(lsb_release -cs) \ 20 stable" && \ 21 apt-get update && \ 22 apt-get -y install docker-ce 23 24 # Override jenkins's preinstalled java version 25 ENV JAVA_HOME /usr/lib/jvm/java-8-oracle 26 ENV JRE_HOME ${JAVA_HOME}/jre 27 ENV CLASSPATH .:${JAVA_HOME}/lib/dt.jar 28 RUN \ 29 apt-get install -y software-properties-common && \ 30 # add-apt-repository ppa:webupd8team/java -y && \ 31 add-apt-repository -y 'deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main' && \ 32 apt-get update && \ 33 echo oracle-java${JAVA_VERSION}-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections && \ 34 apt-get install --allow-unauthenticated -y oracle-java${JAVA_VERSION}-installer && \ 35 apt-get clean 36 37 # Install maven 38 ENV M2_HOME /opt/apache-maven 39 ENV PATH $PATH:${M2_HOME}/bin 40 RUN \ 41 wget -q -c -O "apache-maven-${MAVEN_VERSION}.tar.gz" http://mirrors.tuna.tsinghua.edu.cn/apache/maven/maven-3/3.6.0/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz && \ 42 tar -xf apache-maven-${MAVEN_VERSION}.tar.gz && \ 43 mv apache-maven-${MAVEN_VERSION} ${M2_HOME} \ 44 && ${M2_HOME}/bin/mvn -version
本站文章如无特殊说明,均为本站原创,如若转载,请注明出处:Rancher + k8s + docker 部署资料 - Python技术站