BjornMagnussonXA | 31b0988 | 2021-06-02 01:56:26 +0200 | [diff] [blame] | 1 | # ============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 | |
| 18 | apiVersion: v1 |
| 19 | kind: Service |
| 20 | metadata: |
| 21 | name: helmmanagerservice |
| 22 | namespace: nonrtric |
| 23 | labels: |
| 24 | run: helmmanagerservice |
| 25 | spec: |
| 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 | |
| 41 | apiVersion: v1 |
| 42 | kind: Pod |
| 43 | metadata: |
| 44 | name: helmmanagerservice |
| 45 | namespace: nonrtric |
| 46 | labels: |
| 47 | run: helmmanagerservice |
| 48 | spec: |
| 49 | serviceAccountName: helm-manager-sa |
| 50 | containers: |
| 51 | - name: helmmanagerservice |
BjornMagnussonXA | a439ccb | 2021-09-14 14:44:08 +0200 | [diff] [blame^] | 52 | image: nexus3.o-ran-sc.org:10004/o-ran-sc/nonrtric-helm-manager:1.1.0-SNAPSHOT |
BjornMagnussonXA | 31b0988 | 2021-06-02 01:56:26 +0200 | [diff] [blame] | 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 | |
| 69 | apiVersion: v1 |
| 70 | kind: PersistentVolume |
| 71 | metadata: |
| 72 | name: helm-manager-service-pv |
| 73 | labels: |
| 74 | run: helm-manager-service |
| 75 | spec: |
| 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 | |
| 87 | apiVersion: v1 |
| 88 | kind: PersistentVolumeClaim |
| 89 | metadata: |
| 90 | name: helm-manager-service-pvc |
| 91 | namespace: nonrtric |
| 92 | labels: |
| 93 | run: helm-manager-service |
| 94 | spec: |
| 95 | accessModes: |
| 96 | - ReadWriteOnce |
| 97 | resources: |
| 98 | requests: |
| 99 | storage: 10Mi |
| 100 | storageClassName: helm-manager-service-standard |
| 101 | volumeMode: Filesystem |