Logging and monitoring of Kubernetes
1, Logging and monitoring
1.1,Log
1.1.1 container level
View the container level logs through the docker command
docker ps --->containerid docker logs containerid --->View the log of the container
kubectl command view
kubectl logs -f <pod-name> -c <container-name>
1.1.2 Pod level
Of course, kubectl describe can view not o ...
Posted by Tiger99 on Tue, 01 Feb 2022 19:38:03 +0100
kubernetes installation and configuration
1, System requirements
software and hardwareMinimum configurationRecommended configurationcpu and memoryMaster: at least 2 cores and 4GB memoryNode: at least 4 cores and 16GB memoryMaster: 4 cores and 16GB memoryNode: it should be configured according to the number of containers to runDockerVersion 1.9 or aboveVersion 1.12etcdVersion 2.0 or ab ...
Posted by SmoshySmosh on Tue, 01 Feb 2022 15:56:25 +0100
Common deployment schemes of Kubernetes (XIV)
Python wechat ordering applet course video
https://edu.csdn.net/course/detail/36074
Python actual combat quantitative transaction financial management system
https://edu.csdn.net/course/detail/35475
1, Common deployment schemes
Rolling update
The service will not stop, but the old and new will coexist in the whole pod. Recreate
...
Posted by someone2088 on Sun, 30 Jan 2022 09:20:32 +0100
Common deployment schemes of Kubernetes (XIV)
1, Common deployment schemes
Rolling update
The service will not stop, but the old and new will coexist in the whole pod.
Recreate
Stop the old pod first, and then create a new one. The service will be interrupted in this process.
Blue green (no shutdown, low risk)
The application deploying v1 (the initial state) calls ...
Posted by Boozi on Sun, 30 Jan 2022 05:02:50 +0100
Podman Introduction, Installation, Basic Operations
Introduction to Podman
What is Podman?
podman is a container engine for daemon-less based Linux systems. Containers that can be used to develop, manage and run OCI standards. podman can run in root or non-root user mode.
Podman was launched by Red Hat in 2018 with open source code.
Official website https://podman.io/
OCI https://opencont ...
Posted by javamint on Fri, 28 Jan 2022 05:53:27 +0100
Resource management and scheduling in Kubernetes
Background:
I wonder if there are any small partners like me who have not calculated their resource ratio in detail when creating applications in the cluster. Then I saw kubectl top node. When I saw that there were still many resources on each node, I directly created several applications with high resource allocation, and these applications w ...
Posted by mustatin on Thu, 27 Jan 2022 04:43:49 +0100
Persistent storage of Kubernetes' stories
1, Storage
1.1,Volume
Official website: https://kubernetes.io/docs/concepts/storage/volumes/
Through the description on the official website, I can roughly summarize the understanding of this volume in docker, that is, I can name a variable only through a volume technology, and then bind the path of the physical host and the virtual path th ...
Posted by patheticsam on Thu, 27 Jan 2022 03:00:00 +0100
Install monitoring prometheus
23. Monitoring prometheus
Official documents: https://prometheus.io/docs https://github.com/coreos/prometheus-operator https://www.qikqiak.com/k8strain/monitor/prometheus/
I brief introduction
1. Component architecture
Prometheus Server
The core component of the service pulls and stores monitoring data from the Exporter through pull metr ...
Posted by tnewton on Tue, 25 Jan 2022 03:08:34 +0100
Docker--Docker k8s--Kubernetes storage -- kubernetes monitoring -- kubernetes resource monitoring
catalogue
1. Metrics-Server
1.0 preliminary preparation
1.1 metrics server deployment
1.2. There are still many pits to fill after deployment
2. Dashboard deployment (visualization)
2.1 pulling image
2.2 configuration
2.3. Test: log in to Firefox browser and enter https://172.25.13.101 , access succeeded, but token authorization is re ...
Posted by Barkord on Mon, 24 Jan 2022 23:30:33 +0100
The simplest method of k8s is to deploy the image from the local cluster (4. Deploy the springboot project for k8s)
prepare
First, prepare the simplest demo and a rest interface. Our goal is to deploy this demo to the k8s cluster and access it. The port exposed here is 8080
Run the jar package locally
Local access
Image packaging
First upload the jar package to a folder on the master Write Dockerfile #create a file
vim Dockerfile
##conte ...
Posted by EXiT on Mon, 24 Jan 2022 20:13:40 +0100