Kubernetes connects to external Ceph

Kubernetes connects to external Ceph kubernetes environment Ceph environment Method 1 (manually created) kubernetes node node configuration ceph Install ceph-common (note that the versions must be consistent) Copy the /etc/ceph/ file under the ceph cluster admin node to the kubernetes node. Ceph cluster creates pool pool and rbd Pod is mounted directly Prepare to test […]

Kubernetes cluster expansion

1. Please explain the basic concepts and principles of Kubernetes cluster expansion. Basic concepts and principles of Kubernetes cluster expansion: Kubernetes is an open source container orchestration platform used to automate the deployment, scaling and management of application containers. In Kubernetes, cluster expansion refers to increasing the computing resources (such as CPU, memory, etc.) in […]

kubernetes istio

Table of Contents 1. Deployment 2. Deploy sample applications 3. Deploy telemetry components 4. Traffic management 5. Melting Official website: https://istio.io/latest/zh/about/service-mesh/ 1. Deployment Prepare documents in advance tar zxf 15t10-1.19.3-linux-amd64.tar.gz cd 15t10-1.19.3/ export PATH=$PWD/bin:$PATH istioctl install –set profile=demo -y kubectl get pod -A Add a label to the namespace to instruct Istio to automatically inject […]

k8s[kubernetes] cluster construction (0>1)

Article Directory 1. Planning for building a K8S environment platform 2. Server hardware configuration requirements 3. Set up k8s cluster deployment method 4. Deployment in kubeadm mode – system initialization operation 5. Deployment in kubeadm mode – deploy master node 1Install Docker on all nodes 2Configure Alibaba Cloud Docker and kubernetes images on all nodes […]

kubernetes cluster orchestration – k8s scheduling

nodename vim nodename.yaml apiVersion: v1 Kind: Pod metadata: name: nginx labels: app: nginx spec: containers: – name: nginx image: nginx nodeName: k8s2 nodeName: k8s2 #If the node pod cannot be found, pending will appear, with the highest priority. kubectl apply -f nodename.yaml kubectl get pod -o wide Recycle kubectl delete -f nodename.yaml nodeselector vim nodeselector.yaml […]

Kubernetes Quality of Service – QoS

Author:rab Directory Preface 1. Pods whose QoS class is Guaranteed 1.1 Overview 1.2 Case 2. Pods whose QoS class is Burstable 2.1 Overview 2.2 Case 3. Pods whose QoS class is BestEffort 3.1 Overview 3.2 Case Summarize Foreword I mentioned Kubernetes’ admission control policy earlier, but have you ever thought about a question: If the […]

Kubernetes Affinity Anti-Affinity Taint Tolerance and Maintenance Eviction

Affinity Official website: https://kubernetes.io/zh/docs/concepts/scheduling-eviction/assign-pod-node/ (1) Node affinity pod.spec.nodeAffinity ●preferredDuringSchedulingIgnoredDuringExecution: soft strategy ●requiredDuringSchedulingIgnoredDuringExecution: hard strategy (2) Pod affinity pod.spec.affinity.podAffinity/podAntiAffinity ●preferredDuringSchedulingIgnoredDuringExecution: soft strategy ●requiredDuringSchedulingIgnoredDuringExecution: hard strategy Simple understanding: Suppose you are a traveler and you plan to travel to a strange city. You can think of yourself as a Pod, and different attractions in the city can […]

kubernetes cluster orchestration – k8s storage (volumes, persistent volumes, statefulset controller)

volumes emptyDir volume vim emptydir.yaml apiVersion: v1 Kind: Pod metadata: name: vol1 spec: containers: – image: busyboxplus name: vm1 command: [“sleep”, “300”] volumeMounts: – mountPath: /cache name: cache-volume – name: vm2 image: nginx volumeMounts: – mountPath: /usr/share/nginx/html name: cache-volume volumes: – name: cache-volume emptyDir: medium: Memory sizeLimit: 100Mi kubectl apply -f emptydir.yaml kubectl get pod […]

[kubernetes] pod life cycle

Article directory 1 Overview 2. pod life cycle 3. pod stage 4. Container status 5. Container restart strategy 6. pod status 6.1 Pod ready state 6.2 Pod ready status 6.3 Pod network ready 7. Container probe 7.1 Inspection mechanism 7.2 Detection results 7.3 Detection types 8. Termination of Pod 8.1 Forcefully terminate Pod 8.2 Pod […]

Istio implements canary deployment of Kubernetes cluster applications

Istio implements canary deployment of Kubernetes cluster applications Istio is an open source service mesh platform that provides a way to connect, protect, control, and observe microservices. As a service mesh, Istio provides network proxies between the different services of an application. These proxies are collectively called “sidecars.” These sidecars can control all communication to […]