wujian_develop_tool/template/api/deploy/templates/ingress.yaml

24 lines
666 B
YAML

{{ if and .Values.host .Values.path }}
kind: Ingress
apiVersion: networking.k8s.io/v1
metadata:
name: {{ .Release.Name }}
namespace: {{ .Values.nameSpace }}
annotations:
kubesphere.io/creator: drone
nginx.ingress.kubernetes.io/enable-cors: 'true'
nginx.ingress.kubernetes.io/rewrite-target: /$1
nginx.ingress.kubernetes.io/use-regex: 'true'
spec:
rules:
- host: {{ .Values.host }}
http:
paths:
- path: {{ .Values.path }}
pathType: ImplementationSpecific
backend:
service:
name: {{ .Release.Name }}
port:
number: 80
{{ end }}