Helm manager app
[nonrtric.git] / helm-manager / helm-manager.yaml
diff --git a/helm-manager/helm-manager.yaml b/helm-manager/helm-manager.yaml
new file mode 100644 (file)
index 0000000..093752e
--- /dev/null
@@ -0,0 +1,101 @@
+#  ============LICENSE_START===============================================
+#  Copyright (C) 2020 Nordix Foundation. 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: v1
+kind: Service
+metadata:
+  name: helmmanagerservice
+  namespace: nonrtric
+  labels:
+    run: helmmanagerservice
+spec:
+  type: NodePort
+  ports:
+  - port: 8080
+    targetPort: 8080
+    protocol: TCP
+    name: http
+  - port: 8443
+    targetPort: 8443
+    protocol: TCP
+    name: https
+  selector:
+    run: helmmanagerservice
+
+---
+
+apiVersion: v1
+kind: Pod
+metadata:
+  name: helmmanagerservice
+  namespace: nonrtric
+  labels:
+    run: helmmanagerservice
+spec:
+  serviceAccountName: helm-manager-sa
+  containers:
+  - name: helmmanagerservice
+    image: nexus3.o-ran-sc.org:10004/o-ran-sc/nonrtric-helm-manager:1.0.0-SNAPSHOT
+    imagePullPolicy: Always
+    ports:
+    - name: http
+      containerPort: 8080
+    - name: https
+      containerPort: 8443
+    volumeMounts:
+    - mountPath: /var/helm-manager-service
+      name: helm-manager-service-pv
+  volumes:
+  - name: helm-manager-service-pv
+    persistentVolumeClaim:
+      claimName: helm-manager-service-pvc
+
+---
+
+apiVersion: v1
+kind: PersistentVolume
+metadata:
+  name: helm-manager-service-pv
+  labels:
+    run: helm-manager-service
+spec:
+  storageClassName: helm-manager-service-standard
+  capacity:
+    storage: 10Mi
+  accessModes:
+    - ReadWriteOnce
+  persistentVolumeReclaimPolicy: Delete
+  hostPath:
+    path: "/tmp/helm-manager-service"
+
+---
+
+apiVersion: v1
+kind: PersistentVolumeClaim
+metadata:
+  name: helm-manager-service-pvc
+  namespace: nonrtric
+  labels:
+    run: helm-manager-service
+spec:
+  accessModes:
+  - ReadWriteOnce
+  resources:
+    requests:
+      storage: 10Mi
+  storageClassName: helm-manager-service-standard
+  volumeMode: Filesystem