| # ============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: 8083 |
| 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:10002/o-ran-sc/nonrtric-plt-helmmanager:1.2.0 |
| imagePullPolicy: Always |
| ports: |
| - name: http |
| containerPort: 8083 |
| - 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 |
| initContainers: |
| - name: change-ownership-container |
| image: busybox:latest |
| command: ["sh","-c","chown -R 999:1000 /var/helm-manager-service"] |
| resources: {} |
| volumeMounts: |
| - mountPath: /var/helm-manager-service |
| name: helm-manager-service-pv |
| --- |
| |
| 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 |