Customize endpoint to implement internal pod access to external applications In addition to exposing the pod’s IP and port, endpoint can also proxy to external IP and port. scenes to be used The company’s business has not yet been moved to the cloud. Some of it is cloud-native and some of it is physical. During […]
Tag: endpoint
websocket authentication @ServerEndpoint method
import org.springframework.stereotype.Component; import javax.servlet.*; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; @Component public class SimpleCORSFilter implements Filter {<!– –> @Override public void init(FilterConfig filterConfig) throws ServletException {<!– –> } @Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {<!– –> HttpServletRequest req= (HttpServletRequest) request; req.getSession().setAttribute(“ipAddr”,req.getRemoteHost()); HttpServletResponse res = (HttpServletResponse)response; res.setHeader(“Access-Control-Allow-Origin”, “*”); res.setHeader(“Access-Control-Allow-Methods”, “POST, […]
01-10 Tuesday PyCharm remote Linux server configuration for endpoint debugging
01-10 Tuesday PyCharm remote Linux server configuration Time Version Modifier Description January 10, 2023 14:04:15 V0.1 Song Quanheng New document February 6, 2023 11:03:45 V0.2 Song Quanheng Add shortcut command The implementation of aliases facilitates switching of virtual environments Introduction Using PyCharm, you can debug your application using an interpreter located on another computer (server). […]
Resolved Error response from daemon: driver failed programming external connectivity on endpoint
Blogger Maotouhu () takes you to Go to New World? Maotouhu recommends a list of necessary technology stacks for programmers: Cloud native technology Cloud Native: Golang Docker Kubernetes ? Helm Serverless ?AWS Lambda Google Cloud Functions Microservices Envoy Istio Prometheus Blog homepage: Maotouhu’s blog “Complete Column of Interview Questions” Articles with pictures and texts Vivid […]
The relationship and implementation principle of Endpoint, HasFeatures, NamedFeature and Actuator in Spring
Article directory 1. Reason for relationship 2. Introduction and simple use of Actuator 3. The relationship between Endpoint and Actuator 4. The relationship between Endpoint and HasFeatures 5. Analysis of Endpoint and HasFeatures principles 5.1 Implementation principle of Endpoint 5.2 Implementation principle of HasFeatures 6. Personal chat 1. Reason for relationship We can often see […]
[AWS] Practical Operation-Securing Amazon S3 VPC Endpoint Communication
Article directory Experiment overview Target lab environment Task 1: Explore and launch the experimental environment Task 1.1: Explore Amazon VPC resources Task 1.2: Explore Amazon EC2 resources Task 1.3: Create an Amazon VPC endpoint Task 1.4: Connect a private EC2 instance Task 1.5: Explore Amazon S3 resources Task 2: Interact with Amazon S3 through an […]
[etcd] Solve the problem of “Auto sync endpoints failed.” when go-zero registers etcd
go: v1.20.3 go-zero: v1.5.4 etcd: v3.5.9 Description of the problem In go-zero, etcd is used to realize service registration and discovery. RPC services can be registered to etcd, and other services can discover registered microservices and can also access them. However, the log of the registered rpc service keeps reporting the following error. The log […]
Use of WebSocketServer (@ServerEndpoint)
Front-end code function initWebSocket() {<!– –> if (typeof WebSocket == “undefined”) {<!– –> console.log(“Your browser does not support WebSocket”); } else {<!– –> console.log(“Your browser supports WebSocket”); //Implement the WebSocket object, specify the address and port of the server to connect to establish a connection //Equivalent to socket = new WebSocket(“ws://localhost:8083/checkcentersys/websocket/20”); var wsPathStr = wsPath […]
Given the endpoints of the triangle and the radius of the center of the circle, find the area of intersection
The title is probably the three-point coordinates (ax, ay), (bx, by), (cx, cy) of the triangle and the radius r of the circle center (ox, oy), find the intersection area of the triangle and the circle This question can obviously obtain a certain area, but there are many special situations to consider. It is not […]
Use k8s api to get service endpoint information
Order This article mainly studies how to use k8s api to obtain service endpoint information mac m2 install k8s Install multipass Visit https://multipass.run/install, download and install Create instance multipass launch –name primary –cpus 2 –disk 20G –memory 4G Install microk8s sudo snap install microk8s –classic sudo usermod -a -G microk8s $USER sudo chown -f -R […]