# ========================LICENSE_START=================================
# O-RAN-SC
# %%
-# Copyright (C) 2023: OpenInfra Foundation Europe
+# Copyright (C) 2024: OpenInfra Foundation Europe
# %%
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
#
apiVersion: v1
-kind: Pod
+kind: Service
metadata:
- name: "{{ include "hello-world-chart.fullname" . }}-test-connection"
+ name: {{ include "hello-world-sme-invoker.fullname" . }}
labels:
- {{- include "hello-world-chart.labels" . | nindent 4 }}
- annotations:
- "helm.sh/hook": test
+ {{- include "hello-world-sme-invoker.labels" . | nindent 4 }}
spec:
- containers:
- - name: wget
- image: busybox
- command: ['wget']
- args: ['{{ include "hello-world-chart.fullname" . }}:{{ .Values.service.port }}']
- restartPolicy: Never
+ type: {{ .Values.service.type }}
+ ports:
+ - port: {{ .Values.service.port }}
+ targetPort: http
+ protocol: TCP
+ name: http
+ selector:
+ {{- include "hello-world-sme-invoker.selectorLabels" . | nindent 4 }}
+