Skip to content

Commit

Permalink
correct services app labels
Browse files Browse the repository at this point in the history
  • Loading branch information
fonhorst committed Dec 17, 2023
1 parent cac4e7b commit c35249c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 9 deletions.
18 changes: 9 additions & 9 deletions distributed/charts/autotm/templates/deployments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ spec:
annotations:
"sidecar.istio.io/inject": "false"
labels:
app: {{ include "autotm.prefix" . }}mlflow
{{- range $key, $val := .Values.required_labels }}
{{ $key }}: {{ $val | quote }}
{{- end }}
app: {{ include "autotm.prefix" . }}mlflow
spec:
volumes:
- name: mlflow-vol
Expand Down Expand Up @@ -64,10 +64,10 @@ spec:
annotations:
"sidecar.istio.io/inject": "false"
labels:
app: {{ include "autotm.prefix" . }}mlflow-db
{{- range $key, $val := .Values.required_labels }}
{{ $key }}: {{ $val | quote }}
{{- end }}
app: {{ include "autotm.prefix" . }}mlflow-db
spec:
volumes:
- name: mlflow-db-vol
Expand Down Expand Up @@ -119,10 +119,10 @@ spec:
annotations:
"sidecar.istio.io/inject": "false"
labels:
app: {{ include "autotm.prefix" . }}mlflow-db-phpmyadmin
{{- range $key, $val := .Values.required_labels }}
{{ $key }}: {{ $val | quote }}
{{- end }}
app: {{ include "autotm.prefix" . }}mlflow-db-phpmyadmin
spec:
containers:
- name: phpmyadmin
Expand Down Expand Up @@ -161,10 +161,10 @@ spec:
annotations:
"sidecar.istio.io/inject": "false"
labels:
app: {{ include "autotm.prefix" . }}mongo-tm-experiments-db
{{- range $key, $val := .Values.required_labels }}
{{ $key }}: {{ $val | quote }}
{{- end }}
app: {{ include "autotm.prefix" . }}mongo-tm-experiments-db
spec:
tolerations:
- key: "node.kubernetes.io/disk-pressure"
Expand Down Expand Up @@ -211,10 +211,10 @@ spec:
annotations:
"sidecar.istio.io/inject": "false"
labels:
app: {{ include "autotm.prefix" . }}mongo-express-tm-experiments
{{- range $key, $val := .Values.required_labels }}
{{ $key }}: {{ $val | quote }}
{{- end }}
app: {{ include "autotm.prefix" . }}mongo-express-tm-experiments
spec:
# volumes:
# - name: wait-for-vol
Expand Down Expand Up @@ -264,10 +264,10 @@ spec:
annotations:
"sidecar.istio.io/inject": "false"
labels:
app: {{ include "autotm.prefix" . }}rabbitmq
{{- range $key, $val := .Values.required_labels }}
{{ $key }}: {{ $val | quote }}
{{- end }}
app: {{ include "autotm.prefix" . }}rabbitmq
spec:
volumes:
- name: config-volume
Expand Down Expand Up @@ -302,10 +302,10 @@ spec:
annotations:
"sidecar.istio.io/inject": "false"
labels:
app: {{ include "autotm.prefix" . }}redis
{{- range $key, $val := .Values.required_labels }}
{{ $key }}: {{ $val | quote }}
{{- end }}
app: {{ include "autotm.prefix" . }}redis
spec:
containers:
- name: redis
Expand Down Expand Up @@ -336,10 +336,10 @@ spec:
annotations:
"sidecar.istio.io/inject": "false"
labels:
app: {{ include "autotm.prefix" . }}celery-flower
{{- range $key, $val := .Values.required_labels }}
{{ $key }}: {{ $val | quote }}
{{- end }}
app: {{ include "autotm.prefix" . }}celery-flower
spec:
containers:
- name: flower
Expand Down Expand Up @@ -372,10 +372,10 @@ spec:
annotations:
"sidecar.istio.io/inject": "false"
labels:
app: {{ include "autotm.prefix" . }}fitness-worker
{{- range $key, $val := .Values.required_labels }}
{{ $key }}: {{ $val | quote }}
{{- end }}
app: {{ include "autotm.prefix" . }}fitness-worker
spec:
volumes:
- name: dataset
Expand Down
15 changes: 15 additions & 0 deletions distributed/charts/autotm/templates/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,21 @@
---
apiVersion: v1
kind: Service
metadata:
name: {{ include "autotm.prefix" . }}mlflow
labels:
{{- range $key, $val := .Values.required_labels }}
{{ $key }}: {{ $val | quote }}
{{- end }}
spec:
type: NodePort
ports:
- port: 5000
selector:
app: {{ include "autotm.prefix" . }}mlflow
---
apiVersion: v1
kind: Service
metadata:
name: {{ include "autotm.prefix" . }}mlflow-db-phpmyadmin
labels:
Expand Down

0 comments on commit c35249c

Please sign in to comment.