Kubernetes deployment: Flannel network deployment
Flannel needs to be deployed in all the master and node s1. Generate certificate for Flannel
[root@node-01 ssl]# vim flanneld-csr.json
{
"CN": "flanneld",
"hosts": [],
"key": {
"algo": "rsa",
"size": 2048
},
"names": [
{
"C": "CN",
"ST": "BeiJing",
"L": "BeiJing",
"O": "k8s",
"OU": "System"
...
Added by Trek15 on Tue, 10 Dec 2019 09:45:41 +0200
kubernetes command summary Set
kubernetes command summary Set
Turn off virtual memory
swapoff -a
vim /etc/fstabl
#/dev/mapper/centos-swap swap
View docker environment variables
systemctl show --property=Environment docker
Set agent cancel agent
export http_proxy="http://127.0.0.1:8123/"
unset http_proxy
View token
kubeadm token list
Get token command in SA
kubectl ...
Added by bobc on Sat, 07 Dec 2019 13:28:49 +0200
Spring Boot integration docker
I. what is docker?
brief introduction
Docker is an open source engine, which can easily create a lightweight, portable, self-sufficient container for any application. The containers that developers compile and test on laptops can be deployed in production environment in batches, including VMs (virtual machine), bare metal, OpenStack cluster and ...
Added by ClyssaN on Thu, 05 Dec 2019 11:10:18 +0200
Docker creates Mysql container
1. Start docker service
[root@docker ~]# systemctl start docker
2. View the image in docker
[root@docker ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
centos/mysql-57-centos7 latest 2e4ddfafaa6f 6 months ago 445MB
gogs/gogs ...
Added by AceOfJames on Wed, 04 Dec 2019 22:48:48 +0200
filebeat log collection
#(1) Download filebeathttps://artifacts.elastic.co/downloads/beats/filebeat/filebeat-5.4.0-linux-x86_64.tar.gz
#(2) build filebeat image
1) prepare the dockerfile file
# cat dockerfile
FROM docker.io/centos
WORKDIR /usr/local
COPY filebeat-5.4.0-linux-x86_64.tar.gz /usr/local
RUN cd /usr/local && \
tar xvf filebeat-5.4.0-linu ...
Added by simcoweb on Mon, 02 Dec 2019 07:22:28 +0200
docker info command request process of docker v18.09.4-rc1 series source code interpretation
Previous process diagram
It's only for you to sort out and understand the latest code process. Some details will not be dug in1. Enter the client to receive the code block, and the runInfo method returns the contentgithub.com/docker/cli/cli/command/system/info.go
// NewInfoCommand creates a new cobra.Command for `docker info`
func NewInfoComm ...
Added by plazz2000 on Sun, 01 Dec 2019 08:53:02 +0200
Enterprise spring boot tutorial springboot integration docker
This article introduces how to build a docker image for the springboot program. Docker is an open source application container engine based on Go language and Apache 2.0 protocol. Docker allows developers to package their applications and dependencies into a lightweight, portable container, and then publish them to any popular L ...
Added by Jimmy_uk on Sat, 30 Nov 2019 12:59:13 +0200
docker manually configure the network
Create a container without network configuration
[root@localhost ~]# docker run -i -t --rm --net=none alpine sh
/ #
Open another terminalView container id
[root@localhost ~]# docker ps -a
Find process id
[root@localhost ~]# docker inspect -f '{{.State.Pid}}' 2aefc41dbdeb
9076
[root@localhost ~]# pid=9076
Create namespace
[root@localhost ~] ...
Added by windyweather on Fri, 29 Nov 2019 21:48:49 +0200
Build Docker Container Actual Warfare
Bowen structureBuilding a Nginx containerBuilding Tomcat ContainersBuilding Mysql Container
Understanding Docker containers can be accomplished by Installation and simple operation To understand.
1. Building Nginx containers
Nginx is a lightweight WEB server as well as an excellent reverse proxy server. Nginx service takes up less memory and ...
Added by Delaran on Fri, 29 Nov 2019 21:21:14 +0200
Learning notes of kubernetes authoritative guide -- a small example of mysql
mysql small example
Create a mysql-rc.yaml file
apiVersion: v1
kind: ReplicationController # Replica controller RC
metadata:
name: mysql # Name of RC, globally unique
spec:
replicas: 1 # Expected number of copies
selector:
app: mysql # Pod that matches the target has this label
template: # Create a copy (instance) of Pod a ...
Added by |Adam| on Fri, 29 Nov 2019 16:27:09 +0200