X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=charts%2Ftemplates%2Fdeployment.yaml;h=72e35800d3a1e12fb392032faac81eb64d01d294;hb=5c00dc9e61bd13c3f5a97ce5e821512553560043;hp=98dc174c208ea75328d41c588d7317e41f693234;hpb=bbdc4917e5aaa0639ca8573a0f1720ccb2bf1077;p=pti%2Fo2.git diff --git a/charts/templates/deployment.yaml b/charts/templates/deployment.yaml index 98dc174..72e3580 100644 --- a/charts/templates/deployment.yaml +++ b/charts/templates/deployment.yaml @@ -1,4 +1,4 @@ -# Copyright (C) 2021 Wind River Systems, Inc. +# Copyright (C) 2021-2023 Wind River Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,6 +29,13 @@ spec: metadata: labels: app: o2api + {{- with .Values.podLabels }} + {{- toYaml . | nindent 8 }} + {{- end }} + annotations: + {{- with .Values.podAnnotations }} + {{- toYaml . | nindent 8 }} + {{- end }} spec: serviceAccountName: {{ .Values.o2ims.serviceaccountname }} {{- if .Values.imagePullSecrets }} @@ -68,7 +75,7 @@ spec: command: ["/bin/bash", "/opt/o2pubsub_start.sh"] env: - name: DB_HOST - value: postgres + value: localhost - name: DB_PASSWORD value: o2ims123 - name: LOGGING_CONFIG_LEVEL @@ -82,7 +89,7 @@ spec: - name: PYTHONDONTWRITEBYTECODE value: "1" - name: REDIS_HOST - value: redis + value: localhost - name: K8S_KUBECONFIG value: {{ .Values.ocloud.K8S_KUBECONFIG }} volumeMounts: @@ -102,7 +109,7 @@ spec: - name: API_HOST_EXTERNAL_FLOATING value: {{ .Values.ocloud.API_HOST_EXTERNAL_FLOATING }} - name: DB_HOST - value: postgres + value: localhost - name: DB_PASSWORD value: o2ims123 - name: LOGGING_CONFIG_LEVEL @@ -116,7 +123,7 @@ spec: - name: PYTHONDONTWRITEBYTECODE value: "1" - name: REDIS_HOST - value: redis + value: localhost volumeMounts: - name: scripts mountPath: /opt @@ -132,13 +139,13 @@ spec: - name: API_HOST_EXTERNAL_FLOATING value: {{ .Values.ocloud.API_HOST_EXTERNAL_FLOATING }} - name: DB_HOST - value: postgres + value: localhost - name: DB_PASSWORD value: o2ims123 - - name: FLASK_APP - value: /src/o2app/entrypoints/flask_application.py - - name: FLASK_DEBUG - value: {{ .Values.o2ims.logginglevel }} + # - name: FLASK_APP + # value: /src/o2app/entrypoints/flask_application.py + # - name: FLASK_DEBUG + # value: {{ .Values.o2ims.logginglevel }} - name: LOGGING_CONFIG_LEVEL value: {{ .Values.o2ims.logginglevel }} - name: OS_AUTH_URL @@ -149,15 +156,17 @@ spec: - name: PYTHONUNBUFFERED value: "1" - name: REDIS_HOST - value: redis + value: localhost - name: HELM_USER_PASSWD value: {{ .Values.ocloud.HELM_USER_PASSWD }} command: ["/bin/bash", "/opt/o2api_start.sh"] volumeMounts: - name: scripts mountPath: /opt - # - name: configs - # mountPath: /configs + {{- if .Values.o2dms.helm_cli_enable }} + - name: share + mountPath: /share + {{- end }} - name: applicationconfig mountPath: /configs/o2app.conf subPath: config.json @@ -184,13 +193,17 @@ spec: volumeMounts: - name: scripts mountPath: /opt + - name: share + mountPath: /share {{- end }} volumes: - name: scripts configMap: name: {{ .Chart.Name }}-scripts-configmap - # - name: configs - # emptyDir: {} + {{- if .Values.o2dms.helm_cli_enable }} + - name: share + emptyDir: {} + {{- end }} - configMap: name: {{ .Chart.Name }}-application-config name: applicationconfig