apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: web-live
namespace: malema-live
annotations:
# nginx.ingress.kubernetes.io/rewrite-target: /
nginx.ingress.kubernetes.io/configuration-snippet: |
more_set_headers "server: hide";
more_set_headers "X-Frame-Options: DENY";
spec:
ingressClassName: nginx
每一条写一行。