diff --git a/CMakeLists.txt b/CMakeLists.txt index 81cc1edf76..7124548c39 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2545,7 +2545,6 @@ target_link_libraries(nrscope ${XFORMS_LIBRARIES}) add_library(rfsimulator MODULE ${OPENAIR_DIR}/radio/rfsimulator/simulator.c ${OPENAIR_DIR}/radio/rfsimulator/apply_channelmod.c - ${OPENAIR_DIR}/radio/rfsimulator/new_channel_sim.c ${OPENAIR1_DIR}/PHY/TOOLS/signal_energy.c ) target_link_libraries(rfsimulator SIMU_COMMON ${ATLAS_LIBRARIES}) diff --git a/README.md b/README.md index 2077b3d20b..c82eff8f36 100644 --- a/README.md +++ b/README.md @@ -36,11 +36,20 @@ Please see [NOTICE](NOTICE.md) file for third party software that is included in * [How to build](./doc/BUILD.md) * [How to run the modems](./doc/RUNMODEM.md) +More information and documentation can be found in the [doc folder](./doc). +Unfortunately, not all information is available there, and information for +specific sub-systems might be available in the corresponding sub-directories. +To find all READMEs, this command might be handy: + +``` +find . -iname "readme*" +``` + # RAN repository structure # The OpenAirInterface (OAI) software is composed of the following parts: -
+``` openairinterface5g ├── ci-scripts : Meta-scripts used by the OSA CI process. Contains also configuration files used day-to-day by CI. ├── cmake_targets : Build utilities to compile (simulation, emulation and real-time platforms), and generated build files. @@ -88,5 +97,6 @@ openairinterface5g │ ├── TEST │ ├── UDP │ └── UTILS +├── radio : drivers for various radios such as USRP, AW2S, RFsim, ... └── targets : Top-level wrappers for unitary simulation for PHY channels, system-level emulation (eNB-UE with and without S1), and realtime eNB and UE and RRH GW. -+``` diff --git a/charts/physims/Chart.yaml b/charts/physims/Chart.yaml index bef28aac27..0a6abe4caa 100644 --- a/charts/physims/Chart.yaml +++ b/charts/physims/Chart.yaml @@ -16,7 +16,7 @@ icon: http://www.openairinterface.org/wp-content/uploads/2015/06/cropped-oai_fin # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. -version: 0.1.1 +version: 1.0.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. diff --git a/charts/physims/charts/dlsim.100rb+tm2/templates/NOTES.txt b/charts/physims/charts/dlsim.100rb+tm2/templates/NOTES.txt deleted file mode 100644 index 89f5185499..0000000000 --- a/charts/physims/charts/dlsim.100rb+tm2/templates/NOTES.txt +++ /dev/null @@ -1,15 +0,0 @@ -1. Get the application URL by running these commands: -{{- if contains "NodePort" .Values.service.type }} - export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "oai-dlsim-100rb-tm2.fullname" . }}) - export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") - echo http://$NODE_IP:$NODE_PORT -{{- else if contains "LoadBalancer" .Values.service.type }} - NOTE: It may take a few minutes for the LoadBalancer IP to be available. - You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "oai-dlsim-100rb-tm2.fullname" . }}' - export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "oai-dlsim-100rb-tm2.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - echo http://$SERVICE_IP:{{ .Values.service.port }} -{{- else if contains "ClusterIP" .Values.service.type }} - export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "oai-dlsim-100rb-tm2.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") - echo "Visit http://127.0.0.1:8080 to use your application" - kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:80 -{{- end }} diff --git a/charts/physims/charts/dlsim.100rb+tm2/templates/deployment.yaml b/charts/physims/charts/dlsim.100rb+tm2/templates/job.yaml similarity index 70% rename from charts/physims/charts/dlsim.100rb+tm2/templates/deployment.yaml rename to charts/physims/charts/dlsim.100rb+tm2/templates/job.yaml index 88bf277a03..d42742ffb8 100644 --- a/charts/physims/charts/dlsim.100rb+tm2/templates/deployment.yaml +++ b/charts/physims/charts/dlsim.100rb+tm2/templates/job.yaml @@ -1,20 +1,12 @@ -apiVersion: apps/v1 -kind: Deployment +apiVersion: batch/v1 +kind: Job metadata: name: {{ .Chart.Name }} - labels: - {{- include "oai-dlsim-100rb-tm2.labels" . | nindent 4 }} spec: - replicas: {{ .Values.replicaCount }} - selector: - matchLabels: - {{- include "oai-dlsim-100rb-tm2.selectorLabels" . | nindent 6 }} - strategy: - type: Recreate template: metadata: labels: - {{- include "oai-dlsim-100rb-tm2.selectorLabels" . | nindent 8 }} + app: physim spec: securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} @@ -28,8 +20,6 @@ spec: imagePullPolicy: {{ .Values.image.pullPolicy }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} - ports: - - containerPort: 80 env: - name: OPENAIR_DIR value: /opt/oai-physim @@ -39,7 +29,9 @@ spec: cmake_targets/autotests/run_exec_autotests.bash -g "dlsim.100rb+tm2" -d bin/ && echo "FINISHED" && sleep infinity dnsPolicy: ClusterFirst - restartPolicy: Always + restartPolicy: Never schedulerName: default-scheduler serviceAccountName: {{ .Values.global.serviceAccountName }} terminationGracePeriodSeconds: 30 + nodeSelector: + {{- toYaml .Values.global.nodeSelector | nindent 12 }} diff --git a/charts/physims/charts/dlsim.100rb+tm2/templates/service.yaml b/charts/physims/charts/dlsim.100rb+tm2/templates/service.yaml deleted file mode 100644 index 377e567c9a..0000000000 --- a/charts/physims/charts/dlsim.100rb+tm2/templates/service.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ .Chart.Name }} - labels: - {{- include "oai-dlsim-100rb-tm2.labels" . | nindent 4 }} -spec: - type: {{ .Values.service.type }} -{{- if contains "ClusterIP" .Values.service.type }} - clusterIP: None -{{- end }} - ports: - - name: oai-dlsim-100rb-tm2 - # Port accessible outside cluster - port: {{ .Values.service.port }} - # Port to forward to inside the pod - targetPort: {{ .Values.service.Port }} - protocol: TCP - selector: - {{- include "oai-dlsim-100rb-tm2.selectorLabels" . | nindent 4 }} diff --git a/charts/physims/charts/dlsim.100rb+tm2/values.yaml b/charts/physims/charts/dlsim.100rb+tm2/values.yaml index f3d1aa3d74..aae621bd84 100644 --- a/charts/physims/charts/dlsim.100rb+tm2/values.yaml +++ b/charts/physims/charts/dlsim.100rb+tm2/values.yaml @@ -27,19 +27,7 @@ podSecurityContext: runAsGroup: 0 securityContext: - privileged: true - capabilities: - add: - - SYS_CAP_PTRACE - # drop: - # - ALL - # readOnlyRootFilesystem: true - # runAsNonRoot: true - # runAsUser: 1000 - -service: - type: ClusterIP - port: 80 + privileged: false resources: {} # We usually recommend not to specify default resources and to leave this as a conscious diff --git a/charts/physims/charts/dlsim.basic/templates/NOTES.txt b/charts/physims/charts/dlsim.basic/templates/NOTES.txt deleted file mode 100644 index 1111598300..0000000000 --- a/charts/physims/charts/dlsim.basic/templates/NOTES.txt +++ /dev/null @@ -1,15 +0,0 @@ -1. Get the application URL by running these commands: -{{- if contains "NodePort" .Values.service.type }} - export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "oai-dlsim-basic.fullname" . }}) - export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") - echo http://$NODE_IP:$NODE_PORT -{{- else if contains "LoadBalancer" .Values.service.type }} - NOTE: It may take a few minutes for the LoadBalancer IP to be available. - You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "oai-dlsim-basic.fullname" . }}' - export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "oai-dlsim-basic.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - echo http://$SERVICE_IP:{{ .Values.service.port }} -{{- else if contains "ClusterIP" .Values.service.type }} - export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "oai-dlsim-basic.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") - echo "Visit http://127.0.0.1:8080 to use your application" - kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:80 -{{- end }} diff --git a/charts/physims/charts/dlsim.basic/templates/deployment.yaml b/charts/physims/charts/dlsim.basic/templates/job.yaml similarity index 68% rename from charts/physims/charts/dlsim.basic/templates/deployment.yaml rename to charts/physims/charts/dlsim.basic/templates/job.yaml index f74f504727..35e386b890 100644 --- a/charts/physims/charts/dlsim.basic/templates/deployment.yaml +++ b/charts/physims/charts/dlsim.basic/templates/job.yaml @@ -1,20 +1,12 @@ -apiVersion: apps/v1 -kind: Deployment +apiVersion: batch/v1 +kind: Job metadata: - name: {{ .Chart.Name }} - labels: - {{- include "oai-dlsim-basic.labels" . | nindent 4 }} + name: {{ .Chart.Name }} spec: - replicas: {{ .Values.replicaCount }} - selector: - matchLabels: - {{- include "oai-dlsim-basic.selectorLabels" . | nindent 6 }} - strategy: - type: Recreate template: metadata: labels: - {{- include "oai-dlsim-basic.selectorLabels" . | nindent 8 }} + app: physim spec: securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} @@ -28,8 +20,6 @@ spec: imagePullPolicy: {{ .Values.image.pullPolicy }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} - ports: - - containerPort: 80 env: - name: OPENAIR_DIR value: /opt/oai-physim @@ -39,7 +29,9 @@ spec: cmake_targets/autotests/run_exec_autotests.bash -g "dlsim.basic" -d bin/ && echo "FINISHED" && sleep infinity dnsPolicy: ClusterFirst - restartPolicy: Always + restartPolicy: Never schedulerName: default-scheduler - serviceAccountName: {{ .Values.global.serviceAccountName }} + serviceAccountName: {{ .Values.global.serviceAccountName }} terminationGracePeriodSeconds: 30 + nodeSelector: + {{- toYaml .Values.global.nodeSelector | nindent 12 }} \ No newline at end of file diff --git a/charts/physims/charts/dlsim.basic/templates/service.yaml b/charts/physims/charts/dlsim.basic/templates/service.yaml deleted file mode 100644 index 27e22a31d9..0000000000 --- a/charts/physims/charts/dlsim.basic/templates/service.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ .Chart.Name }} - labels: - {{- include "oai-dlsim-basic.labels" . | nindent 4 }} -spec: - type: {{ .Values.service.type }} -{{- if contains "ClusterIP" .Values.service.type }} - clusterIP: None -{{- end }} - ports: - - name: oai-dlsim-basic - # Port accessible outside cluster - port: {{ .Values.service.port }} - # Port to forward to inside the pod - targetPort: {{ .Values.service.Port }} - protocol: TCP - selector: - {{- include "oai-dlsim-basic.selectorLabels" . | nindent 4 }} diff --git a/charts/physims/charts/dlsim.basic/values.yaml b/charts/physims/charts/dlsim.basic/values.yaml index e36679ec2b..ae197e12ea 100644 --- a/charts/physims/charts/dlsim.basic/values.yaml +++ b/charts/physims/charts/dlsim.basic/values.yaml @@ -27,31 +27,15 @@ podSecurityContext: runAsGroup: 0 securityContext: - privileged: true - capabilities: - add: - - SYS_CAP_PTRACE - # drop: - # - ALL - # readOnlyRootFilesystem: true - # runAsNonRoot: true - # runAsUser: 1000 + privileged: false -service: - type: ClusterIP - port: 80 - -resources: {} - # We usually recommend not to specify default resources and to leave this as a conscious - # choice for the user. This also increases chances charts run on environments with little - # resources, such as Minikube. If you do want to specify resources, uncomment the following - # lines, adjust them as necessary, and remove the curly braces after 'resources:'. - # limits: - # cpu: 100m - # memory: 128Mi - # requests: - # cpu: 100m - # memory: 128Mi +resources: + limits: + cpu: 100m + memory: 128Mi + requests: + cpu: 100m + memory: 128Mi nodeSelector: {} diff --git a/charts/physims/charts/ldpctest/templates/NOTES.txt b/charts/physims/charts/ldpctest/templates/NOTES.txt deleted file mode 100644 index bda83c2f9e..0000000000 --- a/charts/physims/charts/ldpctest/templates/NOTES.txt +++ /dev/null @@ -1,15 +0,0 @@ -1. Get the application URL by running these commands: -{{- if contains "NodePort" .Values.service.type }} - export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "oai-ldpctest.fullname" . }}) - export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") - echo http://$NODE_IP:$NODE_PORT -{{- else if contains "LoadBalancer" .Values.service.type }} - NOTE: It may take a few minutes for the LoadBalancer IP to be available. - You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "oai-ldpctest.fullname" . }}' - export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "oai-ldpctest.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - echo http://$SERVICE_IP:{{ .Values.service.port }} -{{- else if contains "ClusterIP" .Values.service.type }} - export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "oai-ldpctest.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") - echo "Visit http://127.0.0.1:8080 to use your application" - kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:80 -{{- end }} diff --git a/charts/physims/charts/ldpctest/templates/deployment.yaml b/charts/physims/charts/ldpctest/templates/job.yaml similarity index 70% rename from charts/physims/charts/ldpctest/templates/deployment.yaml rename to charts/physims/charts/ldpctest/templates/job.yaml index 8df3df5c46..097c021626 100644 --- a/charts/physims/charts/ldpctest/templates/deployment.yaml +++ b/charts/physims/charts/ldpctest/templates/job.yaml @@ -1,20 +1,12 @@ -apiVersion: apps/v1 -kind: Deployment +apiVersion: batch/v1 +kind: Job metadata: name: {{ .Chart.Name }} - labels: - {{- include "oai-ldpctest.labels" . | nindent 4 }} spec: - replicas: {{ .Values.replicaCount }} - selector: - matchLabels: - {{- include "oai-ldpctest.selectorLabels" . | nindent 6 }} - strategy: - type: Recreate template: metadata: labels: - {{- include "oai-ldpctest.selectorLabels" . | nindent 8 }} + app: physim spec: securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} @@ -28,18 +20,18 @@ spec: imagePullPolicy: {{ .Values.image.pullPolicy }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} - ports: - - containerPort: 80 env: - name: OPENAIR_DIR value: /opt/oai-physim command: ["/bin/sh", "-c"] args: - - > + - > cmake_targets/autotests/run_exec_autotests.bash -g "ldpctest" -d bin/ && echo "FINISHED" && sleep infinity dnsPolicy: ClusterFirst - restartPolicy: Always + restartPolicy: Never schedulerName: default-scheduler serviceAccountName: {{ .Values.global.serviceAccountName }} terminationGracePeriodSeconds: 30 + nodeSelector: + {{- toYaml .Values.global.nodeSelector | nindent 12 }} \ No newline at end of file diff --git a/charts/physims/charts/ldpctest/templates/service.yaml b/charts/physims/charts/ldpctest/templates/service.yaml deleted file mode 100644 index eb0db8ce00..0000000000 --- a/charts/physims/charts/ldpctest/templates/service.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ .Chart.Name }} - labels: - {{- include "oai-ldpctest.labels" . | nindent 4 }} -spec: - type: {{ .Values.service.type }} -{{- if contains "ClusterIP" .Values.service.type }} - clusterIP: None -{{- end }} - ports: - - name: oai-ldpctest - # Port accessible outside cluster - port: {{ .Values.service.port }} - # Port to forward to inside the pod - targetPort: {{ .Values.service.Port }} - protocol: TCP - selector: - {{- include "oai-ldpctest.selectorLabels" . | nindent 4 }} diff --git a/charts/physims/charts/ldpctest/values.yaml b/charts/physims/charts/ldpctest/values.yaml index 0ac20e6dd3..0ff1153a2c 100644 --- a/charts/physims/charts/ldpctest/values.yaml +++ b/charts/physims/charts/ldpctest/values.yaml @@ -27,19 +27,7 @@ podSecurityContext: runAsGroup: 0 securityContext: - privileged: true - capabilities: - add: - - SYS_CAP_PTRACE - # drop: - # - ALL - # readOnlyRootFilesystem: true - # runAsNonRoot: true - # runAsUser: 1000 - -service: - type: ClusterIP - port: 80 + privileged: false resources: {} # We usually recommend not to specify default resources and to leave this as a conscious diff --git a/charts/physims/charts/nr-dlschsim/templates/NOTES.txt b/charts/physims/charts/nr-dlschsim/templates/NOTES.txt deleted file mode 100644 index 1f88d64976..0000000000 --- a/charts/physims/charts/nr-dlschsim/templates/NOTES.txt +++ /dev/null @@ -1,15 +0,0 @@ -1. Get the application URL by running these commands: -{{- if contains "NodePort" .Values.service.type }} - export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "oai-nr-dlschsim.fullname" . }}) - export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") - echo http://$NODE_IP:$NODE_PORT -{{- else if contains "LoadBalancer" .Values.service.type }} - NOTE: It may take a few minutes for the LoadBalancer IP to be available. - You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "oai-nr-dlschsim.fullname" . }}' - export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "oai-nr-dlschsim.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - echo http://$SERVICE_IP:{{ .Values.service.port }} -{{- else if contains "ClusterIP" .Values.service.type }} - export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "oai-nr-dlschsim.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") - echo "Visit http://127.0.0.1:8080 to use your application" - kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:80 -{{- end }} diff --git a/charts/physims/charts/nr-dlschsim/templates/deployment.yaml b/charts/physims/charts/nr-dlschsim/templates/job.yaml similarity index 69% rename from charts/physims/charts/nr-dlschsim/templates/deployment.yaml rename to charts/physims/charts/nr-dlschsim/templates/job.yaml index 1016dbef56..c696eb906c 100644 --- a/charts/physims/charts/nr-dlschsim/templates/deployment.yaml +++ b/charts/physims/charts/nr-dlschsim/templates/job.yaml @@ -1,20 +1,12 @@ -apiVersion: apps/v1 -kind: Deployment +apiVersion: batch/v1 +kind: Job metadata: name: {{ .Chart.Name }} - labels: - {{- include "oai-nr-dlschsim.labels" . | nindent 4 }} spec: - replicas: {{ .Values.replicaCount }} - selector: - matchLabels: - {{- include "oai-nr-dlschsim.selectorLabels" . | nindent 6 }} - strategy: - type: Recreate template: metadata: labels: - {{- include "oai-nr-dlschsim.selectorLabels" . | nindent 8 }} + app: physim spec: securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} @@ -28,18 +20,18 @@ spec: imagePullPolicy: {{ .Values.image.pullPolicy }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} - ports: - - containerPort: 80 env: - name: OPENAIR_DIR value: /opt/oai-physim command: ["/bin/sh", "-c"] args: - - > + - > cmake_targets/autotests/run_exec_autotests.bash -g "nr_dlschsim" -d bin/ && echo "FINISHED" && sleep infinity dnsPolicy: ClusterFirst - restartPolicy: Always + restartPolicy: Never schedulerName: default-scheduler serviceAccountName: {{ .Values.global.serviceAccountName }} terminationGracePeriodSeconds: 30 + nodeSelector: + {{- toYaml .Values.global.nodeSelector | nindent 12 }} \ No newline at end of file diff --git a/charts/physims/charts/nr-dlschsim/templates/service.yaml b/charts/physims/charts/nr-dlschsim/templates/service.yaml deleted file mode 100644 index 0dd065c9e0..0000000000 --- a/charts/physims/charts/nr-dlschsim/templates/service.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ .Chart.Name }} - labels: - {{- include "oai-nr-dlschsim.labels" . | nindent 4 }} -spec: - type: {{ .Values.service.type }} -{{- if contains "ClusterIP" .Values.service.type }} - clusterIP: None -{{- end }} - ports: - - name: oai-nr-dlschsim - # Port accessible outside cluster - port: {{ .Values.service.port }} - # Port to forward to inside the pod - targetPort: {{ .Values.service.Port }} - protocol: TCP - selector: - {{- include "oai-nr-dlschsim.selectorLabels" . | nindent 4 }} diff --git a/charts/physims/charts/nr-dlschsim/values.yaml b/charts/physims/charts/nr-dlschsim/values.yaml index cb32095f76..a75437a0d6 100644 --- a/charts/physims/charts/nr-dlschsim/values.yaml +++ b/charts/physims/charts/nr-dlschsim/values.yaml @@ -27,19 +27,7 @@ podSecurityContext: runAsGroup: 0 securityContext: - privileged: true - capabilities: - add: - - SYS_CAP_PTRACE - # drop: - # - ALL - # readOnlyRootFilesystem: true - # runAsNonRoot: true - # runAsUser: 1000 - -service: - type: ClusterIP - port: 80 + privileged: false resources: {} # We usually recommend not to specify default resources and to leave this as a conscious diff --git a/charts/physims/charts/nr-dlsim.basic/templates/NOTES.txt b/charts/physims/charts/nr-dlsim.basic/templates/NOTES.txt deleted file mode 100644 index c8a7bbfd1b..0000000000 --- a/charts/physims/charts/nr-dlsim.basic/templates/NOTES.txt +++ /dev/null @@ -1,15 +0,0 @@ -1. Get the application URL by running these commands: -{{- if contains "NodePort" .Values.service.type }} - export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "oai-nr-dlsim-basic.fullname" . }}) - export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") - echo http://$NODE_IP:$NODE_PORT -{{- else if contains "LoadBalancer" .Values.service.type }} - NOTE: It may take a few minutes for the LoadBalancer IP to be available. - You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "oai-nr-dlsim-basic.fullname" . }}' - export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "oai-nr-dlsim-basic.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - echo http://$SERVICE_IP:{{ .Values.service.port }} -{{- else if contains "ClusterIP" .Values.service.type }} - export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "oai-nr-dlsim-basic.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") - echo "Visit http://127.0.0.1:8080 to use your application" - kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:80 -{{- end }} diff --git a/charts/physims/charts/nr-dlsim.basic/templates/deployment.yaml b/charts/physims/charts/nr-dlsim.basic/templates/job.yaml similarity index 70% rename from charts/physims/charts/nr-dlsim.basic/templates/deployment.yaml rename to charts/physims/charts/nr-dlsim.basic/templates/job.yaml index 72ae0406d0..46dbbff0fa 100644 --- a/charts/physims/charts/nr-dlsim.basic/templates/deployment.yaml +++ b/charts/physims/charts/nr-dlsim.basic/templates/job.yaml @@ -1,20 +1,12 @@ -apiVersion: apps/v1 -kind: Deployment +apiVersion: batch/v1 +kind: Job metadata: name: {{ .Chart.Name }} - labels: - {{- include "oai-nr-dlsim-basic.labels" . | nindent 4 }} spec: - replicas: {{ .Values.replicaCount }} - selector: - matchLabels: - {{- include "oai-nr-dlsim-basic.selectorLabels" . | nindent 6 }} - strategy: - type: Recreate template: metadata: labels: - {{- include "oai-nr-dlsim-basic.selectorLabels" . | nindent 8 }} + app: physim spec: securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} @@ -28,8 +20,6 @@ spec: imagePullPolicy: {{ .Values.image.pullPolicy }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} - ports: - - containerPort: 80 env: - name: OPENAIR_DIR value: /opt/oai-physim @@ -39,7 +29,9 @@ spec: cmake_targets/autotests/run_exec_autotests.bash -g "nr_dlsim.basic" -d bin/ && echo "FINISHED" && sleep infinity dnsPolicy: ClusterFirst - restartPolicy: Always + restartPolicy: Never schedulerName: default-scheduler serviceAccountName: {{ .Values.global.serviceAccountName }} terminationGracePeriodSeconds: 30 + nodeSelector: + {{- toYaml .Values.global.nodeSelector | nindent 12 }} \ No newline at end of file diff --git a/charts/physims/charts/nr-dlsim.basic/templates/service.yaml b/charts/physims/charts/nr-dlsim.basic/templates/service.yaml deleted file mode 100644 index 5bf3baf772..0000000000 --- a/charts/physims/charts/nr-dlsim.basic/templates/service.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ .Chart.Name }} - labels: - {{- include "oai-nr-dlsim-basic.labels" . | nindent 4 }} -spec: - type: {{ .Values.service.type }} -{{- if contains "ClusterIP" .Values.service.type }} - clusterIP: None -{{- end }} - ports: - - name: oai-nr-dlsim-basic - # Port accessible outside cluster - port: {{ .Values.service.port }} - # Port to forward to inside the pod - targetPort: {{ .Values.service.Port }} - protocol: TCP - selector: - {{- include "oai-nr-dlsim-basic.selectorLabels" . | nindent 4 }} diff --git a/charts/physims/charts/nr-dlsim.basic/values.yaml b/charts/physims/charts/nr-dlsim.basic/values.yaml index 4b9db13d7e..88e5a2caaa 100644 --- a/charts/physims/charts/nr-dlsim.basic/values.yaml +++ b/charts/physims/charts/nr-dlsim.basic/values.yaml @@ -27,19 +27,7 @@ podSecurityContext: runAsGroup: 0 securityContext: - privileged: true - capabilities: - add: - - SYS_CAP_PTRACE - # drop: - # - ALL - # readOnlyRootFilesystem: true - # runAsNonRoot: true - # runAsUser: 1000 - -service: - type: ClusterIP - port: 80 + privileged: false resources: {} # We usually recommend not to specify default resources and to leave this as a conscious diff --git a/charts/physims/charts/nr-dlsim.dmrs+ptrs/templates/NOTES.txt b/charts/physims/charts/nr-dlsim.dmrs+ptrs/templates/NOTES.txt deleted file mode 100644 index 5e8f9ba046..0000000000 --- a/charts/physims/charts/nr-dlsim.dmrs+ptrs/templates/NOTES.txt +++ /dev/null @@ -1,15 +0,0 @@ -1. Get the application URL by running these commands: -{{- if contains "NodePort" .Values.service.type }} - export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "oai-nr-dlsim-dmrs-ptrs.fullname" . }}) - export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") - echo http://$NODE_IP:$NODE_PORT -{{- else if contains "LoadBalancer" .Values.service.type }} - NOTE: It may take a few minutes for the LoadBalancer IP to be available. - You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "oai-nr-dlsim-dmrs-ptrs.fullname" . }}' - export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "oai-nr-dlsim-dmrs-ptrs.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - echo http://$SERVICE_IP:{{ .Values.service.port }} -{{- else if contains "ClusterIP" .Values.service.type }} - export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "oai-nr-dlsim-dmrs-ptrs.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") - echo "Visit http://127.0.0.1:8080 to use your application" - kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:80 -{{- end }} diff --git a/charts/physims/charts/nr-dlsim.dmrs+ptrs/templates/deployment.yaml b/charts/physims/charts/nr-dlsim.dmrs+ptrs/templates/job.yaml similarity index 69% rename from charts/physims/charts/nr-dlsim.dmrs+ptrs/templates/deployment.yaml rename to charts/physims/charts/nr-dlsim.dmrs+ptrs/templates/job.yaml index 847a1e1aee..e319ae7b53 100644 --- a/charts/physims/charts/nr-dlsim.dmrs+ptrs/templates/deployment.yaml +++ b/charts/physims/charts/nr-dlsim.dmrs+ptrs/templates/job.yaml @@ -1,20 +1,12 @@ -apiVersion: apps/v1 -kind: Deployment +apiVersion: batch/v1 +kind: Job metadata: name: {{ .Chart.Name }} - labels: - {{- include "oai-nr-dlsim-dmrs-ptrs.labels" . | nindent 4 }} spec: - replicas: {{ .Values.replicaCount }} - selector: - matchLabels: - {{- include "oai-nr-dlsim-dmrs-ptrs.selectorLabels" . | nindent 6 }} - strategy: - type: Recreate template: metadata: labels: - {{- include "oai-nr-dlsim-dmrs-ptrs.selectorLabels" . | nindent 8 }} + app: physim spec: securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} @@ -28,8 +20,6 @@ spec: imagePullPolicy: {{ .Values.image.pullPolicy }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} - ports: - - containerPort: 80 env: - name: OPENAIR_DIR value: /opt/oai-physim @@ -39,7 +29,9 @@ spec: cmake_targets/autotests/run_exec_autotests.bash -g "nr_dlsim.dmrs+ptrs" -d bin/ && echo "FINISHED" && sleep infinity dnsPolicy: ClusterFirst - restartPolicy: Always + restartPolicy: Never schedulerName: default-scheduler serviceAccountName: {{ .Values.global.serviceAccountName }} terminationGracePeriodSeconds: 30 + nodeSelector: + {{- toYaml .Values.global.nodeSelector | nindent 12 }} \ No newline at end of file diff --git a/charts/physims/charts/nr-dlsim.dmrs+ptrs/templates/service.yaml b/charts/physims/charts/nr-dlsim.dmrs+ptrs/templates/service.yaml deleted file mode 100644 index b2c3a43b55..0000000000 --- a/charts/physims/charts/nr-dlsim.dmrs+ptrs/templates/service.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ .Chart.Name }} - labels: - {{- include "oai-nr-dlsim-dmrs-ptrs.labels" . | nindent 4 }} -spec: - type: {{ .Values.service.type }} -{{- if contains "ClusterIP" .Values.service.type }} - clusterIP: None -{{- end }} - ports: - - name: oai-nr-dlsim-dmrs-ptrs - # Port accessible outside cluster - port: {{ .Values.service.port }} - # Port to forward to inside the pod - targetPort: {{ .Values.service.Port }} - protocol: TCP - selector: - {{- include "oai-nr-dlsim-dmrs-ptrs.selectorLabels" . | nindent 4 }} diff --git a/charts/physims/charts/nr-dlsim.dmrs+ptrs/values.yaml b/charts/physims/charts/nr-dlsim.dmrs+ptrs/values.yaml index 8c1814f19d..357e6c2861 100644 --- a/charts/physims/charts/nr-dlsim.dmrs+ptrs/values.yaml +++ b/charts/physims/charts/nr-dlsim.dmrs+ptrs/values.yaml @@ -27,19 +27,7 @@ podSecurityContext: runAsGroup: 0 securityContext: - privileged: true - capabilities: - add: - - SYS_CAP_PTRACE - # drop: - # - ALL - # readOnlyRootFilesystem: true - # runAsNonRoot: true - # runAsUser: 1000 - -service: - type: ClusterIP - port: 80 + privileged: false resources: {} # We usually recommend not to specify default resources and to leave this as a conscious diff --git a/charts/physims/charts/nr-dlsim.mcs+mimo/templates/NOTES.txt b/charts/physims/charts/nr-dlsim.mcs+mimo/templates/NOTES.txt deleted file mode 100644 index 34e88d2136..0000000000 --- a/charts/physims/charts/nr-dlsim.mcs+mimo/templates/NOTES.txt +++ /dev/null @@ -1,15 +0,0 @@ -1. Get the application URL by running these commands: -{{- if contains "NodePort" .Values.service.type }} - export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "oai-nr-dlsim-mcs-mimo.fullname" . }}) - export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") - echo http://$NODE_IP:$NODE_PORT -{{- else if contains "LoadBalancer" .Values.service.type }} - NOTE: It may take a few minutes for the LoadBalancer IP to be available. - You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "oai-nr-dlsim-mcs-mimo.fullname" . }}' - export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "oai-nr-dlsim-mcs-mimo.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - echo http://$SERVICE_IP:{{ .Values.service.port }} -{{- else if contains "ClusterIP" .Values.service.type }} - export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "oai-nr-dlsim-mcs-mimo.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") - echo "Visit http://127.0.0.1:8080 to use your application" - kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:80 -{{- end }} diff --git a/charts/physims/charts/nr-dlsim.mcs+mimo/templates/deployment.yaml b/charts/physims/charts/nr-dlsim.mcs+mimo/templates/job.yaml similarity index 70% rename from charts/physims/charts/nr-dlsim.mcs+mimo/templates/deployment.yaml rename to charts/physims/charts/nr-dlsim.mcs+mimo/templates/job.yaml index c79eaf01a2..0649dc67b3 100644 --- a/charts/physims/charts/nr-dlsim.mcs+mimo/templates/deployment.yaml +++ b/charts/physims/charts/nr-dlsim.mcs+mimo/templates/job.yaml @@ -1,20 +1,12 @@ -apiVersion: apps/v1 -kind: Deployment +apiVersion: batch/v1 +kind: Job metadata: name: {{ .Chart.Name }} - labels: - {{- include "oai-nr-dlsim-mcs-mimo.labels" . | nindent 4 }} spec: - replicas: {{ .Values.replicaCount }} - selector: - matchLabels: - {{- include "oai-nr-dlsim-mcs-mimo.selectorLabels" . | nindent 6 }} - strategy: - type: Recreate template: metadata: labels: - {{- include "oai-nr-dlsim-mcs-mimo.selectorLabels" . | nindent 8 }} + app: physim spec: securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} @@ -28,8 +20,6 @@ spec: imagePullPolicy: {{ .Values.image.pullPolicy }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} - ports: - - containerPort: 80 env: - name: OPENAIR_DIR value: /opt/oai-physim @@ -39,7 +29,9 @@ spec: cmake_targets/autotests/run_exec_autotests.bash -g "nr_dlsim.mcs+mimo" -d bin/ && echo "FINISHED" && sleep infinity dnsPolicy: ClusterFirst - restartPolicy: Always + restartPolicy: Never schedulerName: default-scheduler serviceAccountName: {{ .Values.global.serviceAccountName }} terminationGracePeriodSeconds: 30 + nodeSelector: + {{- toYaml .Values.global.nodeSelector | nindent 12 }} \ No newline at end of file diff --git a/charts/physims/charts/nr-dlsim.mcs+mimo/templates/service.yaml b/charts/physims/charts/nr-dlsim.mcs+mimo/templates/service.yaml deleted file mode 100644 index c1552fc314..0000000000 --- a/charts/physims/charts/nr-dlsim.mcs+mimo/templates/service.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ .Chart.Name }} - labels: - {{- include "oai-nr-dlsim-mcs-mimo.labels" . | nindent 4 }} -spec: - type: {{ .Values.service.type }} -{{- if contains "ClusterIP" .Values.service.type }} - clusterIP: None -{{- end }} - ports: - - name: oai-nr-dlsim-mcs-mimo - # Port accessible outside cluster - port: {{ .Values.service.port }} - # Port to forward to inside the pod - targetPort: {{ .Values.service.Port }} - protocol: TCP - selector: - {{- include "oai-nr-dlsim-mcs-mimo.selectorLabels" . | nindent 4 }} diff --git a/charts/physims/charts/nr-dlsim.mcs+mimo/values.yaml b/charts/physims/charts/nr-dlsim.mcs+mimo/values.yaml index 5bb48ad15d..5ef75a1672 100644 --- a/charts/physims/charts/nr-dlsim.mcs+mimo/values.yaml +++ b/charts/physims/charts/nr-dlsim.mcs+mimo/values.yaml @@ -27,19 +27,7 @@ podSecurityContext: runAsGroup: 0 securityContext: - privileged: true - capabilities: - add: - - SYS_CAP_PTRACE - # drop: - # - ALL - # readOnlyRootFilesystem: true - # runAsNonRoot: true - # runAsUser: 1000 - -service: - type: ClusterIP - port: 80 + privileged: false resources: {} # We usually recommend not to specify default resources and to leave this as a conscious diff --git a/charts/physims/charts/nr-dlsim.offset/templates/NOTES.txt b/charts/physims/charts/nr-dlsim.offset/templates/NOTES.txt deleted file mode 100644 index 9a7d8f6013..0000000000 --- a/charts/physims/charts/nr-dlsim.offset/templates/NOTES.txt +++ /dev/null @@ -1,15 +0,0 @@ -1. Get the application URL by running these commands: -{{- if contains "NodePort" .Values.service.type }} - export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "oai-nr-dlsim-offset.fullname" . }}) - export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") - echo http://$NODE_IP:$NODE_PORT -{{- else if contains "LoadBalancer" .Values.service.type }} - NOTE: It may take a few minutes for the LoadBalancer IP to be available. - You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "oai-nr-dlsim-offset.fullname" . }}' - export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "oai-nr-dlsim-offset.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - echo http://$SERVICE_IP:{{ .Values.service.port }} -{{- else if contains "ClusterIP" .Values.service.type }} - export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "oai-nr-dlsim-offset.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") - echo "Visit http://127.0.0.1:8080 to use your application" - kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:80 -{{- end }} diff --git a/charts/physims/charts/nr-dlsim.offset/templates/deployment.yaml b/charts/physims/charts/nr-dlsim.offset/templates/job.yaml similarity index 70% rename from charts/physims/charts/nr-dlsim.offset/templates/deployment.yaml rename to charts/physims/charts/nr-dlsim.offset/templates/job.yaml index b952654c93..5a88c43ec2 100644 --- a/charts/physims/charts/nr-dlsim.offset/templates/deployment.yaml +++ b/charts/physims/charts/nr-dlsim.offset/templates/job.yaml @@ -1,20 +1,12 @@ -apiVersion: apps/v1 -kind: Deployment +apiVersion: batch/v1 +kind: Job metadata: name: {{ .Chart.Name }} - labels: - {{- include "oai-nr-dlsim-offset.labels" . | nindent 4 }} spec: - replicas: {{ .Values.replicaCount }} - selector: - matchLabels: - {{- include "oai-nr-dlsim-offset.selectorLabels" . | nindent 6 }} - strategy: - type: Recreate template: metadata: labels: - {{- include "oai-nr-dlsim-offset.selectorLabels" . | nindent 8 }} + app: physim spec: securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} @@ -28,8 +20,6 @@ spec: imagePullPolicy: {{ .Values.image.pullPolicy }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} - ports: - - containerPort: 80 env: - name: OPENAIR_DIR value: /opt/oai-physim @@ -39,7 +29,9 @@ spec: cmake_targets/autotests/run_exec_autotests.bash -g "nr_dlsim.offset" -d bin/ && echo "FINISHED" && sleep infinity dnsPolicy: ClusterFirst - restartPolicy: Always + restartPolicy: Never schedulerName: default-scheduler serviceAccountName: {{ .Values.global.serviceAccountName }} terminationGracePeriodSeconds: 30 + nodeSelector: + {{- toYaml .Values.global.nodeSelector | nindent 12 }} \ No newline at end of file diff --git a/charts/physims/charts/nr-dlsim.offset/templates/service.yaml b/charts/physims/charts/nr-dlsim.offset/templates/service.yaml deleted file mode 100644 index dfcbc675a9..0000000000 --- a/charts/physims/charts/nr-dlsim.offset/templates/service.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ .Chart.Name }} - labels: - {{- include "oai-nr-dlsim-offset.labels" . | nindent 4 }} -spec: - type: {{ .Values.service.type }} -{{- if contains "ClusterIP" .Values.service.type }} - clusterIP: None -{{- end }} - ports: - - name: oai-nr-dlsim-offset - # Port accessible outside cluster - port: {{ .Values.service.port }} - # Port to forward to inside the pod - targetPort: {{ .Values.service.Port }} - protocol: TCP - selector: - {{- include "oai-nr-dlsim-offset.selectorLabels" . | nindent 4 }} diff --git a/charts/physims/charts/nr-dlsim.offset/values.yaml b/charts/physims/charts/nr-dlsim.offset/values.yaml index 40c1a94efe..efef89ce4a 100644 --- a/charts/physims/charts/nr-dlsim.offset/values.yaml +++ b/charts/physims/charts/nr-dlsim.offset/values.yaml @@ -27,19 +27,7 @@ podSecurityContext: runAsGroup: 0 securityContext: - privileged: true - capabilities: - add: - - SYS_CAP_PTRACE - # drop: - # - ALL - # readOnlyRootFilesystem: true - # runAsNonRoot: true - # runAsUser: 1000 - -service: - type: ClusterIP - port: 80 + privileged: false resources: {} # We usually recommend not to specify default resources and to leave this as a conscious diff --git a/charts/physims/charts/nr-pbchsim.106rb/templates/NOTES.txt b/charts/physims/charts/nr-pbchsim.106rb/templates/NOTES.txt deleted file mode 100644 index 2e0d2ef627..0000000000 --- a/charts/physims/charts/nr-pbchsim.106rb/templates/NOTES.txt +++ /dev/null @@ -1,15 +0,0 @@ -1. Get the application URL by running these commands: -{{- if contains "NodePort" .Values.service.type }} - export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "oai-nr-pbchsim-106rb.fullname" . }}) - export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") - echo http://$NODE_IP:$NODE_PORT -{{- else if contains "LoadBalancer" .Values.service.type }} - NOTE: It may take a few minutes for the LoadBalancer IP to be available. - You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "oai-nr-pbchsim-106rb.fullname" . }}' - export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "oai-nr-pbchsim-106rb.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - echo http://$SERVICE_IP:{{ .Values.service.port }} -{{- else if contains "ClusterIP" .Values.service.type }} - export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "oai-nr-pbchsim-106rb.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") - echo "Visit http://127.0.0.1:8080 to use your application" - kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:80 -{{- end }} diff --git a/charts/physims/charts/nr-pbchsim.106rb/templates/deployment.yaml b/charts/physims/charts/nr-pbchsim.106rb/templates/job.yaml similarity index 70% rename from charts/physims/charts/nr-pbchsim.106rb/templates/deployment.yaml rename to charts/physims/charts/nr-pbchsim.106rb/templates/job.yaml index ed0f8f1570..1af0be82e5 100644 --- a/charts/physims/charts/nr-pbchsim.106rb/templates/deployment.yaml +++ b/charts/physims/charts/nr-pbchsim.106rb/templates/job.yaml @@ -1,20 +1,12 @@ -apiVersion: apps/v1 -kind: Deployment +apiVersion: batch/v1 +kind: Job metadata: name: {{ .Chart.Name }} - labels: - {{- include "oai-nr-pbchsim-106rb.labels" . | nindent 4 }} spec: - replicas: {{ .Values.replicaCount }} - selector: - matchLabels: - {{- include "oai-nr-pbchsim-106rb.selectorLabels" . | nindent 6 }} - strategy: - type: Recreate template: metadata: labels: - {{- include "oai-nr-pbchsim-106rb.selectorLabels" . | nindent 8 }} + app: physim spec: securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} @@ -28,8 +20,6 @@ spec: imagePullPolicy: {{ .Values.image.pullPolicy }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} - ports: - - containerPort: 80 env: - name: OPENAIR_DIR value: /opt/oai-physim @@ -39,7 +29,9 @@ spec: cmake_targets/autotests/run_exec_autotests.bash -g "nr_pbchsim.106rb" -d bin/ && echo "FINISHED" && sleep infinity dnsPolicy: ClusterFirst - restartPolicy: Always + restartPolicy: Never schedulerName: default-scheduler serviceAccountName: {{ .Values.global.serviceAccountName }} terminationGracePeriodSeconds: 30 + nodeSelector: + {{- toYaml .Values.global.nodeSelector | nindent 12 }} \ No newline at end of file diff --git a/charts/physims/charts/nr-pbchsim.106rb/templates/service.yaml b/charts/physims/charts/nr-pbchsim.106rb/templates/service.yaml deleted file mode 100644 index da62687827..0000000000 --- a/charts/physims/charts/nr-pbchsim.106rb/templates/service.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ .Chart.Name }} - labels: - {{- include "oai-nr-pbchsim-106rb.labels" . | nindent 4 }} -spec: - type: {{ .Values.service.type }} -{{- if contains "ClusterIP" .Values.service.type }} - clusterIP: None -{{- end }} - ports: - - name: oai-nr-pbchsim-106rb - # Port accessible outside cluster - port: {{ .Values.service.port }} - # Port to forward to inside the pod - targetPort: {{ .Values.service.Port }} - protocol: TCP - selector: - {{- include "oai-nr-pbchsim-106rb.selectorLabels" . | nindent 4 }} diff --git a/charts/physims/charts/nr-pbchsim.106rb/values.yaml b/charts/physims/charts/nr-pbchsim.106rb/values.yaml index 5632762245..8f8104146a 100644 --- a/charts/physims/charts/nr-pbchsim.106rb/values.yaml +++ b/charts/physims/charts/nr-pbchsim.106rb/values.yaml @@ -27,19 +27,7 @@ podSecurityContext: runAsGroup: 0 securityContext: - privileged: true - capabilities: - add: - - SYS_CAP_PTRACE - # drop: - # - ALL - # readOnlyRootFilesystem: true - # runAsNonRoot: true - # runAsUser: 1000 - -service: - type: ClusterIP - port: 80 + privileged: false resources: {} # We usually recommend not to specify default resources and to leave this as a conscious diff --git a/charts/physims/charts/nr-pbchsim.217rb/templates/NOTES.txt b/charts/physims/charts/nr-pbchsim.217rb/templates/NOTES.txt deleted file mode 100644 index 3e9e91db9b..0000000000 --- a/charts/physims/charts/nr-pbchsim.217rb/templates/NOTES.txt +++ /dev/null @@ -1,15 +0,0 @@ -1. Get the application URL by running these commands: -{{- if contains "NodePort" .Values.service.type }} - export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "oai-nr-pbchsim-217rb.fullname" . }}) - export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") - echo http://$NODE_IP:$NODE_PORT -{{- else if contains "LoadBalancer" .Values.service.type }} - NOTE: It may take a few minutes for the LoadBalancer IP to be available. - You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "oai-nr-pbchsim-217rb.fullname" . }}' - export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "oai-nr-pbchsim-217rb.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - echo http://$SERVICE_IP:{{ .Values.service.port }} -{{- else if contains "ClusterIP" .Values.service.type }} - export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "oai-nr-pbchsim-217rb.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") - echo "Visit http://127.0.0.1:8080 to use your application" - kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:80 -{{- end }} diff --git a/charts/physims/charts/nr-pbchsim.217rb/templates/deployment.yaml b/charts/physims/charts/nr-pbchsim.217rb/templates/job.yaml similarity index 70% rename from charts/physims/charts/nr-pbchsim.217rb/templates/deployment.yaml rename to charts/physims/charts/nr-pbchsim.217rb/templates/job.yaml index 513443deaa..cad15d1491 100644 --- a/charts/physims/charts/nr-pbchsim.217rb/templates/deployment.yaml +++ b/charts/physims/charts/nr-pbchsim.217rb/templates/job.yaml @@ -1,20 +1,12 @@ -apiVersion: apps/v1 -kind: Deployment +apiVersion: batch/v1 +kind: Job metadata: name: {{ .Chart.Name }} - labels: - {{- include "oai-nr-pbchsim-217rb.labels" . | nindent 4 }} spec: - replicas: {{ .Values.replicaCount }} - selector: - matchLabels: - {{- include "oai-nr-pbchsim-217rb.selectorLabels" . | nindent 6 }} - strategy: - type: Recreate template: metadata: labels: - {{- include "oai-nr-pbchsim-217rb.selectorLabels" . | nindent 8 }} + app: physim spec: securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} @@ -28,8 +20,6 @@ spec: imagePullPolicy: {{ .Values.image.pullPolicy }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} - ports: - - containerPort: 80 env: - name: OPENAIR_DIR value: /opt/oai-physim @@ -39,7 +29,9 @@ spec: cmake_targets/autotests/run_exec_autotests.bash -g "nr_pbchsim.217rb" -d bin/ && echo "FINISHED" && sleep infinity dnsPolicy: ClusterFirst - restartPolicy: Always + restartPolicy: Never schedulerName: default-scheduler serviceAccountName: {{ .Values.global.serviceAccountName }} terminationGracePeriodSeconds: 30 + nodeSelector: + {{- toYaml .Values.global.nodeSelector | nindent 12 }} \ No newline at end of file diff --git a/charts/physims/charts/nr-pbchsim.217rb/templates/service.yaml b/charts/physims/charts/nr-pbchsim.217rb/templates/service.yaml deleted file mode 100644 index 696c889d15..0000000000 --- a/charts/physims/charts/nr-pbchsim.217rb/templates/service.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ .Chart.Name }} - labels: - {{- include "oai-nr-pbchsim-217rb.labels" . | nindent 4 }} -spec: - type: {{ .Values.service.type }} -{{- if contains "ClusterIP" .Values.service.type }} - clusterIP: None -{{- end }} - ports: - - name: oai-nr-pbchsim-217rb - # Port accessible outside cluster - port: {{ .Values.service.port }} - # Port to forward to inside the pod - targetPort: {{ .Values.service.Port }} - protocol: TCP - selector: - {{- include "oai-nr-pbchsim-217rb.selectorLabels" . | nindent 4 }} diff --git a/charts/physims/charts/nr-pbchsim.217rb/values.yaml b/charts/physims/charts/nr-pbchsim.217rb/values.yaml index 7b44b982de..96b3f860df 100644 --- a/charts/physims/charts/nr-pbchsim.217rb/values.yaml +++ b/charts/physims/charts/nr-pbchsim.217rb/values.yaml @@ -27,19 +27,7 @@ podSecurityContext: runAsGroup: 0 securityContext: - privileged: true - capabilities: - add: - - SYS_CAP_PTRACE - # drop: - # - ALL - # readOnlyRootFilesystem: true - # runAsNonRoot: true - # runAsUser: 1000 - -service: - type: ClusterIP - port: 80 + privileged: false resources: {} # We usually recommend not to specify default resources and to leave this as a conscious diff --git a/charts/physims/charts/nr-pbchsim.273rb/templates/NOTES.txt b/charts/physims/charts/nr-pbchsim.273rb/templates/NOTES.txt deleted file mode 100644 index 999186deb2..0000000000 --- a/charts/physims/charts/nr-pbchsim.273rb/templates/NOTES.txt +++ /dev/null @@ -1,15 +0,0 @@ -1. Get the application URL by running these commands: -{{- if contains "NodePort" .Values.service.type }} - export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "oai-nr-pbchsim-273rb.fullname" . }}) - export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") - echo http://$NODE_IP:$NODE_PORT -{{- else if contains "LoadBalancer" .Values.service.type }} - NOTE: It may take a few minutes for the LoadBalancer IP to be available. - You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "oai-nr-pbchsim-273rb.fullname" . }}' - export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "oai-nr-pbchsim-273rb.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - echo http://$SERVICE_IP:{{ .Values.service.port }} -{{- else if contains "ClusterIP" .Values.service.type }} - export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "oai-nr-pbchsim-273rb.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") - echo "Visit http://127.0.0.1:8080 to use your application" - kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:80 -{{- end }} diff --git a/charts/physims/charts/nr-pbchsim.273rb/templates/deployment.yaml b/charts/physims/charts/nr-pbchsim.273rb/templates/job.yaml similarity index 70% rename from charts/physims/charts/nr-pbchsim.273rb/templates/deployment.yaml rename to charts/physims/charts/nr-pbchsim.273rb/templates/job.yaml index 512e212c07..65be9e4caa 100644 --- a/charts/physims/charts/nr-pbchsim.273rb/templates/deployment.yaml +++ b/charts/physims/charts/nr-pbchsim.273rb/templates/job.yaml @@ -1,20 +1,12 @@ -apiVersion: apps/v1 -kind: Deployment +apiVersion: batch/v1 +kind: Job metadata: name: {{ .Chart.Name }} - labels: - {{- include "oai-nr-pbchsim-273rb.labels" . | nindent 4 }} spec: - replicas: {{ .Values.replicaCount }} - selector: - matchLabels: - {{- include "oai-nr-pbchsim-273rb.selectorLabels" . | nindent 6 }} - strategy: - type: Recreate template: metadata: labels: - {{- include "oai-nr-pbchsim-273rb.selectorLabels" . | nindent 8 }} + app: physim spec: securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} @@ -28,8 +20,6 @@ spec: imagePullPolicy: {{ .Values.image.pullPolicy }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} - ports: - - containerPort: 80 env: - name: OPENAIR_DIR value: /opt/oai-physim @@ -39,7 +29,9 @@ spec: cmake_targets/autotests/run_exec_autotests.bash -g "nr_pbchsim.273rb" -d bin/ && echo "FINISHED" && sleep infinity dnsPolicy: ClusterFirst - restartPolicy: Always + restartPolicy: Never schedulerName: default-scheduler serviceAccountName: {{ .Values.global.serviceAccountName }} terminationGracePeriodSeconds: 30 + nodeSelector: + {{- toYaml .Values.global.nodeSelector | nindent 12 }} \ No newline at end of file diff --git a/charts/physims/charts/nr-pbchsim.273rb/templates/service.yaml b/charts/physims/charts/nr-pbchsim.273rb/templates/service.yaml deleted file mode 100644 index 4106d1a12f..0000000000 --- a/charts/physims/charts/nr-pbchsim.273rb/templates/service.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ .Chart.Name }} - labels: - {{- include "oai-nr-pbchsim-273rb.labels" . | nindent 4 }} -spec: - type: {{ .Values.service.type }} -{{- if contains "ClusterIP" .Values.service.type }} - clusterIP: None -{{- end }} - ports: - - name: oai-nr-pbchsim-273rb - # Port accessible outside cluster - port: {{ .Values.service.port }} - # Port to forward to inside the pod - targetPort: {{ .Values.service.Port }} - protocol: TCP - selector: - {{- include "oai-nr-pbchsim-273rb.selectorLabels" . | nindent 4 }} diff --git a/charts/physims/charts/nr-pbchsim.273rb/values.yaml b/charts/physims/charts/nr-pbchsim.273rb/values.yaml index 9cb5f6ebb5..36b62e0146 100644 --- a/charts/physims/charts/nr-pbchsim.273rb/values.yaml +++ b/charts/physims/charts/nr-pbchsim.273rb/values.yaml @@ -27,19 +27,7 @@ podSecurityContext: runAsGroup: 0 securityContext: - privileged: true - capabilities: - add: - - SYS_CAP_PTRACE - # drop: - # - ALL - # readOnlyRootFilesystem: true - # runAsNonRoot: true - # runAsUser: 1000 - -service: - type: ClusterIP - port: 80 + privileged: false resources: {} # We usually recommend not to specify default resources and to leave this as a conscious diff --git a/charts/physims/charts/nr-prachsim/templates/NOTES.txt b/charts/physims/charts/nr-prachsim/templates/NOTES.txt deleted file mode 100644 index 376694e7e4..0000000000 --- a/charts/physims/charts/nr-prachsim/templates/NOTES.txt +++ /dev/null @@ -1,15 +0,0 @@ -1. Get the application URL by running these commands: -{{- if contains "NodePort" .Values.service.type }} - export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "oai-nr-prachsim.fullname" . }}) - export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") - echo http://$NODE_IP:$NODE_PORT -{{- else if contains "LoadBalancer" .Values.service.type }} - NOTE: It may take a few minutes for the LoadBalancer IP to be available. - You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "oai-nr-prachsim.fullname" . }}' - export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "oai-nr-prachsim.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - echo http://$SERVICE_IP:{{ .Values.service.port }} -{{- else if contains "ClusterIP" .Values.service.type }} - export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "oai-nr-prachsim.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") - echo "Visit http://127.0.0.1:8080 to use your application" - kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:80 -{{- end }} diff --git a/charts/physims/charts/nr-prachsim/templates/deployment.yaml b/charts/physims/charts/nr-prachsim/templates/job.yaml similarity index 69% rename from charts/physims/charts/nr-prachsim/templates/deployment.yaml rename to charts/physims/charts/nr-prachsim/templates/job.yaml index 6bea044b86..872729550a 100644 --- a/charts/physims/charts/nr-prachsim/templates/deployment.yaml +++ b/charts/physims/charts/nr-prachsim/templates/job.yaml @@ -1,20 +1,12 @@ -apiVersion: apps/v1 -kind: Deployment +apiVersion: batch/v1 +kind: Job metadata: name: {{ .Chart.Name }} - labels: - {{- include "oai-nr-prachsim.labels" . | nindent 4 }} spec: - replicas: {{ .Values.replicaCount }} - selector: - matchLabels: - {{- include "oai-nr-prachsim.selectorLabels" . | nindent 6 }} - strategy: - type: Recreate template: metadata: labels: - {{- include "oai-nr-prachsim.selectorLabels" . | nindent 8 }} + app: physim spec: securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} @@ -28,18 +20,18 @@ spec: imagePullPolicy: {{ .Values.image.pullPolicy }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} - ports: - - containerPort: 80 env: - name: OPENAIR_DIR value: /opt/oai-physim command: ["/bin/sh", "-c"] args: - - > + - > cmake_targets/autotests/run_exec_autotests.bash -g "nr_prachsim" -d bin/ && echo "FINISHED" && sleep infinity dnsPolicy: ClusterFirst - restartPolicy: Always + restartPolicy: Never schedulerName: default-scheduler serviceAccountName: {{ .Values.global.serviceAccountName }} terminationGracePeriodSeconds: 30 + nodeSelector: + {{- toYaml .Values.global.nodeSelector | nindent 12 }} \ No newline at end of file diff --git a/charts/physims/charts/nr-prachsim/templates/service.yaml b/charts/physims/charts/nr-prachsim/templates/service.yaml deleted file mode 100644 index 71bfe7b9fe..0000000000 --- a/charts/physims/charts/nr-prachsim/templates/service.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ .Chart.Name }} - labels: - {{- include "oai-nr-prachsim.labels" . | nindent 4 }} -spec: - type: {{ .Values.service.type }} -{{- if contains "ClusterIP" .Values.service.type }} - clusterIP: None -{{- end }} - ports: - - name: oai-nr-prachsim - # Port accessible outside cluster - port: {{ .Values.service.port }} - # Port to forward to inside the pod - targetPort: {{ .Values.service.Port }} - protocol: TCP - selector: - {{- include "oai-nr-prachsim.selectorLabels" . | nindent 4 }} diff --git a/charts/physims/charts/nr-prachsim/values.yaml b/charts/physims/charts/nr-prachsim/values.yaml index 93789de637..8404ea4192 100644 --- a/charts/physims/charts/nr-prachsim/values.yaml +++ b/charts/physims/charts/nr-prachsim/values.yaml @@ -27,19 +27,7 @@ podSecurityContext: runAsGroup: 0 securityContext: - privileged: true - capabilities: - add: - - SYS_CAP_PTRACE - # drop: - # - ALL - # readOnlyRootFilesystem: true - # runAsNonRoot: true - # runAsUser: 1000 - -service: - type: ClusterIP - port: 80 + privileged: false resources: {} # We usually recommend not to specify default resources and to leave this as a conscious diff --git a/charts/physims/charts/nr-pucchsim/templates/NOTES.txt b/charts/physims/charts/nr-pucchsim/templates/NOTES.txt deleted file mode 100644 index 7c2cfa9155..0000000000 --- a/charts/physims/charts/nr-pucchsim/templates/NOTES.txt +++ /dev/null @@ -1,15 +0,0 @@ -1. Get the application URL by running these commands: -{{- if contains "NodePort" .Values.service.type }} - export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "oai-nr-pucchsim.fullname" . }}) - export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") - echo http://$NODE_IP:$NODE_PORT -{{- else if contains "LoadBalancer" .Values.service.type }} - NOTE: It may take a few minutes for the LoadBalancer IP to be available. - You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "oai-nr-pucchsim.fullname" . }}' - export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "oai-nr-pucchsim.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - echo http://$SERVICE_IP:{{ .Values.service.port }} -{{- else if contains "ClusterIP" .Values.service.type }} - export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "oai-nr-pucchsim.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") - echo "Visit http://127.0.0.1:8080 to use your application" - kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:80 -{{- end }} diff --git a/charts/physims/charts/nr-pucchsim/templates/deployment.yaml b/charts/physims/charts/nr-pucchsim/templates/job.yaml similarity index 69% rename from charts/physims/charts/nr-pucchsim/templates/deployment.yaml rename to charts/physims/charts/nr-pucchsim/templates/job.yaml index fce72ebc35..a845215eeb 100644 --- a/charts/physims/charts/nr-pucchsim/templates/deployment.yaml +++ b/charts/physims/charts/nr-pucchsim/templates/job.yaml @@ -1,20 +1,12 @@ -apiVersion: apps/v1 -kind: Deployment +apiVersion: batch/v1 +kind: Job metadata: name: {{ .Chart.Name }} - labels: - {{- include "oai-nr-pucchsim.labels" . | nindent 4 }} spec: - replicas: {{ .Values.replicaCount }} - selector: - matchLabels: - {{- include "oai-nr-pucchsim.selectorLabels" . | nindent 6 }} - strategy: - type: Recreate template: metadata: labels: - {{- include "oai-nr-pucchsim.selectorLabels" . | nindent 8 }} + app: physim spec: securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} @@ -28,18 +20,18 @@ spec: imagePullPolicy: {{ .Values.image.pullPolicy }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} - ports: - - containerPort: 80 env: - name: OPENAIR_DIR value: /opt/oai-physim command: ["/bin/sh", "-c"] args: - - > + - > cmake_targets/autotests/run_exec_autotests.bash -g "nr_pucchsim" -d bin/ && echo "FINISHED" && sleep infinity dnsPolicy: ClusterFirst - restartPolicy: Always + restartPolicy: Never schedulerName: default-scheduler serviceAccountName: {{ .Values.global.serviceAccountName }} terminationGracePeriodSeconds: 30 + nodeSelector: + {{- toYaml .Values.global.nodeSelector | nindent 12 }} \ No newline at end of file diff --git a/charts/physims/charts/nr-pucchsim/templates/service.yaml b/charts/physims/charts/nr-pucchsim/templates/service.yaml deleted file mode 100644 index 9e8760e76b..0000000000 --- a/charts/physims/charts/nr-pucchsim/templates/service.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ .Chart.Name }} - labels: - {{- include "oai-nr-pucchsim.labels" . | nindent 4 }} -spec: - type: {{ .Values.service.type }} -{{- if contains "ClusterIP" .Values.service.type }} - clusterIP: None -{{- end }} - ports: - - name: oai-nr-pucchsim - # Port accessible outside cluster - port: {{ .Values.service.port }} - # Port to forward to inside the pod - targetPort: {{ .Values.service.Port }} - protocol: TCP - selector: - {{- include "oai-nr-pucchsim.selectorLabels" . | nindent 4 }} diff --git a/charts/physims/charts/nr-pucchsim/values.yaml b/charts/physims/charts/nr-pucchsim/values.yaml index d4c869278b..1c2c822088 100644 --- a/charts/physims/charts/nr-pucchsim/values.yaml +++ b/charts/physims/charts/nr-pucchsim/values.yaml @@ -27,15 +27,7 @@ podSecurityContext: runAsGroup: 0 securityContext: - privileged: true - capabilities: - add: - - SYS_CAP_PTRACE - # drop: - # - ALL - # readOnlyRootFilesystem: true - # runAsNonRoot: true - # runAsUser: 1000 + privileged: false service: type: ClusterIP diff --git a/charts/physims/charts/nr-ulschsim/templates/NOTES.txt b/charts/physims/charts/nr-ulschsim/templates/NOTES.txt deleted file mode 100644 index 65566932cd..0000000000 --- a/charts/physims/charts/nr-ulschsim/templates/NOTES.txt +++ /dev/null @@ -1,15 +0,0 @@ -1. Get the application URL by running these commands: -{{- if contains "NodePort" .Values.service.type }} - export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "oai-nr-ulschsim.fullname" . }}) - export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") - echo http://$NODE_IP:$NODE_PORT -{{- else if contains "LoadBalancer" .Values.service.type }} - NOTE: It may take a few minutes for the LoadBalancer IP to be available. - You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "oai-nr-ulschsim.fullname" . }}' - export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "oai-nr-ulschsim.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - echo http://$SERVICE_IP:{{ .Values.service.port }} -{{- else if contains "ClusterIP" .Values.service.type }} - export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "oai-nr-ulschsim.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") - echo "Visit http://127.0.0.1:8080 to use your application" - kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:80 -{{- end }} diff --git a/charts/physims/charts/nr-ulschsim/templates/deployment.yaml b/charts/physims/charts/nr-ulschsim/templates/job.yaml similarity index 69% rename from charts/physims/charts/nr-ulschsim/templates/deployment.yaml rename to charts/physims/charts/nr-ulschsim/templates/job.yaml index d44b2b6463..2916f0fc12 100644 --- a/charts/physims/charts/nr-ulschsim/templates/deployment.yaml +++ b/charts/physims/charts/nr-ulschsim/templates/job.yaml @@ -1,20 +1,12 @@ -apiVersion: apps/v1 -kind: Deployment +apiVersion: batch/v1 +kind: Job metadata: name: {{ .Chart.Name }} - labels: - {{- include "oai-nr-ulschsim.labels" . | nindent 4 }} spec: - replicas: {{ .Values.replicaCount }} - selector: - matchLabels: - {{- include "oai-nr-ulschsim.selectorLabels" . | nindent 6 }} - strategy: - type: Recreate template: metadata: labels: - {{- include "oai-nr-ulschsim.selectorLabels" . | nindent 8 }} + app: physim spec: securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} @@ -28,18 +20,18 @@ spec: imagePullPolicy: {{ .Values.image.pullPolicy }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} - ports: - - containerPort: 80 env: - name: OPENAIR_DIR value: /opt/oai-physim command: ["/bin/sh", "-c"] args: - - > + - > cmake_targets/autotests/run_exec_autotests.bash -g "nr_ulschsim" -d bin/ && echo "FINISHED" && sleep infinity dnsPolicy: ClusterFirst - restartPolicy: Always + restartPolicy: Never schedulerName: default-scheduler serviceAccountName: {{ .Values.global.serviceAccountName }} terminationGracePeriodSeconds: 30 + nodeSelector: + {{- toYaml .Values.global.nodeSelector | nindent 12 }} \ No newline at end of file diff --git a/charts/physims/charts/nr-ulschsim/templates/service.yaml b/charts/physims/charts/nr-ulschsim/templates/service.yaml deleted file mode 100644 index d34882700e..0000000000 --- a/charts/physims/charts/nr-ulschsim/templates/service.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ .Chart.Name }} - labels: - {{- include "oai-nr-ulschsim.labels" . | nindent 4 }} -spec: - type: {{ .Values.service.type }} -{{- if contains "ClusterIP" .Values.service.type }} - clusterIP: None -{{- end }} - ports: - - name: oai-nr-ulschsim - # Port accessible outside cluster - port: {{ .Values.service.port }} - # Port to forward to inside the pod - targetPort: {{ .Values.service.Port }} - protocol: TCP - selector: - {{- include "oai-nr-ulschsim.selectorLabels" . | nindent 4 }} diff --git a/charts/physims/charts/nr-ulschsim/values.yaml b/charts/physims/charts/nr-ulschsim/values.yaml index b0529c818d..770cb43bb1 100644 --- a/charts/physims/charts/nr-ulschsim/values.yaml +++ b/charts/physims/charts/nr-ulschsim/values.yaml @@ -27,19 +27,7 @@ podSecurityContext: runAsGroup: 0 securityContext: - privileged: true - capabilities: - add: - - SYS_CAP_PTRACE - # drop: - # - ALL - # readOnlyRootFilesystem: true - # runAsNonRoot: true - # runAsUser: 1000 - -service: - type: ClusterIP - port: 80 + privileged: false resources: {} # We usually recommend not to specify default resources and to leave this as a conscious diff --git a/charts/physims/charts/nr-ulsim.3gpp/templates/NOTES.txt b/charts/physims/charts/nr-ulsim.3gpp/templates/NOTES.txt deleted file mode 100644 index aea103922e..0000000000 --- a/charts/physims/charts/nr-ulsim.3gpp/templates/NOTES.txt +++ /dev/null @@ -1,15 +0,0 @@ -1. Get the application URL by running these commands: -{{- if contains "NodePort" .Values.service.type }} - export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "oai-nr-ulsim-3gpp.fullname" . }}) - export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") - echo http://$NODE_IP:$NODE_PORT -{{- else if contains "LoadBalancer" .Values.service.type }} - NOTE: It may take a few minutes for the LoadBalancer IP to be available. - You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "oai-nr-ulsim-3gpp.fullname" . }}' - export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "oai-nr-ulsim-3gpp.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - echo http://$SERVICE_IP:{{ .Values.service.port }} -{{- else if contains "ClusterIP" .Values.service.type }} - export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "oai-nr-ulsim-3gpp.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") - echo "Visit http://127.0.0.1:8080 to use your application" - kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:80 -{{- end }} diff --git a/charts/physims/charts/nr-ulsim.3gpp/templates/deployment.yaml b/charts/physims/charts/nr-ulsim.3gpp/templates/job.yaml similarity index 70% rename from charts/physims/charts/nr-ulsim.3gpp/templates/deployment.yaml rename to charts/physims/charts/nr-ulsim.3gpp/templates/job.yaml index 7bf59eed4f..2f8a445589 100644 --- a/charts/physims/charts/nr-ulsim.3gpp/templates/deployment.yaml +++ b/charts/physims/charts/nr-ulsim.3gpp/templates/job.yaml @@ -1,20 +1,12 @@ -apiVersion: apps/v1 -kind: Deployment +apiVersion: batch/v1 +kind: Job metadata: name: {{ .Chart.Name }} - labels: - {{- include "oai-nr-ulsim-3gpp.labels" . | nindent 4 }} spec: - replicas: {{ .Values.replicaCount }} - selector: - matchLabels: - {{- include "oai-nr-ulsim-3gpp.selectorLabels" . | nindent 6 }} - strategy: - type: Recreate template: metadata: labels: - {{- include "oai-nr-ulsim-3gpp.selectorLabels" . | nindent 8 }} + app: physim spec: securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} @@ -28,8 +20,6 @@ spec: imagePullPolicy: {{ .Values.image.pullPolicy }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} - ports: - - containerPort: 80 env: - name: OPENAIR_DIR value: /opt/oai-physim @@ -39,7 +29,9 @@ spec: cmake_targets/autotests/run_exec_autotests.bash -g "nr_ulsim.3gpp" -d bin/ && echo "FINISHED" && sleep infinity dnsPolicy: ClusterFirst - restartPolicy: Always + restartPolicy: Never schedulerName: default-scheduler serviceAccountName: {{ .Values.global.serviceAccountName }} terminationGracePeriodSeconds: 30 + nodeSelector: + {{- toYaml .Values.global.nodeSelector | nindent 12 }} \ No newline at end of file diff --git a/charts/physims/charts/nr-ulsim.3gpp/templates/service.yaml b/charts/physims/charts/nr-ulsim.3gpp/templates/service.yaml deleted file mode 100644 index fc5ce516ad..0000000000 --- a/charts/physims/charts/nr-ulsim.3gpp/templates/service.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ .Chart.Name }} - labels: - {{- include "oai-nr-ulsim-3gpp.labels" . | nindent 4 }} -spec: - type: {{ .Values.service.type }} -{{- if contains "ClusterIP" .Values.service.type }} - clusterIP: None -{{- end }} - ports: - - name: oai-nr-ulsim-3gpp - # Port accessible outside cluster - port: {{ .Values.service.port }} - # Port to forward to inside the pod - targetPort: {{ .Values.service.Port }} - protocol: TCP - selector: - {{- include "oai-nr-ulsim-3gpp.selectorLabels" . | nindent 4 }} diff --git a/charts/physims/charts/nr-ulsim.3gpp/values.yaml b/charts/physims/charts/nr-ulsim.3gpp/values.yaml index 3d44bda9b8..b2aedcba03 100644 --- a/charts/physims/charts/nr-ulsim.3gpp/values.yaml +++ b/charts/physims/charts/nr-ulsim.3gpp/values.yaml @@ -27,19 +27,7 @@ podSecurityContext: runAsGroup: 0 securityContext: - privileged: true - capabilities: - add: - - SYS_CAP_PTRACE - # drop: - # - ALL - # readOnlyRootFilesystem: true - # runAsNonRoot: true - # runAsUser: 1000 - -service: - type: ClusterIP - port: 80 + privileged: false resources: {} # We usually recommend not to specify default resources and to leave this as a conscious diff --git a/charts/physims/charts/nr-ulsim.mimo/templates/NOTES.txt b/charts/physims/charts/nr-ulsim.mimo/templates/NOTES.txt deleted file mode 100644 index 46436c61f0..0000000000 --- a/charts/physims/charts/nr-ulsim.mimo/templates/NOTES.txt +++ /dev/null @@ -1,15 +0,0 @@ -1. Get the application URL by running these commands: -{{- if contains "NodePort" .Values.service.type }} - export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "oai-nr-ulsim-mimo.fullname" . }}) - export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") - echo http://$NODE_IP:$NODE_PORT -{{- else if contains "LoadBalancer" .Values.service.type }} - NOTE: It may take a few minutes for the LoadBalancer IP to be available. - You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "oai-nr-ulsim-mimo.fullname" . }}' - export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "oai-nr-ulsim-mimo.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - echo http://$SERVICE_IP:{{ .Values.service.port }} -{{- else if contains "ClusterIP" .Values.service.type }} - export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "oai-nr-ulsim-mimo.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") - echo "Visit http://127.0.0.1:8080 to use your application" - kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:80 -{{- end }} diff --git a/charts/physims/charts/nr-ulsim.mimo/templates/deployment.yaml b/charts/physims/charts/nr-ulsim.mimo/templates/job.yaml similarity index 70% rename from charts/physims/charts/nr-ulsim.mimo/templates/deployment.yaml rename to charts/physims/charts/nr-ulsim.mimo/templates/job.yaml index e8d6ecf7ce..d385551fcb 100644 --- a/charts/physims/charts/nr-ulsim.mimo/templates/deployment.yaml +++ b/charts/physims/charts/nr-ulsim.mimo/templates/job.yaml @@ -1,20 +1,12 @@ -apiVersion: apps/v1 -kind: Deployment +apiVersion: batch/v1 +kind: Job metadata: name: {{ .Chart.Name }} - labels: - {{- include "oai-nr-ulsim-mimo.labels" . | nindent 4 }} spec: - replicas: {{ .Values.replicaCount }} - selector: - matchLabels: - {{- include "oai-nr-ulsim-mimo.selectorLabels" . | nindent 6 }} - strategy: - type: Recreate template: metadata: labels: - {{- include "oai-nr-ulsim-mimo.selectorLabels" . | nindent 8 }} + app: physim spec: securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} @@ -28,8 +20,6 @@ spec: imagePullPolicy: {{ .Values.image.pullPolicy }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} - ports: - - containerPort: 80 env: - name: OPENAIR_DIR value: /opt/oai-physim @@ -39,7 +29,9 @@ spec: cmake_targets/autotests/run_exec_autotests.bash -g "nr_ulsim.mimo" -d bin/ && echo "FINISHED" && sleep infinity dnsPolicy: ClusterFirst - restartPolicy: Always + restartPolicy: Never schedulerName: default-scheduler serviceAccountName: {{ .Values.global.serviceAccountName }} terminationGracePeriodSeconds: 30 + nodeSelector: + {{- toYaml .Values.global.nodeSelector | nindent 12 }} \ No newline at end of file diff --git a/charts/physims/charts/nr-ulsim.mimo/templates/service.yaml b/charts/physims/charts/nr-ulsim.mimo/templates/service.yaml deleted file mode 100644 index 6a2465cbbe..0000000000 --- a/charts/physims/charts/nr-ulsim.mimo/templates/service.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ .Chart.Name }} - labels: - {{- include "oai-nr-ulsim-mimo.labels" . | nindent 4 }} -spec: - type: {{ .Values.service.type }} -{{- if contains "ClusterIP" .Values.service.type }} - clusterIP: None -{{- end }} - ports: - - name: oai-nr-ulsim-mimo - # Port accessible outside cluster - port: {{ .Values.service.port }} - # Port to forward to inside the pod - targetPort: {{ .Values.service.Port }} - protocol: TCP - selector: - {{- include "oai-nr-ulsim-mimo.selectorLabels" . | nindent 4 }} diff --git a/charts/physims/charts/nr-ulsim.mimo/values.yaml b/charts/physims/charts/nr-ulsim.mimo/values.yaml index 55bdcd6158..b2dd42d3be 100644 --- a/charts/physims/charts/nr-ulsim.mimo/values.yaml +++ b/charts/physims/charts/nr-ulsim.mimo/values.yaml @@ -27,19 +27,7 @@ podSecurityContext: runAsGroup: 0 securityContext: - privileged: true - capabilities: - add: - - SYS_CAP_PTRACE - # drop: - # - ALL - # readOnlyRootFilesystem: true - # runAsNonRoot: true - # runAsUser: 1000 - -service: - type: ClusterIP - port: 80 + privileged: false resources: {} # We usually recommend not to specify default resources and to leave this as a conscious diff --git a/charts/physims/charts/nr-ulsim.misc/templates/NOTES.txt b/charts/physims/charts/nr-ulsim.misc/templates/NOTES.txt deleted file mode 100644 index 8f882b73a3..0000000000 --- a/charts/physims/charts/nr-ulsim.misc/templates/NOTES.txt +++ /dev/null @@ -1,15 +0,0 @@ -1. Get the application URL by running these commands: -{{- if contains "NodePort" .Values.service.type }} - export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "oai-nr-ulsim-misc.fullname" . }}) - export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") - echo http://$NODE_IP:$NODE_PORT -{{- else if contains "LoadBalancer" .Values.service.type }} - NOTE: It may take a few minutes for the LoadBalancer IP to be available. - You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "oai-nr-ulsim-misc.fullname" . }}' - export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "oai-nr-ulsim-misc.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - echo http://$SERVICE_IP:{{ .Values.service.port }} -{{- else if contains "ClusterIP" .Values.service.type }} - export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "oai-nr-ulsim-misc.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") - echo "Visit http://127.0.0.1:8080 to use your application" - kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:80 -{{- end }} diff --git a/charts/physims/charts/nr-ulsim.misc/templates/deployment.yaml b/charts/physims/charts/nr-ulsim.misc/templates/job.yaml similarity index 70% rename from charts/physims/charts/nr-ulsim.misc/templates/deployment.yaml rename to charts/physims/charts/nr-ulsim.misc/templates/job.yaml index 56c25fbbc3..492baab464 100644 --- a/charts/physims/charts/nr-ulsim.misc/templates/deployment.yaml +++ b/charts/physims/charts/nr-ulsim.misc/templates/job.yaml @@ -1,20 +1,12 @@ -apiVersion: apps/v1 -kind: Deployment +apiVersion: batch/v1 +kind: Job metadata: name: {{ .Chart.Name }} - labels: - {{- include "oai-nr-ulsim-misc.labels" . | nindent 4 }} spec: - replicas: {{ .Values.replicaCount }} - selector: - matchLabels: - {{- include "oai-nr-ulsim-misc.selectorLabels" . | nindent 6 }} - strategy: - type: Recreate template: metadata: labels: - {{- include "oai-nr-ulsim-misc.selectorLabels" . | nindent 8 }} + app: physim spec: securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} @@ -28,8 +20,6 @@ spec: imagePullPolicy: {{ .Values.image.pullPolicy }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} - ports: - - containerPort: 80 env: - name: OPENAIR_DIR value: /opt/oai-physim @@ -39,7 +29,9 @@ spec: cmake_targets/autotests/run_exec_autotests.bash -g "nr_ulsim.misc" -d bin/ && echo "FINISHED" && sleep infinity dnsPolicy: ClusterFirst - restartPolicy: Always + restartPolicy: Never schedulerName: default-scheduler serviceAccountName: {{ .Values.global.serviceAccountName }} terminationGracePeriodSeconds: 30 + nodeSelector: + {{- toYaml .Values.global.nodeSelector | nindent 12 }} \ No newline at end of file diff --git a/charts/physims/charts/nr-ulsim.misc/templates/service.yaml b/charts/physims/charts/nr-ulsim.misc/templates/service.yaml deleted file mode 100644 index d7e93fba72..0000000000 --- a/charts/physims/charts/nr-ulsim.misc/templates/service.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ .Chart.Name }} - labels: - {{- include "oai-nr-ulsim-misc.labels" . | nindent 4 }} -spec: - type: {{ .Values.service.type }} -{{- if contains "ClusterIP" .Values.service.type }} - clusterIP: None -{{- end }} - ports: - - name: oai-nr-ulsim-misc - # Port accessible outside cluster - port: {{ .Values.service.port }} - # Port to forward to inside the pod - targetPort: {{ .Values.service.Port }} - protocol: TCP - selector: - {{- include "oai-nr-ulsim-misc.selectorLabels" . | nindent 4 }} diff --git a/charts/physims/charts/nr-ulsim.misc/values.yaml b/charts/physims/charts/nr-ulsim.misc/values.yaml index dcae7a2b66..8d15fca39e 100644 --- a/charts/physims/charts/nr-ulsim.misc/values.yaml +++ b/charts/physims/charts/nr-ulsim.misc/values.yaml @@ -27,19 +27,7 @@ podSecurityContext: runAsGroup: 0 securityContext: - privileged: true - capabilities: - add: - - SYS_CAP_PTRACE - # drop: - # - ALL - # readOnlyRootFilesystem: true - # runAsNonRoot: true - # runAsUser: 1000 - -service: - type: ClusterIP - port: 80 + privileged: false resources: {} # We usually recommend not to specify default resources and to leave this as a conscious diff --git a/charts/physims/charts/nr-ulsim.sc-fdma/templates/NOTES.txt b/charts/physims/charts/nr-ulsim.sc-fdma/templates/NOTES.txt deleted file mode 100644 index 1874b502a2..0000000000 --- a/charts/physims/charts/nr-ulsim.sc-fdma/templates/NOTES.txt +++ /dev/null @@ -1,15 +0,0 @@ -1. Get the application URL by running these commands: -{{- if contains "NodePort" .Values.service.type }} - export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "oai-nr-ulsim-sc-fdma.fullname" . }}) - export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") - echo http://$NODE_IP:$NODE_PORT -{{- else if contains "LoadBalancer" .Values.service.type }} - NOTE: It may take a few minutes for the LoadBalancer IP to be available. - You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "oai-nr-ulsim-sc-fdma.fullname" . }}' - export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "oai-nr-ulsim-sc-fdma.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - echo http://$SERVICE_IP:{{ .Values.service.port }} -{{- else if contains "ClusterIP" .Values.service.type }} - export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "oai-nr-ulsim-sc-fdma.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") - echo "Visit http://127.0.0.1:8080 to use your application" - kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:80 -{{- end }} diff --git a/charts/physims/charts/nr-ulsim.sc-fdma/templates/deployment.yaml b/charts/physims/charts/nr-ulsim.sc-fdma/templates/job.yaml similarity index 73% rename from charts/physims/charts/nr-ulsim.sc-fdma/templates/deployment.yaml rename to charts/physims/charts/nr-ulsim.sc-fdma/templates/job.yaml index 3119950e20..8283c65f5e 100644 --- a/charts/physims/charts/nr-ulsim.sc-fdma/templates/deployment.yaml +++ b/charts/physims/charts/nr-ulsim.sc-fdma/templates/job.yaml @@ -1,20 +1,12 @@ -apiVersion: apps/v1 -kind: Deployment +apiVersion: batch/v1 +kind: Job metadata: name: {{ .Chart.Name }} - labels: - {{- include "oai-nr-ulsim-sc-fdma.labels" . | nindent 4 }} spec: - replicas: {{ .Values.replicaCount }} - selector: - matchLabels: - {{- include "oai-nr-ulsim-sc-fdma.selectorLabels" . | nindent 6 }} - strategy: - type: Recreate template: metadata: labels: - {{- include "oai-nr-ulsim-sc-fdma.selectorLabels" . | nindent 8 }} + app: physim spec: securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} @@ -39,7 +31,9 @@ spec: cmake_targets/autotests/run_exec_autotests.bash -g "nr_ulsim.sc-fdma" -d bin/ && echo "FINISHED" && sleep infinity dnsPolicy: ClusterFirst - restartPolicy: Always + restartPolicy: Never schedulerName: default-scheduler serviceAccountName: {{ .Values.global.serviceAccountName }} terminationGracePeriodSeconds: 30 + nodeSelector: + {{- toYaml .Values.global.nodeSelector | nindent 12 }} \ No newline at end of file diff --git a/charts/physims/charts/nr-ulsim.sc-fdma/templates/service.yaml b/charts/physims/charts/nr-ulsim.sc-fdma/templates/service.yaml deleted file mode 100644 index 5653ae5ad2..0000000000 --- a/charts/physims/charts/nr-ulsim.sc-fdma/templates/service.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ .Chart.Name }} - labels: - {{- include "oai-nr-ulsim-sc-fdma.labels" . | nindent 4 }} -spec: - type: {{ .Values.service.type }} -{{- if contains "ClusterIP" .Values.service.type }} - clusterIP: None -{{- end }} - ports: - - name: oai-nr-ulsim-sc-fdma - # Port accessible outside cluster - port: {{ .Values.service.port }} - # Port to forward to inside the pod - targetPort: {{ .Values.service.Port }} - protocol: TCP - selector: - {{- include "oai-nr-ulsim-sc-fdma.selectorLabels" . | nindent 4 }} diff --git a/charts/physims/charts/nr-ulsim.sc-fdma/values.yaml b/charts/physims/charts/nr-ulsim.sc-fdma/values.yaml index 0536fb03b6..c617eeafec 100644 --- a/charts/physims/charts/nr-ulsim.sc-fdma/values.yaml +++ b/charts/physims/charts/nr-ulsim.sc-fdma/values.yaml @@ -27,19 +27,7 @@ podSecurityContext: runAsGroup: 0 securityContext: - privileged: true - capabilities: - add: - - SYS_CAP_PTRACE - # drop: - # - ALL - # readOnlyRootFilesystem: true - # runAsNonRoot: true - # runAsUser: 1000 - -service: - type: ClusterIP - port: 80 + privileged: false resources: {} # We usually recommend not to specify default resources and to leave this as a conscious diff --git a/charts/physims/charts/polartest/templates/NOTES.txt b/charts/physims/charts/polartest/templates/NOTES.txt deleted file mode 100644 index 9c2c978de0..0000000000 --- a/charts/physims/charts/polartest/templates/NOTES.txt +++ /dev/null @@ -1,15 +0,0 @@ -1. Get the application URL by running these commands: -{{- if contains "NodePort" .Values.service.type }} - export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "oai-polartest.fullname" . }}) - export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") - echo http://$NODE_IP:$NODE_PORT -{{- else if contains "LoadBalancer" .Values.service.type }} - NOTE: It may take a few minutes for the LoadBalancer IP to be available. - You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "oai-polartest.fullname" . }}' - export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "oai-polartest.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - echo http://$SERVICE_IP:{{ .Values.service.port }} -{{- else if contains "ClusterIP" .Values.service.type }} - export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "oai-polartest.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") - echo "Visit http://127.0.0.1:8080 to use your application" - kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:80 -{{- end }} diff --git a/charts/physims/charts/polartest/templates/deployment.yaml b/charts/physims/charts/polartest/templates/job.yaml similarity index 70% rename from charts/physims/charts/polartest/templates/deployment.yaml rename to charts/physims/charts/polartest/templates/job.yaml index 20dac8ebf7..61e82957ce 100644 --- a/charts/physims/charts/polartest/templates/deployment.yaml +++ b/charts/physims/charts/polartest/templates/job.yaml @@ -1,20 +1,12 @@ -apiVersion: apps/v1 -kind: Deployment +apiVersion: batch/v1 +kind: Job metadata: name: {{ .Chart.Name }} - labels: - {{- include "oai-polartest.labels" . | nindent 4 }} spec: - replicas: {{ .Values.replicaCount }} - selector: - matchLabels: - {{- include "oai-polartest.selectorLabels" . | nindent 6 }} - strategy: - type: Recreate template: metadata: labels: - {{- include "oai-polartest.selectorLabels" . | nindent 8 }} + app: physim spec: securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} @@ -28,18 +20,18 @@ spec: imagePullPolicy: {{ .Values.image.pullPolicy }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} - ports: - - containerPort: 80 env: - name: OPENAIR_DIR value: /opt/oai-physim command: ["/bin/sh", "-c"] args: - - > + - > cmake_targets/autotests/run_exec_autotests.bash -g "polartest" -d bin/ && echo "FINISHED" && sleep infinity dnsPolicy: ClusterFirst - restartPolicy: Always + restartPolicy: Never schedulerName: default-scheduler serviceAccountName: {{ .Values.global.serviceAccountName }} terminationGracePeriodSeconds: 30 + nodeSelector: + {{- toYaml .Values.global.nodeSelector | nindent 12 }} \ No newline at end of file diff --git a/charts/physims/charts/polartest/templates/service.yaml b/charts/physims/charts/polartest/templates/service.yaml deleted file mode 100644 index 40abb6769e..0000000000 --- a/charts/physims/charts/polartest/templates/service.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ .Chart.Name }} - labels: - {{- include "oai-polartest.labels" . | nindent 4 }} -spec: - type: {{ .Values.service.type }} -{{- if contains "ClusterIP" .Values.service.type }} - clusterIP: None -{{- end }} - ports: - - name: oai-polartest - # Port accessible outside cluster - port: {{ .Values.service.port }} - # Port to forward to inside the pod - targetPort: {{ .Values.service.Port }} - protocol: TCP - selector: - {{- include "oai-polartest.selectorLabels" . | nindent 4 }} diff --git a/charts/physims/charts/polartest/values.yaml b/charts/physims/charts/polartest/values.yaml index f7195dd572..12386f02bc 100644 --- a/charts/physims/charts/polartest/values.yaml +++ b/charts/physims/charts/polartest/values.yaml @@ -27,19 +27,7 @@ podSecurityContext: runAsGroup: 0 securityContext: - privileged: true - capabilities: - add: - - SYS_CAP_PTRACE - # drop: - # - ALL - # readOnlyRootFilesystem: true - # runAsNonRoot: true - # runAsUser: 1000 - -service: - type: ClusterIP - port: 80 + privileged: false resources: {} # We usually recommend not to specify default resources and to leave this as a conscious diff --git a/charts/physims/charts/smallblocktest/templates/NOTES.txt b/charts/physims/charts/smallblocktest/templates/NOTES.txt deleted file mode 100644 index c593dbfe22..0000000000 --- a/charts/physims/charts/smallblocktest/templates/NOTES.txt +++ /dev/null @@ -1,15 +0,0 @@ -1. Get the application URL by running these commands: -{{- if contains "NodePort" .Values.service.type }} - export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "oai-smallblocktest.fullname" . }}) - export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") - echo http://$NODE_IP:$NODE_PORT -{{- else if contains "LoadBalancer" .Values.service.type }} - NOTE: It may take a few minutes for the LoadBalancer IP to be available. - You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "oai-smallblocktest.fullname" . }}' - export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "oai-smallblocktest.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - echo http://$SERVICE_IP:{{ .Values.service.port }} -{{- else if contains "ClusterIP" .Values.service.type }} - export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "oai-smallblocktest.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") - echo "Visit http://127.0.0.1:8080 to use your application" - kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:80 -{{- end }} diff --git a/charts/physims/charts/smallblocktest/templates/deployment.yaml b/charts/physims/charts/smallblocktest/templates/job.yaml similarity index 69% rename from charts/physims/charts/smallblocktest/templates/deployment.yaml rename to charts/physims/charts/smallblocktest/templates/job.yaml index aafb16e054..f034db3e69 100644 --- a/charts/physims/charts/smallblocktest/templates/deployment.yaml +++ b/charts/physims/charts/smallblocktest/templates/job.yaml @@ -1,20 +1,12 @@ -apiVersion: apps/v1 -kind: Deployment +apiVersion: batch/v1 +kind: Job metadata: name: {{ .Chart.Name }} - labels: - {{- include "oai-smallblocktest.labels" . | nindent 4 }} spec: - replicas: {{ .Values.replicaCount }} - selector: - matchLabels: - {{- include "oai-smallblocktest.selectorLabels" . | nindent 6 }} - strategy: - type: Recreate template: metadata: labels: - {{- include "oai-smallblocktest.selectorLabels" . | nindent 8 }} + app: physim spec: securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} @@ -28,18 +20,18 @@ spec: imagePullPolicy: {{ .Values.image.pullPolicy }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} - ports: - - containerPort: 80 env: - name: OPENAIR_DIR value: /opt/oai-physim command: ["/bin/sh", "-c"] args: - - > + - > cmake_targets/autotests/run_exec_autotests.bash -g "smallblocktest" -d bin/ && echo "FINISHED" && sleep infinity dnsPolicy: ClusterFirst - restartPolicy: Always + restartPolicy: Never schedulerName: default-scheduler serviceAccountName: {{ .Values.global.serviceAccountName }} terminationGracePeriodSeconds: 30 + nodeSelector: + {{- toYaml .Values.global.nodeSelector | nindent 12 }} \ No newline at end of file diff --git a/charts/physims/charts/smallblocktest/templates/service.yaml b/charts/physims/charts/smallblocktest/templates/service.yaml deleted file mode 100644 index d51bf21ce4..0000000000 --- a/charts/physims/charts/smallblocktest/templates/service.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ .Chart.Name }} - labels: - {{- include "oai-smallblocktest.labels" . | nindent 4 }} -spec: - type: {{ .Values.service.type }} -{{- if contains "ClusterIP" .Values.service.type }} - clusterIP: None -{{- end }} - ports: - - name: oai-smallblocktest - # Port accessible outside cluster - port: {{ .Values.service.port }} - # Port to forward to inside the pod - targetPort: {{ .Values.service.Port }} - protocol: TCP - selector: - {{- include "oai-smallblocktest.selectorLabels" . | nindent 4 }} diff --git a/charts/physims/charts/smallblocktest/values.yaml b/charts/physims/charts/smallblocktest/values.yaml index f08db5501a..7f116091ac 100644 --- a/charts/physims/charts/smallblocktest/values.yaml +++ b/charts/physims/charts/smallblocktest/values.yaml @@ -27,19 +27,7 @@ podSecurityContext: runAsGroup: 0 securityContext: - privileged: true - capabilities: - add: - - SYS_CAP_PTRACE - # drop: - # - ALL - # readOnlyRootFilesystem: true - # runAsNonRoot: true - # runAsUser: 1000 - -service: - type: ClusterIP - port: 80 + privileged: false resources: {} # We usually recommend not to specify default resources and to leave this as a conscious diff --git a/charts/physims/charts/ulsim/templates/NOTES.txt b/charts/physims/charts/ulsim/templates/NOTES.txt deleted file mode 100644 index 91ab3ce0b7..0000000000 --- a/charts/physims/charts/ulsim/templates/NOTES.txt +++ /dev/null @@ -1,15 +0,0 @@ -1. Get the application URL by running these commands: -{{- if contains "NodePort" .Values.service.type }} - export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "oai-ulsim.fullname" . }}) - export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") - echo http://$NODE_IP:$NODE_PORT -{{- else if contains "LoadBalancer" .Values.service.type }} - NOTE: It may take a few minutes for the LoadBalancer IP to be available. - You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "oai-ulsim.fullname" . }}' - export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "oai-ulsim.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - echo http://$SERVICE_IP:{{ .Values.service.port }} -{{- else if contains "ClusterIP" .Values.service.type }} - export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "oai-ulsim.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") - echo "Visit http://127.0.0.1:8080 to use your application" - kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:80 -{{- end }} diff --git a/charts/physims/charts/ulsim/templates/deployment.yaml b/charts/physims/charts/ulsim/templates/job.yaml similarity index 70% rename from charts/physims/charts/ulsim/templates/deployment.yaml rename to charts/physims/charts/ulsim/templates/job.yaml index 3185b074b2..d61d793c3b 100644 --- a/charts/physims/charts/ulsim/templates/deployment.yaml +++ b/charts/physims/charts/ulsim/templates/job.yaml @@ -1,20 +1,12 @@ -apiVersion: apps/v1 -kind: Deployment +apiVersion: batch/v1 +kind: Job metadata: name: {{ .Chart.Name }} - labels: - {{- include "oai-ulsim.labels" . | nindent 4 }} spec: - replicas: {{ .Values.replicaCount }} - selector: - matchLabels: - {{- include "oai-ulsim.selectorLabels" . | nindent 6 }} - strategy: - type: Recreate template: metadata: labels: - {{- include "oai-ulsim.selectorLabels" . | nindent 8 }} + app: physim spec: securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} @@ -28,18 +20,18 @@ spec: imagePullPolicy: {{ .Values.image.pullPolicy }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} - ports: - - containerPort: 80 env: - name: OPENAIR_DIR value: /opt/oai-physim command: ["/bin/sh", "-c"] args: - - > + - > cmake_targets/autotests/run_exec_autotests.bash -g "ulsim" -d bin/ && echo "FINISHED" && sleep infinity dnsPolicy: ClusterFirst - restartPolicy: Always + restartPolicy: Never schedulerName: default-scheduler serviceAccountName: {{ .Values.global.serviceAccountName }} terminationGracePeriodSeconds: 30 + nodeSelector: + {{- toYaml .Values.global.nodeSelector | nindent 12 }} \ No newline at end of file diff --git a/charts/physims/charts/ulsim/templates/service.yaml b/charts/physims/charts/ulsim/templates/service.yaml deleted file mode 100644 index dcc37d6299..0000000000 --- a/charts/physims/charts/ulsim/templates/service.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ .Chart.Name }} - labels: - {{- include "oai-ulsim.labels" . | nindent 4 }} -spec: - type: {{ .Values.service.type }} -{{- if contains "ClusterIP" .Values.service.type }} - clusterIP: None -{{- end }} - ports: - - name: oai-ulsim - # Port accessible outside cluster - port: {{ .Values.service.port }} - # Port to forward to inside the pod - targetPort: {{ .Values.service.Port }} - protocol: TCP - selector: - {{- include "oai-ulsim.selectorLabels" . | nindent 4 }} diff --git a/charts/physims/charts/ulsim/values.yaml b/charts/physims/charts/ulsim/values.yaml index 3e625f02c6..94038fa6df 100644 --- a/charts/physims/charts/ulsim/values.yaml +++ b/charts/physims/charts/ulsim/values.yaml @@ -27,19 +27,7 @@ podSecurityContext: runAsGroup: 0 securityContext: - privileged: true - capabilities: - add: - - SYS_CAP_PTRACE - # drop: - # - ALL - # readOnlyRootFilesystem: true - # runAsNonRoot: true - # runAsUser: 1000 - -service: - type: ClusterIP - port: 80 + privileged: false resources: {} # We usually recommend not to specify default resources and to leave this as a conscious diff --git a/charts/physims/templates/rbac.yaml b/charts/physims/templates/rbac.yaml index b341744796..989988baca 100644 --- a/charts/physims/templates/rbac.yaml +++ b/charts/physims/templates/rbac.yaml @@ -6,7 +6,7 @@ rules: - apiGroups: - security.openshift.io resourceNames: - - privileged + - anyuid resources: - securitycontextconstraints verbs: diff --git a/charts/physims/templates/serviceaccount.yaml b/charts/physims/templates/serviceaccount.yaml index 21d094ad38..0810702f4f 100644 --- a/charts/physims/templates/serviceaccount.yaml +++ b/charts/physims/templates/serviceaccount.yaml @@ -1,4 +1,4 @@ apiVersion: v1 kind: ServiceAccount metadata: - name: {{ .Values.global.serviceAccountName }} + name: oai-physim-sa #{{ .Values.global.serviceAccountName }} diff --git a/charts/physims/values.yaml b/charts/physims/values.yaml index 7d0faa33ce..462f8ff59b 100644 --- a/charts/physims/values.yaml +++ b/charts/physims/values.yaml @@ -5,137 +5,12 @@ global: serviceAccountName: oai-physim-sa namespace: "OAICICD_PROJECT" - image: + image: registry: local repository: image-registry.openshift-image-registry.svc:5000/oaicicd-ran/oai-physim version: TAG # pullPolicy: IfNotPresent or Never or Always pullPolicy: Always + nodeSelector: + worker: "telco" -## Declaring values specific to coressponding physim to overwrite - -dlsim.basic: - replicaCount: 1 - service: - type: ClusterIP - port: 80 - -dlsim.100rb+tm2: - replicaCount: 1 - service: - type: ClusterIP - port: 80 - -ulsim: - replicaCount: 1 - service: - type: ClusterIP - port: 80 - -ldpctest: - replicaCount: 1 - service: - type: ClusterIP - port: 80 - -polartest: - replicaCount: 1 - service: - type: ClusterIP - port: 80 - -nr-pbchsim.106rb: - replicaCount: 1 - service: - type: ClusterIP - port: 80 - -nr-pbchsim.217rb: - replicaCount: 1 - service: - type: ClusterIP - port: 80 - -nr-pbchsim.273rb: - replicaCount: 1 - service: - type: ClusterIP - port: 80 - -nr-dlsim.basic: - replicaCount: 1 - service: - type: ClusterIP - port: 80 - -nr-dlsim.dmrs+ptrs: - replicaCount: 1 - service: - type: ClusterIP - port: 80 - -nr-dlsim.mcs+mimo: - replicaCount: 1 - service: - type: ClusterIP - port: 80 - -nr-dlsim.offset: - replicaCount: 1 - service: - type: ClusterIP - port: 80 - -nr-dlschsim: - replicaCount: 1 - service: - type: ClusterIP - port: 80 - -smallblocktest: - replicaCount: 1 - service: - type: ClusterIP - port: 80 - -nr-ulschsim: - replicaCount: 1 - service: - type: ClusterIP - port: 80 - -nr-pucchsim: - replicaCount: 1 - service: - type: ClusterIP - port: 80 - -nr-ulsim.3gpp: - replicaCount: 1 - service: - type: ClusterIP - port: 80 - -nr-ulsim.mimo: - replicaCount: 1 - service: - type: ClusterIP - port: 80 - -nr-ulsim.misc: - replicaCount: 1 - service: - type: ClusterIP - port: 80 - -nr-ulsim.sc-fdma: - replicaCount: 1 - service: - type: ClusterIP - port: 80 - -nr-prachsim: - replicaCount: 1 - service: - type: ClusterIP - port: 80 diff --git a/ci-scripts/Jenkinsfile-gitlab b/ci-scripts/Jenkinsfile-gitlab index cc35cb4625..9d95049afb 100644 --- a/ci-scripts/Jenkinsfile-gitlab +++ b/ci-scripts/Jenkinsfile-gitlab @@ -332,7 +332,7 @@ pipeline { script { if (doMandatoryTests) { dir ('archives') { - sh "if [ -d rf_sim/test ] || [ -d l2_sim/test ]; then zip -r -qq vm_tests_logs.zip */test ; fi" + sh "if [ -d rf_sim/test ] || [ -d rf5g_sim/test ] || [ -d l2_sim/test ]; then zip -r -qq vm_tests_logs.zip */test ; fi" } if(fileExists('archives/vm_tests_logs.zip')) { archiveArtifacts artifacts: 'archives/vm_tests_logs.zip' diff --git a/ci-scripts/cls_physim1.py b/ci-scripts/cls_physim1.py index 1cef2270c3..5bb64d250c 100644 --- a/ci-scripts/cls_physim1.py +++ b/ci-scripts/cls_physim1.py @@ -139,14 +139,14 @@ class PhySim: # Using helm charts deployment mySSH.command(f'grep -rl OAICICD_PROJECT ./charts/ | xargs sed -i -e "s#OAICICD_PROJECT#{ocProjectName}#"', '\$', 30) mySSH.command(f'sed -i -e "s#TAG#{imageTag}#g" ./charts/physims/values.yaml', '\$', 6) - mySSH.command('helm install physim ./charts/physims/ 2>&1 | tee -a cmake_targets/log/physim_helm_summary.txt', '\$', 30) + mySSH.command('helm install physim ./charts/physims/ --wait 2>&1 | tee -a cmake_targets/log/physim_helm_summary.txt', '\$', 30) if mySSH.getBefore().count('STATUS: deployed') == 0: logging.error('\u001B[1m Deploying PhySim Failed using helm chart on OC Cluster\u001B[0m') - mySSH.command('helm uninstall physim >> cmake_targets/log/physim_helm_summary.txt 2>&1', '\$', 30) + mySSH.command('helm uninstall physim | tee -a cmake_targets/log/physim_helm_summary.txt 2>&1', '\$', 30) isFinished1 = False while(isFinished1 == False): time.sleep(20) - mySSH.command('oc get pods -l app.kubernetes.io/instance=physim', '\$', 6, resync=True) + mySSH.command('oc get pods -l app=physim', '\$', 6, resync=True) if re.search('No resources found', mySSH.getBefore()): isFinished1 = True mySSH.command('oc logout', '\$', 30) @@ -158,24 +158,27 @@ class PhySim: logging.debug('\u001B[1m Deployed PhySim Successfully using helm chart\u001B[0m') isRunning = False count = 0 + # Check whether the containers are in Running state or not under 2 mins while(count < 2 and isRunning == False): time.sleep(60) - mySSH.command('oc get pods -o wide -l app.kubernetes.io/instance=physim | tee -a cmake_targets/log/physim_pods_summary.txt', '\$', 30, resync=True) - if mySSH.getBefore().count('Running') == 21: + mySSH.command('oc get pods -o wide -l app=physim | tee -a cmake_targets/log/physim_pods_summary.txt', '\$', 30, resync=True) + running_count = mySSH.getBefore().count('Running') + completed_count = mySSH.getBefore().count('Completed') + if (running_count + completed_count) == 21: logging.debug('\u001B[1m Running the physim test Scenarios\u001B[0m') isRunning = True podNames = re.findall('oai-[\S\d\w]+', mySSH.getBefore()) count +=1 if isRunning == False: - logging.error('\u001B[1m Some PODS Running FAILED \u001B[0m') - mySSH.command('oc get pods -l app.kubernetes.io/instance=physim 2>&1 | tee -a cmake_targets/log/physim_pods_summary.txt', '\$', 6) + logging.error('\u001B[1m Some pods are in Error state \u001B[0m') + mySSH.command('oc get pods -l app=physim 2>&1 | tee -a cmake_targets/log/physim_pods_summary.txt', '\$', 6) mySSH.command('for pod in $(oc get pods | tail -n +2 | awk \'{print $1}\'); do oc describe pod $pod >> cmake_targets/log/physim_pods_summary.txt; done', '\$', 10) - mySSH.command('helm uninstall physim 2>&1 >> cmake_targets/log/physim_helm_summary.txt', '\$', 6) + mySSH.command('helm uninstall physim | tee -a cmake_targets/log/physim_helm_summary.txt 2>&1', '\$', 6) self.AnalyzeLogFile_phySim() isFinished1 = False while(isFinished1 == False): time.sleep(20) - mySSH.command('oc get pods -l app.kubernetes.io/instance=physim', '\$', 6, resync=True) + mySSH.command('oc get pods -l app=physim', '\$', 6, resync=True) if re.search('No resources found', mySSH.getBefore()): isFinished1 = True mySSH.command('oc logout', '\$', 30) @@ -188,7 +191,7 @@ class PhySim: isFinished = False # doing a deep copy! tmpPodNames = podNames.copy() - while(count < 15 and isFinished == False): + while(count < 9 and isFinished == False): time.sleep(60) for podName in tmpPodNames: mySSH.command2(f'oc logs --tail=1 {podName} 2>&1', 6, silent=True) @@ -230,7 +233,7 @@ class PhySim: isFinished1 = False while(isFinished1 == False): time.sleep(20) - mySSH.command('oc get pods -l app.kubernetes.io/instance=physim', '\$', 6, resync=True) + mySSH.command('oc get pods -l app=physim', '\$', 6, resync=True) if re.search('No resources found', mySSH.getBefore()): isFinished1 = True if isFinished1 == True: diff --git a/ci-scripts/conf_files/gnb.band78.sa.fr1.106PRB.2x2.usrpn310.asue.conf b/ci-scripts/conf_files/gnb.band78.sa.fr1.106PRB.2x2.usrpn310.asue.conf index 78b5d56b73..907b89a274 100644 --- a/ci-scripts/conf_files/gnb.band78.sa.fr1.106PRB.2x2.usrpn310.asue.conf +++ b/ci-scripts/conf_files/gnb.band78.sa.fr1.106PRB.2x2.usrpn310.asue.conf @@ -211,8 +211,8 @@ MACRLCs = ( num_cc = 1; tr_s_preference = "local_L1"; tr_n_preference = "local_RRC"; - pusch_TargetSNRx10 = 250; - pucch_TargetSNRx10 = 250; + pusch_TargetSNRx10 = 220; + pucch_TargetSNRx10 = 220; ulsch_max_frame_inactivity = 10; } ); diff --git a/ci-scripts/conf_files/gnb.band78.sa.fr1.106PRB.2x2.usrpn310.conf b/ci-scripts/conf_files/gnb.band78.sa.fr1.106PRB.2x2.usrpn310.conf index d9e4ed0f3a..bb9c525772 100644 --- a/ci-scripts/conf_files/gnb.band78.sa.fr1.106PRB.2x2.usrpn310.conf +++ b/ci-scripts/conf_files/gnb.band78.sa.fr1.106PRB.2x2.usrpn310.conf @@ -25,7 +25,6 @@ gNBs = pdsch_AntennaPorts_XP = 2; pusch_AntennaPorts = 2; - ul_prbblacklist = "51,52,53,54" do_SRS = 1; pdcch_ConfigSIB1 = ( @@ -210,8 +209,8 @@ MACRLCs = ( num_cc = 1; tr_s_preference = "local_L1"; tr_n_preference = "local_RRC"; -# pusch_TargetSNRx10 = 200; -# pucch_TargetSNRx10 = 150; + pusch_TargetSNRx10 = 220; + pucch_TargetSNRx10 = 200; ulsch_max_frame_inactivity = 0; } ); @@ -220,7 +219,7 @@ L1s = ( { num_cc = 1; tr_n_preference = "local_mac"; - prach_dtx_threshold = 120; + prach_dtx_threshold = 150; # pucch0_dtx_threshold = 150; } ); @@ -234,7 +233,7 @@ RUs = ( att_rx = 0; bands = [78]; max_pdschReferenceSignalPower = -27; - max_rxgain = 75; + max_rxgain = 68; eNB_instances = [0]; ##beamforming 1x2 matrix: 1 layer x 2 antennas bf_weights = [0x00007fff, 0x0000]; diff --git a/ci-scripts/conf_files/gnb.band78.sa.fr1.106PRB.ddsuu.2x2.usrpn310.conf b/ci-scripts/conf_files/gnb.band78.sa.fr1.106PRB.ddsuu.2x2.usrpn310.conf index b34dc2fbe5..a7c1679593 100644 --- a/ci-scripts/conf_files/gnb.band78.sa.fr1.106PRB.ddsuu.2x2.usrpn310.conf +++ b/ci-scripts/conf_files/gnb.band78.sa.fr1.106PRB.ddsuu.2x2.usrpn310.conf @@ -209,8 +209,8 @@ MACRLCs = ( num_cc = 1; tr_s_preference = "local_L1"; tr_n_preference = "local_RRC"; -# pusch_TargetSNRx10 = 200; -# pucch_TargetSNRx10 = 150; + pusch_TargetSNRx10 = 220; + pucch_TargetSNRx10 = 200; ulsch_max_frame_inactivity = 0; } ); @@ -219,7 +219,7 @@ L1s = ( { num_cc = 1; tr_n_preference = "local_mac"; - prach_dtx_threshold = 120; + prach_dtx_threshold = 150; # pucch0_dtx_threshold = 150; } ); @@ -233,7 +233,7 @@ RUs = ( att_rx = 0; bands = [78]; max_pdschReferenceSignalPower = -27; - max_rxgain = 75; + max_rxgain = 68; eNB_instances = [0]; ##beamforming 1x2 matrix: 1 layer x 2 antennas bf_weights = [0x00007fff, 0x0000]; diff --git a/ci-scripts/datalog_rt_stats.2x2.yaml b/ci-scripts/datalog_rt_stats.2x2.yaml index 8caf0201aa..1805d8ab2f 100644 --- a/ci-scripts/datalog_rt_stats.2x2.yaml +++ b/ci-scripts/datalog_rt_stats.2x2.yaml @@ -8,7 +8,7 @@ ColNames : - Average vs Reference Deviation (Reference Value; Acceptability Threshold) Ref : feprx : 120.0 - feptx_prec : 16.0 + feptx_prec : 30.0 feptx_ofdm : 50.0 feptx_total : 120.0 L1 Tx processing : 300.0 diff --git a/ci-scripts/xml_files/fr1_sa_amarisoft_ue_1x.xml b/ci-scripts/xml_files/fr1_sa_amarisoft_ue_1x.xml index c5bbf97a1e..4933e63199 100644 --- a/ci-scripts/xml_files/fr1_sa_amarisoft_ue_1x.xml +++ b/ci-scripts/xml_files/fr1_sa_amarisoft_ue_1x.xml @@ -45,7 +45,7 @@