X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=helm-manager%2Fhelm-manager.yaml;fp=helm-manager%2Fhelm-manager.yaml;h=093752e04fddce43c490275abaa9a524efc7185e;hb=31b09880413a8708a5ecfbd4ad83a91a01661892;hp=0000000000000000000000000000000000000000;hpb=1764163c4a4fb4bfc00ff057df522cddbae489b5;p=nonrtric.git diff --git a/helm-manager/helm-manager.yaml b/helm-manager/helm-manager.yaml new file mode 100644 index 00000000..093752e0 --- /dev/null +++ b/helm-manager/helm-manager.yaml @@ -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