First, the experimental environment
Operating system: Centos 7 x86_64
docker:1.12.6
II. Deployment of k8s steps
2.1 Installation Kubectl
Cat
2.2 Installation Minikube
Download Address: HTTPS://STORAGE.GOOGLEAPIS.COM/MINIKUBE/RELEASES/V0.26.1/MINIKUBE-LINUX-AMD64
When the download is complete, rename the minikube-linux-amd64 to Minikube and place it in the/usr/bin/directory
Give execution permission: chmod +x/usr/bin/minikube
2.3 Preparing for mirror
0. Preface
Overall architecture directory: ASP. NET core distributed project-Directory
k8s Schema Catalog: Kubernetes (K8S) cluster deployment (K8S Enterprise Docker container cluster Management) series catalog
1. Deploy Master Components
The components of the master server are: Kube-apiserver, Kube-controller-manager, Kube-scheduler
So you need to download
Using Kubeasz to install multi-master multi-slave k8s cluster One, Project introductionKubeasz for GitHub on the open source of a project for the installation of k8s cluster, there are many methods to install k8s, but more than single-master multi-node installation, but Kubeasz can be very convenient to achieve multi-master multi-from, for the experiment is reall
download to the server with your browser and then execute the following commandTo add executable permissions to Cfssl:chmod +x cfssl_linux-amd64 cfssljson_linux-amd64 cfssl-certinfo_linux-amd64Then move the file to this location:MV Cfssl_linux-amd64/usr/local/bin/cfsslMV Cfssljson_linux-amd64/usr/local/bin/cfssljsonMV Cfssl-certinfo_linux-amd64/usr/local/bin/cfs
all applications are implemented by the container, the general container file is larger, so the subsequent use needs to consider preparing the local mirror in advance.Usually k8s itself monitoring and maintenance, can be done by deploying weave Scope.For the k8s application scenario, is very suitable for the application complex, the software application version
=system:node --group=system:nodesDistributing Kubelet binary filesansible k8s-node -m copy -a 'src=/usr/local/src/kubernetes/server/bin/kubelet dest=/usr/local/kubernetes/bin/kubelet mode=0755'Create a kubelet systemd unit fileCreate a working directorymkdir /var/lib/kubeletmkdir /var/log/kubernetes/kubelet -pansible k8s
CIDR block on 167 is 172.17.4.13/24.168 is 172.17.14.0/24, and the IP addresses of the docker containers created later are in the two network segments respectively.Then execute
Flanneld>/usr/local/kubernete_test/logs/flanneld. log 2> 1 Run the following command on each machine:
Mk-docker-opts.sh-ISource/run/flannel/subnet. envRm/var/run/docker. pidIfconfig docker0 $ {FLANNEL_SUBNET}Restart docker
Service docker restartIn this way, the network of con
0. Preface
Overall architecture directory: ASP. NET core distributed project-Directory
k8s Schema Catalog: Kubernetes (K8S) cluster deployment (K8S Enterprise Docker container cluster Management) series catalog
1. Deploy Master Components
The components of the master server are: Kube-apiserver, Kube-controller-manager, Kube-scheduler
So you need to download
-Manager: v8.6docker RMI unzip pull repository tag registry.cn-hangzhou.aliyuncs.com/anoy/storage-provisioner:v1.8.1 GCR. IO/k8s-minikube/storage-provisioner: v1.8.1docker RMI registry.cn-hangzhou.aliyuncs.com/anoy/storage-provisioner:v1.8.1Run the script: Sh auto_pull_images.sh After the script runs successfully, run the following command to confirm that the image is downloaded to the local device: [[Ema
trial steps: to make a mirror:
The following is the base image, which contains the spark and the official exemples, and the trial use of this article is the official exemple.
cd/path/to/spark-2.3.0-bin-hadoop2.7
Docker build-t
Users can put their own application and the base mirror together and set the path to start main class and application to implement the user application task submission. Task submission:
Bin/spark-submit \
--master k8s://
optional DNS service that creates DNS records for each service object so that all pods can access the service through DNS. The following is the schema topology diagram for k8s: Three centres of the two placesThe three centres include local production centres, local disaster preparedness centres and remote disaster preparedness centres.One of the important issu
Jenkins k8s dynamically increases/decreases jenkins-salve and creates and deploys a jenkins-master image,
In this tutorial, k8s is installed by default.1. Create a jenkins-master
1. Pull the jenkins Image
Docker pull jenkinsci/jenkins: lts
2. Run the jenkins Image
Docker run-tid-p 8080: 8080-name jenkins-master jenkinsci/jenkins: lts
3. Access jenkins 127.0.0.1: 8080
4. Get the jenkins initial key
Docker ex
following components are required to work together:Apiserver: When you create a service, Apiserver stores the data in the ETCD after receiving the request.The process is implemented in each node of the kube-proxy:k8s, which is responsible for implementing the service function, which is responsible for perceiving service,pod changes and writing the changed information to the local iptables.Iptables: Use NAT technology to transfer virtualip traffic to
The previous article has installed ETCD, Docker and flannel (k8s1.4.3 installation Practice record (1)), and now you can start installing k8s1, k8sCurrent kubernetes还是1.2.0,因此我们只能是使用下载的安装包,进行 installation of kubernetes on CentOS Yum[Email protected] system]#YumList |grepKubernetescockpit-kubernetes.x86_640.114-2. El7.centos Extras kubernetes.x86_641.2.0-0.13. GITEC7364B.EL7 Extras kubernetes-client.x86_641.2.0-0.13. GITEC7364B.EL7 Extras kubernetes-cni.x86_640.3.0.1-0. 07A8A2 Kubelet kubernetes-
:v8$ docker tag mirrorgooglecontainers/debian-iptables-amd64:v8 gcr.io/google_containers/debian-iptables-amd64:v8
Modify Build/lib/release.sh
Remove the--pull option from the Docker build command, or pull the mirror from GCR ...
index 3134e4d..e1881b4 100644--- a/build/lib/release.sh+++ b/build/lib/release.sh@@ -323,7 +323,7 @@ function kube::release::create_docker_images_for_server() { ln ${binary_dir}/${binary_name} ${docker_build_path}/${binary_name} printf " FROM ${base_image
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.