blob: 093752e04fddce43c490275abaa9a524efc7185e [file] [log] [blame]
BjornMagnussonXA31b09882021-06-02 01:56:26 +02001# ============LICENSE_START===============================================
2# Copyright (C) 2020 Nordix Foundation. 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
18apiVersion: v1
19kind: Service
20metadata:
21 name: helmmanagerservice
22 namespace: nonrtric
23 labels:
24 run: helmmanagerservice
25spec:
26 type: NodePort
27 ports:
28 - port: 8080
29 targetPort: 8080
30 protocol: TCP
31 name: http
32 - port: 8443
33 targetPort: 8443
34 protocol: TCP
35 name: https
36 selector:
37 run: helmmanagerservice
38
39---
40
41apiVersion: v1
42kind: Pod
43metadata:
44 name: helmmanagerservice
45 namespace: nonrtric
46 labels:
47 run: helmmanagerservice
48spec:
49 serviceAccountName: helm-manager-sa
50 containers:
51 - name: helmmanagerservice
52 image: nexus3.o-ran-sc.org:10004/o-ran-sc/nonrtric-helm-manager:1.0.0-SNAPSHOT
53 imagePullPolicy: Always
54 ports:
55 - name: http
56 containerPort: 8080
57 - name: https
58 containerPort: 8443
59 volumeMounts:
60 - mountPath: /var/helm-manager-service
61 name: helm-manager-service-pv
62 volumes:
63 - name: helm-manager-service-pv
64 persistentVolumeClaim:
65 claimName: helm-manager-service-pvc
66
67---
68
69apiVersion: v1
70kind: PersistentVolume
71metadata:
72 name: helm-manager-service-pv
73 labels:
74 run: helm-manager-service
75spec:
76 storageClassName: helm-manager-service-standard
77 capacity:
78 storage: 10Mi
79 accessModes:
80 - ReadWriteOnce
81 persistentVolumeReclaimPolicy: Delete
82 hostPath:
83 path: "/tmp/helm-manager-service"
84
85---
86
87apiVersion: v1
88kind: PersistentVolumeClaim
89metadata:
90 name: helm-manager-service-pvc
91 namespace: nonrtric
92 labels:
93 run: helm-manager-service
94spec:
95 accessModes:
96 - ReadWriteOnce
97 resources:
98 requests:
99 storage: 10Mi
100 storageClassName: helm-manager-service-standard
101 volumeMode: Filesystem