1、配置模块 nginx的配置(conf/nginx.conf)主要有:全局参数、events、http这三大块组成。 系统配置:server,可以配置多个server 转发规则:location路径、root目录、index欢迎页面 反向代理规则:location拦截路径、proxy_pass转向地址、index 2、Nginx常用优化 user root; #对应系
apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: example-ingress annotations: nginx.ingress.kubernetes.io/configuration-snippet: | location /test { proxy_pass http://backend-service; } spec: rules: - host: example.com http: paths: - path: / pathType: Prefix backend: service...