Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow user to specify custom secrets to be mounted on Feast Serving and Feast Core pods #1127

Merged
merged 1 commit into from
Nov 3, 2020
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
2 changes: 1 addition & 1 deletion infra/charts/feast/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ https://docs.feast.dev/v/master/getting-started/deploying-feast/kubernetes
| | feast-jupyter | 0.8-SNAPSHOT |
| | feast-serving | 0.8-SNAPSHOT |
| | prometheus-statsd-exporter | 0.1.2 |
| https://kubernetes-charts-incubator.storage.googleapis.com/ | kafka | 0.20.8 |
| https://charts.bitnami.com/bitnami/ | kafka | 11.8.8 |
| https://kubernetes-charts.storage.googleapis.com/ | grafana | 5.0.5 |
| https://kubernetes-charts.storage.googleapis.com/ | postgresql | 8.6.1 |
| https://kubernetes-charts.storage.googleapis.com/ | prometheus | 11.0.2 |
Expand Down
1 change: 1 addition & 0 deletions infra/charts/feast/charts/feast-core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ Current chart version is `0.8-SNAPSHOT`
| readinessProbe.timeoutSeconds | int | `10` | When the probe times out |
| replicaCount | int | `1` | Number of pods that will be created |
| resources | object | `{}` | CPU/memory [resource requests/limit](https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#resource-requests-and-limits-of-pod-and-container) |
| secrets | list | `[]` | List of Kubernetes secrets to be mounted on Feast Core pods. These secrets will be mounted on /etc/secrets/<secret name>. |
| service.grpc.nodePort | string | `nil` | Port number that each cluster node will listen to |
| service.grpc.port | int | `6565` | Service port for GRPC requests |
| service.grpc.targetPort | int | `6565` | Container port serving GRPC requests |
Expand Down
10 changes: 10 additions & 0 deletions infra/charts/feast/charts/feast-core/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ spec:
- name: {{ template "feast-core.fullname" . }}-secret
secret:
secretName: {{ template "feast-core.fullname" . }}
{{- range $secret := .Values.secrets }}
- name: {{ $secret }}
secret:
secretName: {{ $secret }}
{{- end }}

containers:
- name: {{ .Chart.Name }}
Expand All @@ -58,6 +63,11 @@ spec:
- name: {{ template "feast-core.fullname" . }}-secret
mountPath: /etc/secrets/feast
readOnly: true
{{- range $secret := .Values.secrets }}
- name: {{ $secret }}
mountPath: "/etc/secrets/{{ $secret }}"
readOnly: true
{{- end }}

env:
- name: LOG_TYPE
Expand Down
3 changes: 3 additions & 0 deletions infra/charts/feast/charts/feast-core/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,5 +140,8 @@ nodeSelector: {}
# envOverrides -- Extra environment variables to set
envOverrides: {}

# secrets -- List of Kubernetes secrets to be mounted on Feast Core pods. These secrets will be mounted on /etc/secrets/<secret name>.
secrets: []

# podLabels -- Labels to be added to Feast Core pods
podLabels: {}
2 changes: 1 addition & 1 deletion infra/charts/feast/charts/feast-jobservice/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v1
description: Feast Job Coontroller manage ingestion jobs.
description: Feast Job Service manage ingestion jobs.
name: feast-jobservice
version: 0.8-SNAPSHOT
6 changes: 3 additions & 3 deletions infra/charts/feast/charts/feast-jobservice/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
feast-jobservice
==========
================
Feast Job Service manage ingestion jobs.

Current chart version is `0.8-SNAPSHOT`
Expand Down Expand Up @@ -37,15 +37,15 @@ Current chart version is `0.8-SNAPSHOT`
| ingress.http.https.enabled | bool | `true` | Flag to enable HTTPS |
| ingress.http.https.secretNames | object | `{}` | Map of hostname to TLS secret name |
| ingress.http.whitelist | string | `""` | Allowed client IP source ranges |
| livenessProbe.enabled | bool | `false` | Flag to enabled the probe |
| livenessProbe.enabled | bool | `true` | Flag to enabled the probe |
| livenessProbe.failureThreshold | int | `5` | Min consecutive failures for the probe to be considered failed |
| livenessProbe.initialDelaySeconds | int | `60` | Delay before the probe is initiated |
| livenessProbe.periodSeconds | int | `10` | How often to perform the probe |
| livenessProbe.successThreshold | int | `1` | Min consecutive success for the probe to be considered successful |
| livenessProbe.timeoutSeconds | int | `5` | When the probe times out |
| nodeSelector | object | `{}` | Node labels for pod assignment |
| podLabels | object | `{}` | Labels to be added to Feast Job Service pods |
| prometheus.enabled | bool | `true` | Flag to enable scraping of Feast Job Service metrics |
| prometheus.enabled | bool | `true` | Flag to enable scraping of metrics |
| readinessProbe.enabled | bool | `true` | Flag to enabled the probe |
| readinessProbe.failureThreshold | int | `5` | Min consecutive failures for the probe to be considered failed |
| readinessProbe.initialDelaySeconds | int | `20` | Delay before the probe is initiated |
Expand Down
1 change: 1 addition & 0 deletions infra/charts/feast/charts/feast-serving/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ Current chart version is `0.8-SNAPSHOT`
| readinessProbe.timeoutSeconds | int | `10` | When the probe times out |
| replicaCount | int | `1` | Number of pods that will be created |
| resources | object | `{}` | CPU/memory [resource requests/limit](https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#resource-requests-and-limits-of-pod-and-container) |
| secrets | list | `[]` | List of Kubernetes secrets to be mounted on Feast Core pods. These secrets will be mounted on /etc/secrets/<secret name>. |
| service.grpc.nodePort | string | `nil` | Port number that each cluster node will listen to |
| service.grpc.port | int | `6566` | Service port for GRPC requests |
| service.grpc.targetPort | int | `6566` | Container port serving GRPC requests |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ spec:
- name: {{ template "feast-serving.fullname" . }}-secret
secret:
secretName: {{ template "feast-serving.fullname" . }}
{{- range $secret := .Values.secrets }}
- name: {{ $secret }}
secret:
secretName: {{ $secret }}
{{- end }}

containers:
- name: {{ .Chart.Name }}
Expand All @@ -58,6 +63,11 @@ spec:
- name: {{ template "feast-serving.fullname" . }}-secret
mountPath: /etc/secrets/feast
readOnly: true
{{- range $secret := .Values.secrets }}
- name: {{ $secret }}
mountPath: "/etc/secrets/{{ $secret }}"
readOnly: true
{{- end }}

env:
- name: LOG_TYPE
Expand Down
3 changes: 3 additions & 0 deletions infra/charts/feast/charts/feast-serving/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,5 +147,8 @@ nodeSelector: {}
# envOverrides -- Extra environment variables to set
envOverrides: {}

# secrets -- List of Kubernetes secrets to be mounted on Feast Core pods. These secrets will be mounted on /etc/secrets/<secret name>.
secrets: []

# podLabels -- Labels to be added to Feast Serving pods
podLabels: {}