diff options
Diffstat (limited to 'astroshop-helm/cart/templates/service.yaml')
| -rw-r--r-- | astroshop-helm/cart/templates/service.yaml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/astroshop-helm/cart/templates/service.yaml b/astroshop-helm/cart/templates/service.yaml new file mode 100644 index 0000000..15a7d66 --- /dev/null +++ b/astroshop-helm/cart/templates/service.yaml @@ -0,0 +1,16 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ .Values.namespace }}-{{ include "cart.fullname" . }} + labels: + app.kubernetes.io/component: cartservice + app.kubernetes.io/part-of: opentelemetry-demo + opentelemetry.io/name: {{ .Values.namespace }}-{{ include "cart.fullname" . }} + {{- include "cart.labels" . | nindent 4 }} +spec: + type: {{ .Values.opentelemetryDemoCartservice.type }} + selector: + opentelemetry.io/name: {{ .Values.namespace }}-{{ include "cart.fullname" . }} + {{- include "cart.selectorLabels" . | nindent 4 }} + ports: + {{- .Values.opentelemetryDemoCartservice.ports | toYaml | nindent 2 }} |
