Skip to content
Open
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
14 changes: 14 additions & 0 deletions config/charts/inferencepool/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,17 @@ Selector labels
{{- define "gateway-api-inference-extension.selectorLabels" -}}
inferencepool: {{ include "gateway-api-inference-extension.name" . }}
{{- end -}}

{{/*
Envoy Common labels
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are those really envoy specific? if not, we can call them something like sidecar-proxy?

*/}}
{{- define "gateway-api-inference-extension.envoy-labels" -}}
app.kubernetes.io/name: {{ include "gateway-api-inference-extension.name" . }}-envoy
{{- end }}

{{/*
Envoy Selector labels
*/}}
{{- define "gateway-api-inference-extension.envoy-selectorLabels" -}}
envoy: {{ include "gateway-api-inference-extension.name" . }}-envoy
{{- end }}
19 changes: 19 additions & 0 deletions config/charts/inferencepool/templates/envoy-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{{- if .Values.provider.standalone }}
---
apiVersion: v1
kind: Service
metadata:
name: {{ include "gateway-api-inference-extension.name" . }}-envoy
namespace: {{ .Release.Namespace }}
labels:
{{- include "gateway-api-inference-extension.envoy-labels" . | nindent 4 }}
spec:
selector:
{{- include "gateway-api-inference-extension.envoy-selectorLabels" . | nindent 4 }}
ports:
- name: http
port: {{ .Values.provider.standalone.envoy.servicePort | default 8081 }}
protocol: TCP
targetPort: {{ .Values.provider.standalone.envoy.servicePort | default 8081 }}
type: ClusterIP
{{- end }}
3 changes: 3 additions & 0 deletions config/charts/inferencepool/templates/epp-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{{- if ne (lower .Values.provider.name) "standalone" }}
---
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -151,3 +153,4 @@ spec:
tolerations:
{{- toYaml .Values.inferenceExtension.tolerations | nindent 8 }}
{{- end }}
{{- end }}
Loading