Add helm charts for distribution and http-ppnt in CSIT
[policy/docker.git] / helm / policy / components / policy-clamp-ac-http-ppnt / templates / service.yaml
diff --git a/helm/policy/components/policy-clamp-ac-http-ppnt/templates/service.yaml b/helm/policy/components/policy-clamp-ac-http-ppnt/templates/service.yaml
new file mode 100644 (file)
index 0000000..75099e1
--- /dev/null
@@ -0,0 +1,42 @@
+{{/*\r
+#  ============LICENSE_START=======================================================\r
+#   Copyright (C) 2023 Nordix Foundation. All rights reserved.\r
+#  ================================================================================\r
+#  Licensed under the Apache License, Version 2.0 (the "License");\r
+#  you may not use this file except in compliance with the License.\r
+#  You may obtain a copy of the License at\r
+#\r
+#       http://www.apache.org/licenses/LICENSE-2.0\r
+#\r
+#  Unless required by applicable law or agreed to in writing, software\r
+#  distributed under the License is distributed on an "AS IS" BASIS,\r
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+#  See the License for the specific language governing permissions and\r
+#  limitations under the License.\r
+#\r
+#  SPDX-License-Identifier: Apache-2.0\r
+#  ============LICENSE_END=========================================================\r
+*/}}\r
+\r
+apiVersion: v1\r
+kind: Service\r
+metadata:\r
+  name: {{ .Chart.Name }}\r
+  namespace: default\r
+  labels:\r
+    app.kubernetes.io/name: {{ .Chart.Name }}\r
+    helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}\r
+    app.kubernetes.io/instance: release\r
+    app.kubernetes.io/managed-by: Helm\r
+spec:\r
+  ports:\r
+    - port: {{ .Values.service.ports.port }}\r
+      targetPort: {{ .Values.service.ports.port }}\r
+      protocol: TCP\r
+      name: {{ .Values.service.ports.name }}\r
+  ipFamilyPolicy: PreferDualStack\r
+  type: {{ .Values.service.type }}\r
+  selector:\r
+    app.kubernetes.io/name: {{ .Chart.Name }}\r
+    app.kubernetes.io/instance: release\r
+  sessionAffinity: None\r