594 B
594 B
kind: Ingress
apiVersion: networking.k8s.io/v1
metadata:
name: test-ing
namespace: test
creationTimestamp: null
labels:
app: test-ing
annotations:
nginx.ingress.kubernetes.io/affinity: cookie ## 会话保持配置
spec:
ingressClassName: nginx
tls:
- hosts:
- test.test.com
secretName: test-tls
rules:
- host: test.test.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: test-server-svc
port:
number: 8080