Chapter V Kubernetes quick start
Necessary tools for installationInstall package manager and cURLmacOS install homebrew/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"View version and help after installationbrew --version #Check the current version of homebrew and whether it has been successfully installed
brew --help ...
Posted by edmore on Sun, 23 Jan 2022 03:31:32 +0100
k8s local cluster construction (v1.21.2)
k8s preliminary preparation
I mainly use it here docker-case Building local k8s(v1.21.2) clusters
Software preparation
vagrant 2.2.16 Cross platform virtualization toolsvirtualbox Open source free virtual machinek8s version v1.21.2
vagrant environment description
You need to use the root user to start the installation, otherwise you will e ...
Posted by Spogliani on Sat, 22 Jan 2022 22:03:49 +0100
kubernetes-kubectl operation example
1. Create resource objects
Create a Service and RC at once from a YAML configuration file:
kubectl create -f my-service.yaml -f my-rc.yaml
According to all under the directory. yaml,. yml,. The definition of the json file is created:
kubectl create -f <directory>
2. View Resource Objects
View all Pod lists:
kubectl get pods
...
Posted by khayll on Sat, 22 Jan 2022 06:27:48 +0100
k8s core concept progress
1. What is progress
Generally, the IP addresses of service and pod can only be accessed within the cluster. Requests outside the cluster need to be forwarded to the NodePort exposed by the service on the Node through load balancing, and then forwarded to the relevant pod by Kube proxy.
Ingress is a collection of routing rules for requests enter ...
Posted by rushdot on Thu, 20 Jan 2022 10:47:43 +0100
Host GW model analysis of flannel in Kubernetes network
1. Flannel's host GW mode
Flannel's host GW mode is a pure three-layer network interworking scheme, and the mutual access between pods is realized by routing. In the host GW mode, the cross node network communication needs to be realized through the routing table on the node, so the host hosts of both sides of the communication must be able to ...
Posted by mchip on Thu, 20 Jan 2022 10:36:51 +0100
Kubernetes -- detailed explanation of Pod -- configuration method of Pod
Pod introduction
The smallest operating unit in K8s is Pod, and the container must be placed in the Pod before it can operate. The containers in Pod in K8s are divided into two types:
User defined containerPause container. This is a container that every Pod will have
Setting up the Pause container has the following two benefits:
When a gr ...
Posted by Ark3typ3 on Thu, 20 Jan 2022 03:27:14 +0100
Use k8s to build a wordpress version of https without pits
I didn't expect that it took so long to use k8s to build https version of wordpress, and I also caught up with my friend Mr. slash. Since it's so troublesome, let's record it. Welcome to reprint, please indicate the source, thank you. As for why our website has hidden the server version, but this article generously gives the actual version. Th ...
Posted by venom999 on Wed, 19 Jan 2022 20:04:44 +0100
How to gracefully pull private images from Harbor?
Previously, I shared the Harbor series articles in my column Harbor dictionary.
In this issue, we will continue to share how to pull private images in Harbor in k8s's container.
We can pull public images in Harbor at will, but some private images cannot be pulled directly. We can use the Secret resource object to pull private images. The foll ...
Posted by nonaguy on Tue, 18 Jan 2022 08:20:35 +0100
Kubernetes deploys third-party dashboard kuboard
summary
compatibility: https://kuboard.cn/install/v3/install.html#kuboard-v3-x-version description
Official website address: https://kuboard.cn/
Feature introduction
Multiple authentication methods
Kuboard can use the built-in user library, gitlab / github single sign on or LDAP user library for authentication to avoid the trouble caused by th ...
Posted by bdee1 on Mon, 17 Jan 2022 22:28:00 +0100
Write a Gin application running on the Kubernetes cluster from scratch
Experimental premise
You need to have a macOS development environment. This article takes this as an example. Please build other types of development environments by yourself.You need to know something about YAML, a language specially used to write configuration files.You need to have some basic knowledge of Docker.You need to understand some ...
Posted by nileshkulkarni on Sun, 16 Jan 2022 20:02:52 +0100