Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{{ if and (.Capabilities.APIVersions.Has "gateway.networking.k8s.io/v1") (eq .Values.PAAS_PLATFORM "KUBERNETES") -}}
{{ if and .Values.powaUI.install .Values.tls.enabled }}
apiVersion: gateway.networking.k8s.io/v1
kind: BackendTLSPolicy
metadata:
name: powa-ui-backend-tls-policy
spec:
targetRefs:
- group: ""
kind: Service
name: powa-ui
validation:
hostname: {{ .Values.powaUI.ingress.host | quote }}
caCertificateRefs:
- kind: Secret
name: {{ include "postgres.certServicesSecret" . }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{{- if and (.Capabilities.APIVersions.Has "gateway.networking.k8s.io/v1") (eq .Values.PAAS_PLATFORM "KUBERNETES") -}}
{{ if .Values.powaUI.install }}
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: powa-ui-httproute
spec:
parentRefs:
- name: {{ .Values.powaUI.ingress.gatewayName | default "default-external-gateway" }}
namespace: {{ .Values.powaUI.ingress.envoyNamespace | default "envoy-gateway" }} # Note that this "main" route targets port 443 (HTTPS) specifically
port: 443
hostnames: [{{ .Values.powaUI.ingress.host | quote }}]
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: powa-ui
port: 8080
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{{- if and (.Capabilities.APIVersions.Has "gateway.networking.k8s.io/v1") (eq .Values.PAAS_PLATFORM "KUBERNETES") -}}
{{ if and .Values.powaUI.install .Values.tls.enabled }}
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: powa-ui-frontend-redirect
spec:
parentRefs:
- name: {{ .Values.powaUI.ingress.gatewayName | default "default-external-gateway" }}
namespace: {{ .Values.powaUI.ingress.envoyNamespace | default "envoy-gateway" }}
port: 80
hostnames: [{{ .Values.powaUI.ingress.host | quote }}]
rules:
- filters:
- type: RequestRedirect
requestRedirect:
scheme: https
statusCode: 301
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ metadata:
nginx.ingress.kubernetes.io/proxy-ssl-name: '{{ printf "powa-ui.%s" .Release.Namespace }}'
nginx.ingress.kubernetes.io/proxy-ssl-secret: '{{ printf "%s/%s" .Release.Namespace (include "postgres.certServicesSecret" .) }}'
{{- end }}
gateway-api-converter.netcracker.com/ignore: "true"
name: powa-ui-ingress
spec:
{{- if .Values.tls.enabled }}
Expand Down
Loading