Commit ff738b7b authored by sagar arora's avatar sagar arora

(fix): Remove sudo privilege from helm-charts

- Change security context to anyuid
- Changed from deployment to job, now the pods will be in completed
parent 1336a410
...@@ -16,7 +16,7 @@ icon: http://www.openairinterface.org/wp-content/uploads/2015/06/cropped-oai_fin ...@@ -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 # 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. # 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 # This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. # incremented each time you make changes to the application.
......
apiVersion: apps/v1 apiVersion: batch/v1
kind: Deployment kind: Job
metadata: metadata:
name: {{ .Chart.Name }} name: {{ .Chart.Name }}
labels:
{{- include "oai-dlsim-100rb-tm2.labels" . | nindent 4 }}
spec: spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "oai-dlsim-100rb-tm2.selectorLabels" . | nindent 6 }}
strategy:
type: Recreate
template: template:
metadata:
labels:
{{- include "oai-dlsim-100rb-tm2.selectorLabels" . | nindent 8 }}
spec: spec:
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
...@@ -28,8 +17,6 @@ spec: ...@@ -28,8 +17,6 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
securityContext: securityContext:
{{- toYaml .Values.securityContext | nindent 12 }} {{- toYaml .Values.securityContext | nindent 12 }}
ports:
- containerPort: 80
env: env:
- name: OPENAIR_DIR - name: OPENAIR_DIR
value: /opt/oai-physim value: /opt/oai-physim
...@@ -37,9 +24,9 @@ spec: ...@@ -37,9 +24,9 @@ spec:
args: args:
- > - >
cmake_targets/autotests/run_exec_autotests.bash -g "dlsim.100rb+tm2" -d bin/ && cmake_targets/autotests/run_exec_autotests.bash -g "dlsim.100rb+tm2" -d bin/ &&
echo "FINISHED" && sleep infinity echo "FINISHED"
dnsPolicy: ClusterFirst dnsPolicy: ClusterFirst
restartPolicy: Always restartPolicy: Never
schedulerName: default-scheduler schedulerName: default-scheduler
serviceAccountName: {{ .Values.global.serviceAccountName }} serviceAccountName: {{ .Values.global.serviceAccountName }}
terminationGracePeriodSeconds: 30 terminationGracePeriodSeconds: 30
...@@ -27,10 +27,10 @@ podSecurityContext: ...@@ -27,10 +27,10 @@ podSecurityContext:
runAsGroup: 0 runAsGroup: 0
securityContext: securityContext:
privileged: true privileged: false
capabilities: # capabilities:
add: # add:
- SYS_CAP_PTRACE # - SYS_CAP_PTRACE
# drop: # drop:
# - ALL # - ALL
# readOnlyRootFilesystem: true # readOnlyRootFilesystem: true
......
apiVersion: apps/v1 apiVersion: batch/v1
kind: Deployment kind: Job
metadata: metadata:
name: {{ .Chart.Name }} name: {{ .Chart.Name }}
labels:
{{- include "oai-dlsim-basic.labels" . | nindent 4 }}
spec: spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "oai-dlsim-basic.selectorLabels" . | nindent 6 }}
strategy:
type: Recreate
template: template:
metadata:
labels:
{{- include "oai-dlsim-basic.selectorLabels" . | nindent 8 }}
spec: spec:
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
...@@ -26,10 +15,15 @@ spec: ...@@ -26,10 +15,15 @@ spec:
- name: physim - name: physim
image: "{{ .Values.global.image.repository }}:{{ .Values.global.image.version }}" image: "{{ .Values.global.image.repository }}:{{ .Values.global.image.version }}"
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
# resources:
# requests:
# memory: "4096Mi"
# cpu: "4000m"
# limits:
# memory: "4096Mi"
# cpu: "4000m"
securityContext: securityContext:
{{- toYaml .Values.securityContext | nindent 12 }} {{- toYaml .Values.securityContext | nindent 12 }}
ports:
- containerPort: 80
env: env:
- name: OPENAIR_DIR - name: OPENAIR_DIR
value: /opt/oai-physim value: /opt/oai-physim
...@@ -37,9 +31,9 @@ spec: ...@@ -37,9 +31,9 @@ spec:
args: args:
- > - >
cmake_targets/autotests/run_exec_autotests.bash -g "dlsim.basic" -d bin/ && cmake_targets/autotests/run_exec_autotests.bash -g "dlsim.basic" -d bin/ &&
echo "FINISHED" && sleep infinity echo "FINISHED"
dnsPolicy: ClusterFirst dnsPolicy: ClusterFirst
restartPolicy: Always restartPolicy: Never
schedulerName: default-scheduler schedulerName: default-scheduler
serviceAccountName: {{ .Values.global.serviceAccountName }} serviceAccountName: oai-physim-sa
terminationGracePeriodSeconds: 30 terminationGracePeriodSeconds: 30
...@@ -20,17 +20,17 @@ serviceAccount: ...@@ -20,17 +20,17 @@ serviceAccount:
annotations: {} annotations: {}
# The name of the service account to use. # The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template # If not set and create is true, a name is generated using the fullname template
name: "oai-dlsim-basic" name: "oai-physim-sa" #"oai-dlsim-basic"
podSecurityContext: podSecurityContext:
runAsUser: 0 runAsUser: 0
runAsGroup: 0 runAsGroup: 0
securityContext: securityContext:
privileged: true privileged: false
capabilities: #capabilities:
add: # add:
- SYS_CAP_PTRACE # - SYS_CAP_PTRACE
# drop: # drop:
# - ALL # - ALL
# readOnlyRootFilesystem: true # readOnlyRootFilesystem: true
...@@ -41,17 +41,13 @@ service: ...@@ -41,17 +41,13 @@ service:
type: ClusterIP type: ClusterIP
port: 80 port: 80
resources: {} resources:
# We usually recommend not to specify default resources and to leave this as a conscious limits:
# choice for the user. This also increases chances charts run on environments with little cpu: 100m
# resources, such as Minikube. If you do want to specify resources, uncomment the following memory: 128Mi
# lines, adjust them as necessary, and remove the curly braces after 'resources:'. requests:
# limits: cpu: 100m
# cpu: 100m memory: 128Mi
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
nodeSelector: {} nodeSelector: {}
......
apiVersion: apps/v1 apiVersion: batch/v1
kind: Deployment kind: Job
metadata: metadata:
name: {{ .Chart.Name }} name: {{ .Chart.Name }}
labels:
{{- include "oai-ldpctest.labels" . | nindent 4 }}
spec: spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "oai-ldpctest.selectorLabels" . | nindent 6 }}
strategy:
type: Recreate
template: template:
metadata:
labels:
{{- include "oai-ldpctest.selectorLabels" . | nindent 8 }}
spec: spec:
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
...@@ -28,8 +17,6 @@ spec: ...@@ -28,8 +17,6 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
securityContext: securityContext:
{{- toYaml .Values.securityContext | nindent 12 }} {{- toYaml .Values.securityContext | nindent 12 }}
ports:
- containerPort: 80
env: env:
- name: OPENAIR_DIR - name: OPENAIR_DIR
value: /opt/oai-physim value: /opt/oai-physim
...@@ -37,9 +24,9 @@ spec: ...@@ -37,9 +24,9 @@ spec:
args: args:
- > - >
cmake_targets/autotests/run_exec_autotests.bash -g "ldpctest" -d bin/ && cmake_targets/autotests/run_exec_autotests.bash -g "ldpctest" -d bin/ &&
echo "FINISHED" && sleep infinity echo "FINISHED"
dnsPolicy: ClusterFirst dnsPolicy: ClusterFirst
restartPolicy: Always restartPolicy: Never
schedulerName: default-scheduler schedulerName: default-scheduler
serviceAccountName: {{ .Values.global.serviceAccountName }} serviceAccountName: {{ .Values.global.serviceAccountName }}
terminationGracePeriodSeconds: 30 terminationGracePeriodSeconds: 30
...@@ -27,10 +27,10 @@ podSecurityContext: ...@@ -27,10 +27,10 @@ podSecurityContext:
runAsGroup: 0 runAsGroup: 0
securityContext: securityContext:
privileged: true privileged: false
capabilities: # capabilities:
add: # add:
- SYS_CAP_PTRACE # - SYS_CAP_PTRACE
# drop: # drop:
# - ALL # - ALL
# readOnlyRootFilesystem: true # readOnlyRootFilesystem: true
......
apiVersion: apps/v1 apiVersion: batch/v1
kind: Deployment kind: Job
metadata: metadata:
name: {{ .Chart.Name }} name: {{ .Chart.Name }}
labels:
{{- include "oai-nr-dlschsim.labels" . | nindent 4 }}
spec: spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "oai-nr-dlschsim.selectorLabels" . | nindent 6 }}
strategy:
type: Recreate
template: template:
metadata:
labels:
{{- include "oai-nr-dlschsim.selectorLabels" . | nindent 8 }}
spec: spec:
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
...@@ -28,8 +17,6 @@ spec: ...@@ -28,8 +17,6 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
securityContext: securityContext:
{{- toYaml .Values.securityContext | nindent 12 }} {{- toYaml .Values.securityContext | nindent 12 }}
ports:
- containerPort: 80
env: env:
- name: OPENAIR_DIR - name: OPENAIR_DIR
value: /opt/oai-physim value: /opt/oai-physim
...@@ -37,9 +24,9 @@ spec: ...@@ -37,9 +24,9 @@ spec:
args: args:
- > - >
cmake_targets/autotests/run_exec_autotests.bash -g "nr_dlschsim" -d bin/ && cmake_targets/autotests/run_exec_autotests.bash -g "nr_dlschsim" -d bin/ &&
echo "FINISHED" && sleep infinity echo "FINISHED"
dnsPolicy: ClusterFirst dnsPolicy: ClusterFirst
restartPolicy: Always restartPolicy: Never
schedulerName: default-scheduler schedulerName: default-scheduler
serviceAccountName: {{ .Values.global.serviceAccountName }} serviceAccountName: {{ .Values.global.serviceAccountName }}
terminationGracePeriodSeconds: 30 terminationGracePeriodSeconds: 30
...@@ -27,10 +27,10 @@ podSecurityContext: ...@@ -27,10 +27,10 @@ podSecurityContext:
runAsGroup: 0 runAsGroup: 0
securityContext: securityContext:
privileged: true privileged: false
capabilities: # capabilities:
add: # add:
- SYS_CAP_PTRACE # - SYS_CAP_PTRACE
# drop: # drop:
# - ALL # - ALL
# readOnlyRootFilesystem: true # readOnlyRootFilesystem: true
......
apiVersion: apps/v1 apiVersion: batch/v1
kind: Deployment kind: Job
metadata: metadata:
name: {{ .Chart.Name }} name: {{ .Chart.Name }}
labels:
{{- include "oai-nr-dlsim-basic.labels" . | nindent 4 }}
spec: spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "oai-nr-dlsim-basic.selectorLabels" . | nindent 6 }}
strategy:
type: Recreate
template: template:
metadata:
labels:
{{- include "oai-nr-dlsim-basic.selectorLabels" . | nindent 8 }}
spec: spec:
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
...@@ -28,8 +17,6 @@ spec: ...@@ -28,8 +17,6 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
securityContext: securityContext:
{{- toYaml .Values.securityContext | nindent 12 }} {{- toYaml .Values.securityContext | nindent 12 }}
ports:
- containerPort: 80
env: env:
- name: OPENAIR_DIR - name: OPENAIR_DIR
value: /opt/oai-physim value: /opt/oai-physim
...@@ -37,9 +24,9 @@ spec: ...@@ -37,9 +24,9 @@ spec:
args: args:
- > - >
cmake_targets/autotests/run_exec_autotests.bash -g "nr_dlsim.basic" -d bin/ && cmake_targets/autotests/run_exec_autotests.bash -g "nr_dlsim.basic" -d bin/ &&
echo "FINISHED" && sleep infinity echo "FINISHED"
dnsPolicy: ClusterFirst dnsPolicy: ClusterFirst
restartPolicy: Always restartPolicy: Never
schedulerName: default-scheduler schedulerName: default-scheduler
serviceAccountName: {{ .Values.global.serviceAccountName }} serviceAccountName: {{ .Values.global.serviceAccountName }}
terminationGracePeriodSeconds: 30 terminationGracePeriodSeconds: 30
...@@ -27,10 +27,10 @@ podSecurityContext: ...@@ -27,10 +27,10 @@ podSecurityContext:
runAsGroup: 0 runAsGroup: 0
securityContext: securityContext:
privileged: true privileged: false
capabilities: # capabilities:
add: # add:
- SYS_CAP_PTRACE # - SYS_CAP_PTRACE
# drop: # drop:
# - ALL # - ALL
# readOnlyRootFilesystem: true # readOnlyRootFilesystem: true
......
apiVersion: apps/v1 apiVersion: batch/v1
kind: Deployment kind: Job
metadata: metadata:
name: {{ .Chart.Name }} name: {{ .Chart.Name }}
labels:
{{- include "oai-nr-dlsim-dmrs-ptrs.labels" . | nindent 4 }}
spec: spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "oai-nr-dlsim-dmrs-ptrs.selectorLabels" . | nindent 6 }}
strategy:
type: Recreate
template: template:
metadata:
labels:
{{- include "oai-nr-dlsim-dmrs-ptrs.selectorLabels" . | nindent 8 }}
spec: spec:
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
...@@ -28,8 +17,6 @@ spec: ...@@ -28,8 +17,6 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
securityContext: securityContext:
{{- toYaml .Values.securityContext | nindent 12 }} {{- toYaml .Values.securityContext | nindent 12 }}
ports:
- containerPort: 80
env: env:
- name: OPENAIR_DIR - name: OPENAIR_DIR
value: /opt/oai-physim value: /opt/oai-physim
...@@ -37,9 +24,9 @@ spec: ...@@ -37,9 +24,9 @@ spec:
args: args:
- > - >
cmake_targets/autotests/run_exec_autotests.bash -g "nr_dlsim.dmrs+ptrs" -d bin/ && cmake_targets/autotests/run_exec_autotests.bash -g "nr_dlsim.dmrs+ptrs" -d bin/ &&
echo "FINISHED" && sleep infinity echo "FINISHED"
dnsPolicy: ClusterFirst dnsPolicy: ClusterFirst
restartPolicy: Always restartPolicy: Never
schedulerName: default-scheduler schedulerName: default-scheduler
serviceAccountName: {{ .Values.global.serviceAccountName }} serviceAccountName: {{ .Values.global.serviceAccountName }}
terminationGracePeriodSeconds: 30 terminationGracePeriodSeconds: 30
...@@ -27,10 +27,10 @@ podSecurityContext: ...@@ -27,10 +27,10 @@ podSecurityContext:
runAsGroup: 0 runAsGroup: 0
securityContext: securityContext:
privileged: true privileged: false
capabilities: # capabilities:
add: # add:
- SYS_CAP_PTRACE # - SYS_CAP_PTRACE
# drop: # drop:
# - ALL # - ALL
# readOnlyRootFilesystem: true # readOnlyRootFilesystem: true
......
apiVersion: apps/v1 apiVersion: batch/v1
kind: Deployment kind: Job
metadata: metadata:
name: {{ .Chart.Name }} name: {{ .Chart.Name }}
labels:
{{- include "oai-nr-dlsim-mcs-mimo.labels" . | nindent 4 }}
spec: spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "oai-nr-dlsim-mcs-mimo.selectorLabels" . | nindent 6 }}
strategy:
type: Recreate
template: template:
metadata:
labels:
{{- include "oai-nr-dlsim-mcs-mimo.selectorLabels" . | nindent 8 }}
spec: spec:
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
...@@ -28,8 +17,6 @@ spec: ...@@ -28,8 +17,6 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
securityContext: securityContext:
{{- toYaml .Values.securityContext | nindent 12 }} {{- toYaml .Values.securityContext | nindent 12 }}
ports:
- containerPort: 80
env: env:
- name: OPENAIR_DIR - name: OPENAIR_DIR
value: /opt/oai-physim value: /opt/oai-physim
...@@ -37,9 +24,9 @@ spec: ...@@ -37,9 +24,9 @@ spec:
args: args:
- > - >
cmake_targets/autotests/run_exec_autotests.bash -g "nr_dlsim.mcs+mimo" -d bin/ && cmake_targets/autotests/run_exec_autotests.bash -g "nr_dlsim.mcs+mimo" -d bin/ &&
echo "FINISHED" && sleep infinity echo "FINISHED"
dnsPolicy: ClusterFirst dnsPolicy: ClusterFirst
restartPolicy: Always restartPolicy: Never
schedulerName: default-scheduler schedulerName: default-scheduler
serviceAccountName: {{ .Values.global.serviceAccountName }} serviceAccountName: {{ .Values.global.serviceAccountName }}
terminationGracePeriodSeconds: 30 terminationGracePeriodSeconds: 30
...@@ -27,10 +27,10 @@ podSecurityContext: ...@@ -27,10 +27,10 @@ podSecurityContext:
runAsGroup: 0 runAsGroup: 0
securityContext: securityContext:
privileged: true privileged: false
capabilities: # capabilities:
add: # add:
- SYS_CAP_PTRACE # - SYS_CAP_PTRACE
# drop: # drop:
# - ALL # - ALL
# readOnlyRootFilesystem: true # readOnlyRootFilesystem: true
......
apiVersion: apps/v1 apiVersion: batch/v1
kind: Deployment kind: Job
metadata: metadata:
name: {{ .Chart.Name }} name: {{ .Chart.Name }}
labels:
{{- include "oai-nr-dlsim-offset.labels" . | nindent 4 }}
spec: spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "oai-nr-dlsim-offset.selectorLabels" . | nindent 6 }}
strategy:
type: Recreate
template: template:
metadata:
labels:
{{- include "oai-nr-dlsim-offset.selectorLabels" . | nindent 8 }}
spec: spec:
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
...@@ -28,8 +17,6 @@ spec: ...@@ -28,8 +17,6 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
securityContext: securityContext:
{{- toYaml .Values.securityContext | nindent 12 }} {{- toYaml .Values.securityContext | nindent 12 }}
ports:
- containerPort: 80
env: env:
- name: OPENAIR_DIR - name: OPENAIR_DIR
value: /opt/oai-physim value: /opt/oai-physim
...@@ -37,9 +24,9 @@ spec: ...@@ -37,9 +24,9 @@ spec:
args: args:
- > - >
cmake_targets/autotests/run_exec_autotests.bash -g "nr_dlsim.offset" -d bin/ && cmake_targets/autotests/run_exec_autotests.bash -g "nr_dlsim.offset" -d bin/ &&
echo "FINISHED" && sleep infinity echo "FINISHED"
dnsPolicy: ClusterFirst dnsPolicy: ClusterFirst
restartPolicy: Always restartPolicy: Never
schedulerName: default-scheduler schedulerName: default-scheduler
serviceAccountName: {{ .Values.global.serviceAccountName }} serviceAccountName: {{ .Values.global.serviceAccountName }}
terminationGracePeriodSeconds: 30 terminationGracePeriodSeconds: 30
...@@ -27,10 +27,10 @@ podSecurityContext: ...@@ -27,10 +27,10 @@ podSecurityContext:
runAsGroup: 0 runAsGroup: 0
securityContext: securityContext:
privileged: true privileged: false
capabilities: # capabilities:
add: # add:
- SYS_CAP_PTRACE # - SYS_CAP_PTRACE
# drop: # drop:
# - ALL # - ALL
# readOnlyRootFilesystem: true # readOnlyRootFilesystem: true
......
apiVersion: apps/v1 apiVersion: batch/v1
kind: Deployment kind: Job
metadata: metadata:
name: {{ .Chart.Name }} name: {{ .Chart.Name }}
labels:
{{- include "oai-nr-pbchsim-106rb.labels" . | nindent 4 }}
spec: spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "oai-nr-pbchsim-106rb.selectorLabels" . | nindent 6 }}
strategy:
type: Recreate
template: template:
metadata: metadata:
labels: labels:
...@@ -28,8 +20,6 @@ spec: ...@@ -28,8 +20,6 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
securityContext: securityContext:
{{- toYaml .Values.securityContext | nindent 12 }} {{- toYaml .Values.securityContext | nindent 12 }}
ports:
- containerPort: 80
env: env:
- name: OPENAIR_DIR - name: OPENAIR_DIR
value: /opt/oai-physim value: /opt/oai-physim
...@@ -37,9 +27,9 @@ spec: ...@@ -37,9 +27,9 @@ spec:
args: args:
- > - >
cmake_targets/autotests/run_exec_autotests.bash -g "nr_pbchsim.106rb" -d bin/ && cmake_targets/autotests/run_exec_autotests.bash -g "nr_pbchsim.106rb" -d bin/ &&
echo "FINISHED" && sleep infinity echo "FINISHED"
dnsPolicy: ClusterFirst dnsPolicy: ClusterFirst
restartPolicy: Always restartPolicy: Never
schedulerName: default-scheduler schedulerName: default-scheduler
serviceAccountName: {{ .Values.global.serviceAccountName }} serviceAccountName: {{ .Values.global.serviceAccountName }}
terminationGracePeriodSeconds: 30 terminationGracePeriodSeconds: 30
...@@ -27,10 +27,10 @@ podSecurityContext: ...@@ -27,10 +27,10 @@ podSecurityContext:
runAsGroup: 0 runAsGroup: 0
securityContext: securityContext:
privileged: true privileged: false
capabilities: # capabilities:
add: # add:
- SYS_CAP_PTRACE # - SYS_CAP_PTRACE
# drop: # drop:
# - ALL # - ALL
# readOnlyRootFilesystem: true # readOnlyRootFilesystem: true
......
apiVersion: apps/v1 apiVersion: batch/v1
kind: Deployment kind: Job
metadata: metadata:
name: {{ .Chart.Name }} name: {{ .Chart.Name }}
labels:
{{- include "oai-nr-pbchsim-217rb.labels" . | nindent 4 }}
spec: spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "oai-nr-pbchsim-217rb.selectorLabels" . | nindent 6 }}
strategy:
type: Recreate
template: template:
metadata:
labels:
{{- include "oai-nr-pbchsim-217rb.selectorLabels" . | nindent 8 }}
spec: spec:
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
...@@ -28,8 +17,6 @@ spec: ...@@ -28,8 +17,6 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
securityContext: securityContext:
{{- toYaml .Values.securityContext | nindent 12 }} {{- toYaml .Values.securityContext | nindent 12 }}
ports:
- containerPort: 80
env: env:
- name: OPENAIR_DIR - name: OPENAIR_DIR
value: /opt/oai-physim value: /opt/oai-physim
...@@ -37,9 +24,9 @@ spec: ...@@ -37,9 +24,9 @@ spec:
args: args:
- > - >
cmake_targets/autotests/run_exec_autotests.bash -g "nr_pbchsim.217rb" -d bin/ && cmake_targets/autotests/run_exec_autotests.bash -g "nr_pbchsim.217rb" -d bin/ &&
echo "FINISHED" && sleep infinity echo "FINISHED"
dnsPolicy: ClusterFirst dnsPolicy: ClusterFirst
restartPolicy: Always restartPolicy: Never
schedulerName: default-scheduler schedulerName: default-scheduler
serviceAccountName: {{ .Values.global.serviceAccountName }} serviceAccountName: {{ .Values.global.serviceAccountName }}
terminationGracePeriodSeconds: 30 terminationGracePeriodSeconds: 30
...@@ -27,10 +27,10 @@ podSecurityContext: ...@@ -27,10 +27,10 @@ podSecurityContext:
runAsGroup: 0 runAsGroup: 0
securityContext: securityContext:
privileged: true privileged: false
capabilities: # capabilities:
add: # add:
- SYS_CAP_PTRACE # - SYS_CAP_PTRACE
# drop: # drop:
# - ALL # - ALL
# readOnlyRootFilesystem: true # readOnlyRootFilesystem: true
......
apiVersion: apps/v1 apiVersion: batch/v1
kind: Deployment kind: Job
metadata: metadata:
name: {{ .Chart.Name }} name: {{ .Chart.Name }}
labels:
{{- include "oai-nr-pbchsim-273rb.labels" . | nindent 4 }}
spec: spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "oai-nr-pbchsim-273rb.selectorLabels" . | nindent 6 }}
strategy:
type: Recreate
template: template:
metadata:
labels:
{{- include "oai-nr-pbchsim-273rb.selectorLabels" . | nindent 8 }}
spec: spec:
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
...@@ -28,8 +17,6 @@ spec: ...@@ -28,8 +17,6 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
securityContext: securityContext:
{{- toYaml .Values.securityContext | nindent 12 }} {{- toYaml .Values.securityContext | nindent 12 }}
ports:
- containerPort: 80
env: env:
- name: OPENAIR_DIR - name: OPENAIR_DIR
value: /opt/oai-physim value: /opt/oai-physim
...@@ -37,9 +24,9 @@ spec: ...@@ -37,9 +24,9 @@ spec:
args: args:
- > - >
cmake_targets/autotests/run_exec_autotests.bash -g "nr_pbchsim.273rb" -d bin/ && cmake_targets/autotests/run_exec_autotests.bash -g "nr_pbchsim.273rb" -d bin/ &&
echo "FINISHED" && sleep infinity echo "FINISHED"
dnsPolicy: ClusterFirst dnsPolicy: ClusterFirst
restartPolicy: Always restartPolicy: Never
schedulerName: default-scheduler schedulerName: default-scheduler
serviceAccountName: {{ .Values.global.serviceAccountName }} serviceAccountName: {{ .Values.global.serviceAccountName }}
terminationGracePeriodSeconds: 30 terminationGracePeriodSeconds: 30
...@@ -27,10 +27,10 @@ podSecurityContext: ...@@ -27,10 +27,10 @@ podSecurityContext:
runAsGroup: 0 runAsGroup: 0
securityContext: securityContext:
privileged: true privileged: false
capabilities: # capabilities:
add: # add:
- SYS_CAP_PTRACE # - SYS_CAP_PTRACE
# drop: # drop:
# - ALL # - ALL
# readOnlyRootFilesystem: true # readOnlyRootFilesystem: true
......
apiVersion: apps/v1 apiVersion: batch/v1
kind: Deployment kind: Job
metadata: metadata:
name: {{ .Chart.Name }} name: {{ .Chart.Name }}
labels:
{{- include "oai-nr-prachsim.labels" . | nindent 4 }}
spec: spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "oai-nr-prachsim.selectorLabels" . | nindent 6 }}
strategy:
type: Recreate
template: template:
metadata:
labels:
{{- include "oai-nr-prachsim.selectorLabels" . | nindent 8 }}
spec: spec:
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
...@@ -28,8 +17,6 @@ spec: ...@@ -28,8 +17,6 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
securityContext: securityContext:
{{- toYaml .Values.securityContext | nindent 12 }} {{- toYaml .Values.securityContext | nindent 12 }}
ports:
- containerPort: 80
env: env:
- name: OPENAIR_DIR - name: OPENAIR_DIR
value: /opt/oai-physim value: /opt/oai-physim
...@@ -37,9 +24,9 @@ spec: ...@@ -37,9 +24,9 @@ spec:
args: args:
- > - >
cmake_targets/autotests/run_exec_autotests.bash -g "nr_prachsim" -d bin/ && cmake_targets/autotests/run_exec_autotests.bash -g "nr_prachsim" -d bin/ &&
echo "FINISHED" && sleep infinity echo "FINISHED"
dnsPolicy: ClusterFirst dnsPolicy: ClusterFirst
restartPolicy: Always restartPolicy: Never
schedulerName: default-scheduler schedulerName: default-scheduler
serviceAccountName: {{ .Values.global.serviceAccountName }} serviceAccountName: {{ .Values.global.serviceAccountName }}
terminationGracePeriodSeconds: 30 terminationGracePeriodSeconds: 30
...@@ -27,10 +27,10 @@ podSecurityContext: ...@@ -27,10 +27,10 @@ podSecurityContext:
runAsGroup: 0 runAsGroup: 0
securityContext: securityContext:
privileged: true privileged: false
capabilities: # capabilities:
add: # add:
- SYS_CAP_PTRACE # - SYS_CAP_PTRACE
# drop: # drop:
# - ALL # - ALL
# readOnlyRootFilesystem: true # readOnlyRootFilesystem: true
......
apiVersion: apps/v1 apiVersion: batch/v1
kind: Deployment kind: Job
metadata: metadata:
name: {{ .Chart.Name }} name: {{ .Chart.Name }}
labels:
{{- include "oai-nr-pucchsim.labels" . | nindent 4 }}
spec: spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "oai-nr-pucchsim.selectorLabels" . | nindent 6 }}
strategy:
type: Recreate
template: template:
metadata:
labels:
{{- include "oai-nr-pucchsim.selectorLabels" . | nindent 8 }}
spec: spec:
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
...@@ -28,8 +17,6 @@ spec: ...@@ -28,8 +17,6 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
securityContext: securityContext:
{{- toYaml .Values.securityContext | nindent 12 }} {{- toYaml .Values.securityContext | nindent 12 }}
ports:
- containerPort: 80
env: env:
- name: OPENAIR_DIR - name: OPENAIR_DIR
value: /opt/oai-physim value: /opt/oai-physim
...@@ -37,9 +24,9 @@ spec: ...@@ -37,9 +24,9 @@ spec:
args: args:
- > - >
cmake_targets/autotests/run_exec_autotests.bash -g "nr_pucchsim" -d bin/ && cmake_targets/autotests/run_exec_autotests.bash -g "nr_pucchsim" -d bin/ &&
echo "FINISHED" && sleep infinity echo "FINISHED"
dnsPolicy: ClusterFirst dnsPolicy: ClusterFirst
restartPolicy: Always restartPolicy: Never
schedulerName: default-scheduler schedulerName: default-scheduler
serviceAccountName: {{ .Values.global.serviceAccountName }} serviceAccountName: {{ .Values.global.serviceAccountName }}
terminationGracePeriodSeconds: 30 terminationGracePeriodSeconds: 30
...@@ -27,10 +27,10 @@ podSecurityContext: ...@@ -27,10 +27,10 @@ podSecurityContext:
runAsGroup: 0 runAsGroup: 0
securityContext: securityContext:
privileged: true privileged: false
capabilities: # capabilities:
add: # add:
- SYS_CAP_PTRACE # - SYS_CAP_PTRACE
# drop: # drop:
# - ALL # - ALL
# readOnlyRootFilesystem: true # readOnlyRootFilesystem: true
......
apiVersion: apps/v1 apiVersion: batch/v1
kind: Deployment kind: Job
metadata: metadata:
name: {{ .Chart.Name }} name: {{ .Chart.Name }}
labels:
{{- include "oai-nr-ulschsim.labels" . | nindent 4 }}
spec: spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "oai-nr-ulschsim.selectorLabels" . | nindent 6 }}
strategy:
type: Recreate
template: template:
metadata:
labels:
{{- include "oai-nr-ulschsim.selectorLabels" . | nindent 8 }}
spec: spec:
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
...@@ -28,8 +17,6 @@ spec: ...@@ -28,8 +17,6 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
securityContext: securityContext:
{{- toYaml .Values.securityContext | nindent 12 }} {{- toYaml .Values.securityContext | nindent 12 }}
ports:
- containerPort: 80
env: env:
- name: OPENAIR_DIR - name: OPENAIR_DIR
value: /opt/oai-physim value: /opt/oai-physim
...@@ -37,9 +24,9 @@ spec: ...@@ -37,9 +24,9 @@ spec:
args: args:
- > - >
cmake_targets/autotests/run_exec_autotests.bash -g "nr_ulschsim" -d bin/ && cmake_targets/autotests/run_exec_autotests.bash -g "nr_ulschsim" -d bin/ &&
echo "FINISHED" && sleep infinity echo "FINISHED"
dnsPolicy: ClusterFirst dnsPolicy: ClusterFirst
restartPolicy: Always restartPolicy: Never
schedulerName: default-scheduler schedulerName: default-scheduler
serviceAccountName: {{ .Values.global.serviceAccountName }} serviceAccountName: {{ .Values.global.serviceAccountName }}
terminationGracePeriodSeconds: 30 terminationGracePeriodSeconds: 30
...@@ -27,10 +27,10 @@ podSecurityContext: ...@@ -27,10 +27,10 @@ podSecurityContext:
runAsGroup: 0 runAsGroup: 0
securityContext: securityContext:
privileged: true privileged: false
capabilities: # capabilities:
add: # add:
- SYS_CAP_PTRACE # - SYS_CAP_PTRACE
# drop: # drop:
# - ALL # - ALL
# readOnlyRootFilesystem: true # readOnlyRootFilesystem: true
......
apiVersion: apps/v1 apiVersion: batch/v1
kind: Deployment kind: Job
metadata: metadata:
name: {{ .Chart.Name }} name: {{ .Chart.Name }}
labels:
{{- include "oai-nr-ulsim-3gpp.labels" . | nindent 4 }}
spec: spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "oai-nr-ulsim-3gpp.selectorLabels" . | nindent 6 }}
strategy:
type: Recreate
template: template:
metadata:
labels:
{{- include "oai-nr-ulsim-3gpp.selectorLabels" . | nindent 8 }}
spec: spec:
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
...@@ -28,8 +17,6 @@ spec: ...@@ -28,8 +17,6 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
securityContext: securityContext:
{{- toYaml .Values.securityContext | nindent 12 }} {{- toYaml .Values.securityContext | nindent 12 }}
ports:
- containerPort: 80
env: env:
- name: OPENAIR_DIR - name: OPENAIR_DIR
value: /opt/oai-physim value: /opt/oai-physim
...@@ -37,9 +24,9 @@ spec: ...@@ -37,9 +24,9 @@ spec:
args: args:
- > - >
cmake_targets/autotests/run_exec_autotests.bash -g "nr_ulsim.3gpp" -d bin/ && cmake_targets/autotests/run_exec_autotests.bash -g "nr_ulsim.3gpp" -d bin/ &&
echo "FINISHED" && sleep infinity echo "FINISHED"
dnsPolicy: ClusterFirst dnsPolicy: ClusterFirst
restartPolicy: Always restartPolicy: Never
schedulerName: default-scheduler schedulerName: default-scheduler
serviceAccountName: {{ .Values.global.serviceAccountName }} serviceAccountName: {{ .Values.global.serviceAccountName }}
terminationGracePeriodSeconds: 30 terminationGracePeriodSeconds: 30
...@@ -27,10 +27,10 @@ podSecurityContext: ...@@ -27,10 +27,10 @@ podSecurityContext:
runAsGroup: 0 runAsGroup: 0
securityContext: securityContext:
privileged: true privileged: false
capabilities: # capabilities:
add: # add:
- SYS_CAP_PTRACE # - SYS_CAP_PTRACE
# drop: # drop:
# - ALL # - ALL
# readOnlyRootFilesystem: true # readOnlyRootFilesystem: true
......
apiVersion: apps/v1 apiVersion: batch/v1
kind: Deployment kind: Job
metadata: metadata:
name: {{ .Chart.Name }} name: {{ .Chart.Name }}
labels:
{{- include "oai-nr-ulsim-mimo.labels" . | nindent 4 }}
spec: spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "oai-nr-ulsim-mimo.selectorLabels" . | nindent 6 }}
strategy:
type: Recreate
template: template:
metadata:
labels:
{{- include "oai-nr-ulsim-mimo.selectorLabels" . | nindent 8 }}
spec: spec:
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
...@@ -28,8 +17,6 @@ spec: ...@@ -28,8 +17,6 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
securityContext: securityContext:
{{- toYaml .Values.securityContext | nindent 12 }} {{- toYaml .Values.securityContext | nindent 12 }}
ports:
- containerPort: 80
env: env:
- name: OPENAIR_DIR - name: OPENAIR_DIR
value: /opt/oai-physim value: /opt/oai-physim
...@@ -37,9 +24,9 @@ spec: ...@@ -37,9 +24,9 @@ spec:
args: args:
- > - >
cmake_targets/autotests/run_exec_autotests.bash -g "nr_ulsim.mimo" -d bin/ && cmake_targets/autotests/run_exec_autotests.bash -g "nr_ulsim.mimo" -d bin/ &&
echo "FINISHED" && sleep infinity echo "FINISHED"
dnsPolicy: ClusterFirst dnsPolicy: ClusterFirst
restartPolicy: Always restartPolicy: Never
schedulerName: default-scheduler schedulerName: default-scheduler
serviceAccountName: {{ .Values.global.serviceAccountName }} serviceAccountName: {{ .Values.global.serviceAccountName }}
terminationGracePeriodSeconds: 30 terminationGracePeriodSeconds: 30
...@@ -27,10 +27,10 @@ podSecurityContext: ...@@ -27,10 +27,10 @@ podSecurityContext:
runAsGroup: 0 runAsGroup: 0
securityContext: securityContext:
privileged: true privileged: false
capabilities: # capabilities:
add: # add:
- SYS_CAP_PTRACE # - SYS_CAP_PTRACE
# drop: # drop:
# - ALL # - ALL
# readOnlyRootFilesystem: true # readOnlyRootFilesystem: true
......
apiVersion: apps/v1 apiVersion: batch/v1
kind: Deployment kind: Job
metadata: metadata:
name: {{ .Chart.Name }} name: {{ .Chart.Name }}
labels:
{{- include "oai-nr-ulsim-misc.labels" . | nindent 4 }}
spec: spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "oai-nr-ulsim-misc.selectorLabels" . | nindent 6 }}
strategy:
type: Recreate
template: template:
metadata:
labels:
{{- include "oai-nr-ulsim-misc.selectorLabels" . | nindent 8 }}
spec: spec:
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
...@@ -28,8 +17,6 @@ spec: ...@@ -28,8 +17,6 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
securityContext: securityContext:
{{- toYaml .Values.securityContext | nindent 12 }} {{- toYaml .Values.securityContext | nindent 12 }}
ports:
- containerPort: 80
env: env:
- name: OPENAIR_DIR - name: OPENAIR_DIR
value: /opt/oai-physim value: /opt/oai-physim
...@@ -37,9 +24,9 @@ spec: ...@@ -37,9 +24,9 @@ spec:
args: args:
- > - >
cmake_targets/autotests/run_exec_autotests.bash -g "nr_ulsim.misc" -d bin/ && cmake_targets/autotests/run_exec_autotests.bash -g "nr_ulsim.misc" -d bin/ &&
echo "FINISHED" && sleep infinity echo "FINISHED"
dnsPolicy: ClusterFirst dnsPolicy: ClusterFirst
restartPolicy: Always restartPolicy: Never
schedulerName: default-scheduler schedulerName: default-scheduler
serviceAccountName: {{ .Values.global.serviceAccountName }} serviceAccountName: {{ .Values.global.serviceAccountName }}
terminationGracePeriodSeconds: 30 terminationGracePeriodSeconds: 30
...@@ -27,10 +27,10 @@ podSecurityContext: ...@@ -27,10 +27,10 @@ podSecurityContext:
runAsGroup: 0 runAsGroup: 0
securityContext: securityContext:
privileged: true privileged: false
capabilities: # capabilities:
add: # add:
- SYS_CAP_PTRACE # - SYS_CAP_PTRACE
# drop: # drop:
# - ALL # - ALL
# readOnlyRootFilesystem: true # readOnlyRootFilesystem: true
......
apiVersion: apps/v1 apiVersion: batch/v1
kind: Deployment kind: Job
metadata: metadata:
name: {{ .Chart.Name }} name: {{ .Chart.Name }}
labels:
{{- include "oai-nr-ulsim-sc-fdma.labels" . | nindent 4 }}
spec: spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "oai-nr-ulsim-sc-fdma.selectorLabels" . | nindent 6 }}
strategy:
type: Recreate
template: template:
metadata:
labels:
{{- include "oai-nr-ulsim-sc-fdma.selectorLabels" . | nindent 8 }}
spec: spec:
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
...@@ -37,9 +26,9 @@ spec: ...@@ -37,9 +26,9 @@ spec:
args: args:
- > - >
cmake_targets/autotests/run_exec_autotests.bash -g "nr_ulsim.sc-fdma" -d bin/ && cmake_targets/autotests/run_exec_autotests.bash -g "nr_ulsim.sc-fdma" -d bin/ &&
echo "FINISHED" && sleep infinity echo "FINISHED"
dnsPolicy: ClusterFirst dnsPolicy: ClusterFirst
restartPolicy: Always restartPolicy: Never
schedulerName: default-scheduler schedulerName: default-scheduler
serviceAccountName: {{ .Values.global.serviceAccountName }} serviceAccountName: {{ .Values.global.serviceAccountName }}
terminationGracePeriodSeconds: 30 terminationGracePeriodSeconds: 30
...@@ -27,10 +27,10 @@ podSecurityContext: ...@@ -27,10 +27,10 @@ podSecurityContext:
runAsGroup: 0 runAsGroup: 0
securityContext: securityContext:
privileged: true privileged: false
capabilities: # capabilities:
add: # add:
- SYS_CAP_PTRACE # - SYS_CAP_PTRACE
# drop: # drop:
# - ALL # - ALL
# readOnlyRootFilesystem: true # readOnlyRootFilesystem: true
......
apiVersion: apps/v1 apiVersion: batch/v1
kind: Deployment kind: Job
metadata: metadata:
name: {{ .Chart.Name }} name: {{ .Chart.Name }}
labels:
{{- include "oai-polartest.labels" . | nindent 4 }}
spec: spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "oai-polartest.selectorLabels" . | nindent 6 }}
strategy:
type: Recreate
template: template:
metadata:
labels:
{{- include "oai-polartest.selectorLabels" . | nindent 8 }}
spec: spec:
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
...@@ -28,8 +17,6 @@ spec: ...@@ -28,8 +17,6 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
securityContext: securityContext:
{{- toYaml .Values.securityContext | nindent 12 }} {{- toYaml .Values.securityContext | nindent 12 }}
ports:
- containerPort: 80
env: env:
- name: OPENAIR_DIR - name: OPENAIR_DIR
value: /opt/oai-physim value: /opt/oai-physim
...@@ -37,9 +24,9 @@ spec: ...@@ -37,9 +24,9 @@ spec:
args: args:
- > - >
cmake_targets/autotests/run_exec_autotests.bash -g "polartest" -d bin/ && cmake_targets/autotests/run_exec_autotests.bash -g "polartest" -d bin/ &&
echo "FINISHED" && sleep infinity echo "FINISHED"
dnsPolicy: ClusterFirst dnsPolicy: ClusterFirst
restartPolicy: Always restartPolicy: Never
schedulerName: default-scheduler schedulerName: default-scheduler
serviceAccountName: {{ .Values.global.serviceAccountName }} serviceAccountName: {{ .Values.global.serviceAccountName }}
terminationGracePeriodSeconds: 30 terminationGracePeriodSeconds: 30
...@@ -27,10 +27,10 @@ podSecurityContext: ...@@ -27,10 +27,10 @@ podSecurityContext:
runAsGroup: 0 runAsGroup: 0
securityContext: securityContext:
privileged: true privileged: false
capabilities: # capabilities:
add: # add:
- SYS_CAP_PTRACE # - SYS_CAP_PTRACE
# drop: # drop:
# - ALL # - ALL
# readOnlyRootFilesystem: true # readOnlyRootFilesystem: true
......
apiVersion: apps/v1 apiVersion: batch/v1
kind: Deployment kind: Job
metadata: metadata:
name: {{ .Chart.Name }} name: {{ .Chart.Name }}
labels:
{{- include "oai-smallblocktest.labels" . | nindent 4 }}
spec: spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "oai-smallblocktest.selectorLabels" . | nindent 6 }}
strategy:
type: Recreate
template: template:
metadata:
labels:
{{- include "oai-smallblocktest.selectorLabels" . | nindent 8 }}
spec: spec:
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
...@@ -28,8 +17,6 @@ spec: ...@@ -28,8 +17,6 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
securityContext: securityContext:
{{- toYaml .Values.securityContext | nindent 12 }} {{- toYaml .Values.securityContext | nindent 12 }}
ports:
- containerPort: 80
env: env:
- name: OPENAIR_DIR - name: OPENAIR_DIR
value: /opt/oai-physim value: /opt/oai-physim
...@@ -37,9 +24,9 @@ spec: ...@@ -37,9 +24,9 @@ spec:
args: args:
- > - >
cmake_targets/autotests/run_exec_autotests.bash -g "smallblocktest" -d bin/ && cmake_targets/autotests/run_exec_autotests.bash -g "smallblocktest" -d bin/ &&
echo "FINISHED" && sleep infinity echo "FINISHED"
dnsPolicy: ClusterFirst dnsPolicy: ClusterFirst
restartPolicy: Always restartPolicy: Never
schedulerName: default-scheduler schedulerName: default-scheduler
serviceAccountName: {{ .Values.global.serviceAccountName }} serviceAccountName: {{ .Values.global.serviceAccountName }}
terminationGracePeriodSeconds: 30 terminationGracePeriodSeconds: 30
...@@ -27,10 +27,10 @@ podSecurityContext: ...@@ -27,10 +27,10 @@ podSecurityContext:
runAsGroup: 0 runAsGroup: 0
securityContext: securityContext:
privileged: true privileged: false
capabilities: # capabilities:
add: # add:
- SYS_CAP_PTRACE # - SYS_CAP_PTRACE
# drop: # drop:
# - ALL # - ALL
# readOnlyRootFilesystem: true # readOnlyRootFilesystem: true
......
apiVersion: apps/v1 apiVersion: batch/v1
kind: Deployment kind: Job
metadata: metadata:
name: {{ .Chart.Name }} name: {{ .Chart.Name }}
labels:
{{- include "oai-ulsim.labels" . | nindent 4 }}
spec: spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "oai-ulsim.selectorLabels" . | nindent 6 }}
strategy:
type: Recreate
template: template:
metadata:
labels:
{{- include "oai-ulsim.selectorLabels" . | nindent 8 }}
spec: spec:
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
...@@ -28,8 +17,6 @@ spec: ...@@ -28,8 +17,6 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
securityContext: securityContext:
{{- toYaml .Values.securityContext | nindent 12 }} {{- toYaml .Values.securityContext | nindent 12 }}
ports:
- containerPort: 80
env: env:
- name: OPENAIR_DIR - name: OPENAIR_DIR
value: /opt/oai-physim value: /opt/oai-physim
...@@ -37,9 +24,9 @@ spec: ...@@ -37,9 +24,9 @@ spec:
args: args:
- > - >
cmake_targets/autotests/run_exec_autotests.bash -g "ulsim" -d bin/ && cmake_targets/autotests/run_exec_autotests.bash -g "ulsim" -d bin/ &&
echo "FINISHED" && sleep infinity echo "FINISHED"
dnsPolicy: ClusterFirst dnsPolicy: ClusterFirst
restartPolicy: Always restartPolicy: Never
schedulerName: default-scheduler schedulerName: default-scheduler
serviceAccountName: {{ .Values.global.serviceAccountName }} serviceAccountName: {{ .Values.global.serviceAccountName }}
terminationGracePeriodSeconds: 30 terminationGracePeriodSeconds: 30
...@@ -27,10 +27,10 @@ podSecurityContext: ...@@ -27,10 +27,10 @@ podSecurityContext:
runAsGroup: 0 runAsGroup: 0
securityContext: securityContext:
privileged: true privileged: false
capabilities: # capabilities:
add: # add:
- SYS_CAP_PTRACE # - SYS_CAP_PTRACE
# drop: # drop:
# - ALL # - ALL
# readOnlyRootFilesystem: true # readOnlyRootFilesystem: true
......
...@@ -6,7 +6,7 @@ rules: ...@@ -6,7 +6,7 @@ rules:
- apiGroups: - apiGroups:
- security.openshift.io - security.openshift.io
resourceNames: resourceNames:
- privileged - anyuid
resources: resources:
- securitycontextconstraints - securitycontextconstraints
verbs: verbs:
......
apiVersion: v1 apiVersion: v1
kind: ServiceAccount kind: ServiceAccount
metadata: metadata:
name: {{ .Values.global.serviceAccountName }} name: oai-physim-sa #{{ .Values.global.serviceAccountName }}
...@@ -12,130 +12,46 @@ global: ...@@ -12,130 +12,46 @@ global:
# pullPolicy: IfNotPresent or Never or Always # pullPolicy: IfNotPresent or Never or Always
pullPolicy: Always pullPolicy: Always
## Declaring values specific to coressponding physim to overwrite ## Declaring values specific to coressponding physim to overwrite (At the moment unused)
dlsim.basic: dlsim.basic:
replicaCount: 1
service:
type: ClusterIP
port: 80
dlsim.100rb+tm2: dlsim.100rb+tm2:
replicaCount: 1
service:
type: ClusterIP
port: 80
ulsim: ulsim:
replicaCount: 1
service:
type: ClusterIP
port: 80
ldpctest: ldpctest:
replicaCount: 1
service:
type: ClusterIP
port: 80
polartest: polartest:
replicaCount: 1
service:
type: ClusterIP
port: 80
nr-pbchsim.106rb: nr-pbchsim.106rb:
replicaCount: 1
service:
type: ClusterIP
port: 80
nr-pbchsim.217rb: nr-pbchsim.217rb:
replicaCount: 1
service:
type: ClusterIP
port: 80
nr-pbchsim.273rb: nr-pbchsim.273rb:
replicaCount: 1
service:
type: ClusterIP
port: 80
nr-dlsim.basic: nr-dlsim.basic:
replicaCount: 1
service:
type: ClusterIP
port: 80
nr-dlsim.dmrs+ptrs: nr-dlsim.dmrs+ptrs:
replicaCount: 1
service:
type: ClusterIP
port: 80
nr-dlsim.mcs+mimo: nr-dlsim.mcs+mimo:
replicaCount: 1
service:
type: ClusterIP
port: 80
nr-dlsim.offset: nr-dlsim.offset:
replicaCount: 1
service:
type: ClusterIP
port: 80
nr-dlschsim: nr-dlschsim:
replicaCount: 1
service:
type: ClusterIP
port: 80
smallblocktest: smallblocktest:
replicaCount: 1
service:
type: ClusterIP
port: 80
nr-ulschsim: nr-ulschsim:
replicaCount: 1
service:
type: ClusterIP
port: 80
nr-pucchsim: nr-pucchsim:
replicaCount: 1
service:
type: ClusterIP
port: 80
nr-ulsim.3gpp: nr-ulsim.3gpp:
replicaCount: 1
service:
type: ClusterIP
port: 80
nr-ulsim.mimo: nr-ulsim.mimo:
replicaCount: 1
service:
type: ClusterIP
port: 80
nr-ulsim.misc: nr-ulsim.misc:
replicaCount: 1
service:
type: ClusterIP
port: 80
nr-ulsim.sc-fdma: nr-ulsim.sc-fdma:
replicaCount: 1
service:
type: ClusterIP
port: 80
nr-prachsim: nr-prachsim:
replicaCount: 1
service:
type: ClusterIP
port: 80
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment