Category : kubernetes

Flannel is an open source CNI network plug-in of cereos. as shown in the figure below, Flannel’s website provides a schematic diagram of a data packet through encapsulation, transmission and unpacking. from this picture, it can be seen that the docker0 of the two machines are in different segments: 10.1.20.1/24 and 10.1.15.1/24 respectively. If the ..

Read more

download kube-solo-osx corectl.app Installation Setting up Kubernetes Solo Cluster on macOS Reading ssh key from /Users/xixicat/.ssh/id_rsa.pub /Users/xixicat/.ssh/id_rsa.pub found, updating configuration files … Set CoreOS Release Channel: 1) Alpha (may not always function properly) 2) Beta 3) Stable (recommended) Select an option: 3 Please type VM’s RAM size in GBs followed by [ENTER]: [default is 3]: ..

Read more

Install minikube curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.10.0/minikube-darwin-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/ Install kubectl curl -Lo kubectl http://storage.googleapis.com/kubernetes-release/release/v1.3.0/bin/darwin/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/ Start cluster minikube start kubectl get pods –all-namespaces kubectl get nodes eval $(minikube docker-env) Open dashboard minikube dashboard Close cluster minikube stop doc..

Read more

Install minikube curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.7.1/minikube-darwin-amd64 chmod +x minikube sudo mv minikube /usr/local/bin/ Start minikube minikube start minikube status Install kubectl curl -Lo kubectl http://storage.googleapis.com/kubernetes-release/release/v1.3.0/bin/darwin/amd64/kubectl chmod +x kubectl sudo mv kubectl /usr/local/bin/ examine kubectl get pods –all-namespaces eval $(minikube docker-env) doc Kubernetes in 30 minutes with minik..

Read more

Order Last time, although I wrote two kubernetes installed on mac, it was only limited to the initial installation. This time, I added a demo to catch up with Aliyun’s image, so I recorded it again. Install minikube curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.15.0/minikube-darwin-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/ Install kubectl curl -Lo ..

Read more

Download yaml Download heredeploy/kube-config/influxdb Modify yaml Replace mirror gcr.io/google_containers/heapster-grafana:v4.0.2 registry.cn-hangzhou.aliyuncs.com/kube_containers/heapster_grafana gcr.io/google_containers/heapster-influxdb:v1.1.1 registry.cn-hangzhou.aliyuncs.com/kube_containers/heapster_influxdb gcr.io/google_containers/heapster:v1.3.0-beta.0 registry.cn-hangzhou.aliyuncs.com/wayne/heapster:v1.1.0 Modify grafana-service.yamlAdd external ip and change port from 80 to 3000. Because 80 port conflicts with 80 port in heapster-service.yaml apiVersion: v1 kind: Service metadata: labels: # For use as a Cluster add-on (https://github.com/kubernetes/kubernetes/tree/master/cluster/addons) # If you are NOT using this ..

Read more

Look at the picture. Four types ClusterIP Use private IP within the cluster-this is the default. NodePort In addition to using cluster ip, the port of the service is also mapped to a specified internal port of each node, and the internal port of each node mapped is the same. LoadBalancer Use a ClusterIP & ..

Read more

Order Rolling update can make the service upgrade smoothly and almost seamlessly, that is, update the application without stopping the external service. The difference between replication controller and deployment replication controller Replication Controller is one of the core contents of Kubernetes. After the application is hosted in Kubernetes, it is necessary to ensure that the ..

Read more

kompose Kompose is a tool that can run docker-compose.yml in kubernetes, and can also convert docker-compose.yml into corresponding files in kubernetes, which is very convenient. Installation # macOS curl -L https://github.com/kubernetes-incubator/kompose/releases/download/v0.5.0/kompose-darwin-amd64 -o kompose chmod +x kompose sudo mv ./kompose /usr/local/bin/kompose Conversion Execute under the docker-compose.yml folder directory to be converted kompose convert be crowned with ..

Read more

dockerfile FROM rabbitmq:3.6.8 ENV RABBITMQ_USE_LONGNAME=true \ AUTOCLUSTER_LOG_LEVEL=debug \ AUTOCLUSTER_CLEANUP=true \ CLEANUP_INTERVAL=60 \ CLEANUP_WARN_ONLY=false \ AUTOCLUSTER_TYPE=k8s \ LANG=en_US.UTF-8 ADD plugins/*.ez /usr/lib/rabbitmq/lib/rabbitmq_server-3.6.8/plugins/ RUN rabbitmq-plugins enable –offline autocluster RUN rabbitmq-plugins enable –offline rabbitmq_management deployment apiVersion: extensions/v1beta1 kind: Deployment metadata: name: rabbitmq namespace: cat labels: app: rabbitmq spec: replicas: 3 template: metadata: labels: app: rabbitmq spec: containers: – name: ..

Read more