mirror of
https://github.com/NVIDIA/OpenShell.git
synced 2026-10-22 06:19:47 +08:00
22 lines
812 B
YAML
22 lines
812 B
YAML
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
{{- if and .Values.grpcRoute.enabled .Values.grpcRoute.gateway.create }}
|
|
apiVersion: gateway.networking.k8s.io/v1
|
|
kind: Gateway
|
|
metadata:
|
|
name: {{ default (include "openshell.fullname" .) .Values.grpcRoute.gateway.name }}
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
{{- include "openshell.labels" . | nindent 4 }}
|
|
spec:
|
|
gatewayClassName: {{ .Values.grpcRoute.gateway.className }}
|
|
listeners:
|
|
- name: http
|
|
port: {{ .Values.grpcRoute.gateway.listener.port }}
|
|
protocol: {{ .Values.grpcRoute.gateway.listener.protocol }}
|
|
allowedRoutes:
|
|
namespaces:
|
|
from: {{ .Values.grpcRoute.gateway.listener.allowedRoutes }}
|
|
{{- end }}
|