Skip to content

Commit

Permalink
Add Helm parameterisation for scheduler and Envoy service types (#520)
Browse files Browse the repository at this point in the history
* Remove trailing whitespace from SCv2 component Helm chart values

* Add Kustomize patch for Envoy service type in components Helm chart

* Add default Helm value for Envoy service type

* Add Kustomize patch for scheduler service type in components Helm chart

* Add default Helm value for scheduler service type
  • Loading branch information
agrski authored Oct 19, 2022
1 parent 542c7ce commit c16f09b
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ spec:
targetPort: envoy-admin
selector:
app: seldon-envoy
type: LoadBalancer
type: '{{ .Values.envoy.service.type }}'
---
apiVersion: v1
kind: Service
Expand Down Expand Up @@ -523,7 +523,7 @@ spec:
targetPort: dataflow
selector:
control-plane: seldon-scheduler
type: LoadBalancer
type: '{{ .Values.scheduler.service.type }}'
---
apiVersion: apps/v1
kind: Deployment
Expand Down
8 changes: 6 additions & 2 deletions k8s/helm-charts/seldon-core-v2-setup/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ security:
crtPath: /tmp/certs/ddc/tls.crt
caPath: /tmp/certs/ddc/ca.crt
serverCaPath: /tmp/certs/dds/ca.crt

opentelemetry:
endpoint: seldon-collector:4317
enable: true
Expand Down Expand Up @@ -146,14 +146,18 @@ envoy:
registry: docker.io
repository: seldonio/seldon-envoy
tag: latest
service:
type: LoadBalancer

scheduler:
image:
pullPolicy: IfNotPresent
registry: docker.io
repository: seldonio/seldon-scheduler
tag: latest

service:
type: LoadBalancer

serverConfig:
rclone:
image:
Expand Down
8 changes: 6 additions & 2 deletions k8s/helm-charts/seldon-core-v2-setup/values.yaml.template
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ security:
crtPath: /tmp/certs/ddc/tls.crt
caPath: /tmp/certs/ddc/ca.crt
serverCaPath: /tmp/certs/dds/ca.crt

opentelemetry:
endpoint: seldon-collector:4317
enable: true
Expand Down Expand Up @@ -146,14 +146,18 @@ envoy:
registry: docker.io
repository: seldonio/seldon-envoy
tag: #TAG_VERSION_PLACEHOLDER#
service:
type: LoadBalancer

scheduler:
image:
pullPolicy: IfNotPresent
registry: docker.io
repository: seldonio/seldon-scheduler
tag: #TAG_VERSION_PLACEHOLDER#

service:
type: LoadBalancer

serverConfig:
rclone:
image:
Expand Down
7 changes: 7 additions & 0 deletions k8s/kustomize/helm-components/patch_envoy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,10 @@ spec:
name: '{{ .Values.security.controlplane.ssl.client.serverValidationSecret }}'
key: ca.crt
optional: true
---
apiVersion: v1
kind: Service
metadata:
name: seldon-mesh
spec:
type: '{{ .Values.envoy.service.type }}'
7 changes: 7 additions & 0 deletions k8s/kustomize/helm-components/patch_scheduler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,10 @@ spec:
value: '{{ .Values.security.envoy.ssl.downstream.server.caPath }}'
- name: ENVOY_DOWNSTREAM_CLIENT_TLS_CA_LOCATION
value: '{{ .Values.security.envoy.ssl.downstream.server.clientCaPath }}'
---
apiVersion: v1
kind: Service
metadata:
name: scheduler
spec:
type: '{{ .Values.scheduler.service.type }}'

0 comments on commit c16f09b

Please sign in to comment.