Skip to content
Snippets Groups Projects
Commit ff738b7b authored by Sagar Arora's avatar Sagar Arora :bicyclist_tone1:
Browse files

(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
No related branches found
No related tags found
No related merge requests found
Showing
with 93 additions and 217 deletions
...@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment