NONRTRIC-946: Add support for Kong routes
[nonrtric/plt/sme.git] / servicemanager / deploy / manifests / servicemanager.yaml
diff --git a/servicemanager/deploy/manifests/servicemanager.yaml b/servicemanager/deploy/manifests/servicemanager.yaml
new file mode 100644 (file)
index 0000000..3f937ff
--- /dev/null
@@ -0,0 +1,75 @@
+#  ============LICENSE_START===============================================
+#  Copyright (C) 2024 OpenInfra Foundation Europe. All rights reserved.
+#  ========================================================================
+#  Licensed under the Apache License, Version 2.0 (the "License");
+#  you may not use this file except in compliance with the License.
+#  You may obtain a copy of the License at
+#
+#       http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+#  ============LICENSE_END=================================================
+#
+
+---
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+  name: servicemanager
+  namespace: servicemanager
+  labels:
+    app: servicemanager
+spec:
+  replicas: 1
+  selector:
+    matchLabels:
+      app: servicemanager
+  template:
+    metadata:
+      labels:
+        app: servicemanager
+        version: v1
+    spec:
+      containers:
+      - name: servicemanager
+        image: o-ran-sc.org/nonrtric/plt/servicemanager
+        imagePullPolicy: IfNotPresent
+        env:
+            - name: SERVICE_MANAGER_ENV
+              value: ""
+        ports:
+        - containerPort: 8095
+        resources:
+          limits:
+            memory: 256Mi
+            cpu: "250m"
+          requests:
+            memory: 128Mi
+            cpu: "80m"
+        volumeMounts:
+        - name: config-volume
+          mountPath: /app/.env
+          subPath: .env
+      volumes:
+      - name: config-volume
+        configMap:
+          name: env-configmap
+---
+apiVersion: v1
+kind: Service
+metadata:
+  name: servicemanager
+  namespace: servicemanager
+spec:
+  selector:
+    app: servicemanager
+  ports:
+    - protocol: TCP
+      port: 80
+      targetPort: 8095
+      nodePort: 31575
+  type: NodePort