010.Kubernetes binary deployment kube-controller-manager
1. Deploy highly available kube-controller-manager
1.1 Introduction to highly available kube-controller-manager
In this experiment, a Three-instance cluster of kube-controller-manager is deployed. After starting, a leader node will be generated through the competitive election mechanism, and the other nodes will be blocked.When the leader nod ...
Posted by 00Sven on Sat, 16 Nov 2019 21:55:10 -0800
Docker packages nodejs project and database
To read this article, you must know the basic docker. This article only provides ideas and part of the code, not responsible for teaching
All orders must be handled carefully! look before you leap
command
Stop all running containers
docker stop $(docker ps -a -q)
Delete all containers
docker rm $(docker ps -a -q)
Using docker compose to start t ...
Posted by dreamwest on Sat, 16 Nov 2019 08:40:37 -0800
PHP Array usage
Catalog
What is array
array operator
basic operation
Create array
Traversing array
Create an array of type K=V
Delete
change
check
each( )
list( )
What is array
Array is one of the data structures, which is widely used in Web scenar ...
Posted by k994519 on Sat, 16 Nov 2019 07:54:31 -0800
009.Kubernetes binary deployment Kube apiserver
I. deploy the master node
1.1 master node service
The kubernetes master node runs the following components:
kube-apiserver
kube-scheduler
kube-controller-manager
kube-nginx
Kube apiserver, Kube scheduler and Kube controller manager all run in multi instance mode:
Kube scheduler and Kube controller manager will automatically elect ...
Posted by persepha on Sat, 16 Nov 2019 05:45:28 -0800
String data type of Python full stack path series
String (str)
String type is the sequence type of python. Its essence is character sequence. Besides, the string type of python can't be changed. You can't modify the original string, but you can copy part of the string into a new string to achieve the same modification effect.
To create a string type, you can use single quotation mark, double q ...
Posted by chaoswuz on Sat, 16 Nov 2019 04:54:29 -0800
Configure Nginx web page optimization in Linux system
Configure Nginx hidden version number
In the production environment, the version number of Nginx needs to be hidden to avoid the leakage of security vulnerabilities
View method
Use fiddler tool to view Nginx version number in Windows client
Use "curl-i web address" command to view in CentOS system
The method of hiding version ...
Posted by ilovetoast on Fri, 15 Nov 2019 13:34:29 -0800
Nginx service optimization hidden version number
Configure Nginx hidden version number
In the production environment, the version number of Nginx needs to be hidden to avoid the leakage of security vulnerabilities
View method
Use fiddler tool to view Nginx version number in Windows client
Use "curl-i web address" command to view in CentOS system
The method of hiding version num ...
Posted by mrodrigues on Fri, 15 Nov 2019 11:51:53 -0800
Nginx Optimization Practice (process management, anti-theft chain)
Nginx process management instance:
[root@nginx nginx-1.12.2]# cd /usr/local/nginx/
[root@nginx nginx]# ls
client_body_temp fastcgi_temp logs sbin uwsgi_temp
conf html proxy_temp scgi_temp
[root@nginx nginx]# cd conf/
[root@nginx conf]# vim nginx.conf
//Set timeout
keepalive_timeout 65 180;
client_header_t ...
Posted by newcastle_unite on Fri, 15 Nov 2019 11:09:18 -0800
005.Kubernetes binary deployment kubectl
I. deployment of kubectl
1.1 installation of kubectl
1 [root@k8smaster01 ~]# cd /opt/k8s/work
2 [root@k8smaster01 work]# wget https://dl.k8s.io/v1.14.2/kubernetes-client-linux-amd64.tar.gz
3 [root@k8smaster01 work]# tar -zxvf kubernetes-client-linux-amd64.tar.gz
1.2 distribution of kubectl
1 [root@k8smaster01 ~]# cd /opt/k8s/work
...
Posted by malcome_thompson on Fri, 15 Nov 2019 11:05:10 -0800
Saltstack? Use guide 08? Remote execution - return procedure
1. Host planning
salt version
1 [root@salt100 ~]# salt --version
2 salt 2018.3.3 (Oxygen)
3 [root@salt100 ~]# salt-minion --version
4 salt-minion 2018.3.3 (Oxygen)
Returners document
https://docs.saltstack.com/en/latest/ref/returners/index.html
Returner Modules documentation
https://docs.saltstack.com/en/latest/ref ...
Posted by KrisCons on Fri, 15 Nov 2019 10:49:19 -0800