Deployment of k8s components on the second master

Then in the first part, before deploying Kubernetes, make sure that etcd, flannel and docker work normally, otherwise, solve the problem first and then continue. Three main roles are deployed: Kube apiserver Kube Controller Manager Kube scheduler 1. Generate Certificate (on the master) 1 establish a directory to store certificates cat > ca- ...

Posted by Nexy on Fri, 18 Oct 2019 21:17:38 +0200

Using FastReport report report tool to generate Report PDF document

When we develop a system, customers always put forward some specific report requirements. The fixed report format meets their business processing needs and also fits their work scenarios. Therefore, we try to make reports that meet their actual needs, so our system will get a better sense of identity. This essay introduces how to generate Repor ...

Posted by pikebro2002 on Thu, 17 Oct 2019 05:42:28 +0200

An example in Go demonstrates the convenient processing and transformation of json's map and struct

Today, I'd like to talk a little bit about JSON data processing. In recent work, because we want to update the database data to elastic search in real time, we encounter some problems of JSON data processing in practice. real-time data The real-time data acquisition is realized by the open-source canal component of Alibaba, and transmitted to t ...

Posted by simjay on Wed, 16 Oct 2019 23:41:56 +0200

[SpringBoot] cross domain, filter and swaggerUI configuration

1. springboot WebAppConfig configuration /**  * Created with IntelliJ IDEA.  *  * @author: zhangenke @Date: 2018/8/16 on 2:25 p.m.  * @description: Let springBoot know that there is this interceptor  */ @Slf4j @Configuration public class WebAppConfig extends WebMvcConfigurationSupport {   // The fol ...

Posted by mrgrammar on Tue, 15 Oct 2019 21:45:23 +0200

Call ZABBIX-API to add a large number of monitoring hosts to liberate the hands of operation and maintenance monitoring

In the work, the number of servers in the company may be too large. When hundreds of monitored hosts need to be added at a time, the traditional simple web side of zabbix has a heavy workload of adding monitored hosts, which is also prone to errors. At this time, script automatic operation is particularly important. Today, we will talk about t ...

Posted by mydownfall on Tue, 15 Oct 2019 16:32:23 +0200

P4RUNTIME GRPC experiment

Read the test documents: PI/proto/demo_grpc/README.md Environmental configuration In this experiment, grpc server opened a web service on port 8888, while my experiment was run in a container on the server, so I couldn't use the browser. So add a port mapping to the container, mapping 18888 to 8888. #Stop our container docker stop p4-rt #Buildi ...

Posted by ramblix on Tue, 15 Oct 2019 16:25:51 +0200

Drag Data Loading by ReactHooks+ReactDnd

Drag to load API fields Implement automatic loading of API by dragging a background API to Form with the mouse, so the fields become forms.Drag component uses react-dnd plug-in, data interaction and page updating are implemented by Hooks.Hooks Official Documents https://react.docschina.org/docs/hooks-intro.htmlReactDnd official document http:// ...

Posted by jrtaylor on Tue, 15 Oct 2019 09:16:11 +0200

Using fastjson to deserialize MangoDB query results with numberLong as an example

The data recorded in mangodb is { "_id" : ObjectId("5d3ac7a9c7cf3e3da8343961"), "createTime" : NumberLong(1564133289504), "isPopup" : true, "level" : NumberInt(55), "type" : NumberInt(1), "uid" : NumberInt(8) } Query data using MongoTemplate Document document = new ...

Posted by rIkLuNd on Mon, 14 Oct 2019 19:37:30 +0200

Deep copy and shallow copy in js

In the interview, we often ask about the deep and shallow copies of js, and often let us write by hand. Now let's understand the deep and shallow copies of JS thoroughly. In js, when assigning a variable to another variable, the worth copy is actually a pointer. The pointer of two variables points to the same piece of push memory. When we chan ...

Posted by Bman900 on Mon, 14 Oct 2019 19:34:56 +0200

How to view all comments of a user's Netease Cloud

When you want to see a user's comments, but find that the settings are only visible to you and can't be seen by others, we can do this by writing a python program. If you need to check with me (w-x:fas1024), you can add me. Here is an example of development. We can see that these comments are made by referring tomusic.163.com/weapi/v1/resource/ ...

Posted by truck7758 on Sat, 12 Oct 2019 16:10:38 +0200