NONRTRIC-946: Servicemanager - update README and fix stand-alone deployment
[nonrtric/plt/sme.git] / servicemanager / deploy / manifests / capifcore.yaml
1 #  ============LICENSE_START===============================================
2 #  Copyright (C) 2024 OpenInfra Foundation Europe. All rights reserved.
3 #  ========================================================================
4 #  Licensed under the Apache License, Version 2.0 (the "License");
5 #  you may not use this file except in compliance with the License.
6 #  You may obtain a copy of the License at
7 #
8 #       http://www.apache.org/licenses/LICENSE-2.0
9 #
10 #  Unless required by applicable law or agreed to in writing, software
11 #  distributed under the License is distributed on an "AS IS" BASIS,
12 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 #  See the License for the specific language governing permissions and
14 #  limitations under the License.
15 #  ============LICENSE_END=================================================
16 #
17
18 ---
19 apiVersion: apps/v1
20 kind: Deployment
21 metadata:
22   name: capifcore
23   namespace: servicemanager
24   labels:
25     app: capifcore
26 spec:
27   replicas: 1
28   selector:
29     matchLabels:
30       app: capifcore
31   template:
32     metadata:
33       labels:
34         app: capifcore
35         version: v1
36     spec:
37       containers:
38       - name: capifcore
39         image: "nexus3.o-ran-sc.org:10004/o-ran-sc/nonrtric-plt-capifcore:1.3.1"
40         imagePullPolicy: IfNotPresent
41         ports:
42         - containerPort: 8090
43         resources:
44           limits:
45             memory: 256Mi
46             cpu: "250m"
47           requests:
48             memory: 128Mi
49             cpu: "80m"
50
51 ---
52 apiVersion: v1
53 kind: Service
54 metadata:
55   name: capifcore
56   namespace: servicemanager
57 spec:
58   selector:
59     app: capifcore
60   ports:
61     - protocol: TCP
62       port: 80
63       targetPort: 8090
64       nodePort: 31570
65   type: NodePort