Skip to content

Commit

Permalink
TPC-H: no security context for jobs (loaders)
Browse files Browse the repository at this point in the history
  • Loading branch information
perdelt committed Jan 18, 2024
1 parent e879a9f commit 74e2fa5
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 36 deletions.
27 changes: 18 additions & 9 deletions k8s/jobtemplate-loading-tpch-MonetDB.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,6 @@ spec:
metadata:
labels: {app: bexhoma, component: loading, configuration: default, experiment: default, client: default}
spec:
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
runAsUser: 1000
runAsGroup: 1000
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
automountServiceAccountToken: false
imagePullSecrets:
- name: dockerhub
Expand All @@ -33,6 +24,15 @@ spec:
- name: datagenerator
image: bexhoma/generator_tpch:latest
imagePullPolicy: Always
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
runAsUser: 1000
runAsGroup: 1000
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
env:
- {name: BEXHOMA_HOST, value: 'bexhoma-sut-monetdb-aws-1658676533'}
- {name: BEXHOMA_PORT, value: '9091'}
Expand All @@ -55,6 +55,15 @@ spec:
- name: sensor
image: bexhoma/loader_tpch_monetdb:latest
imagePullPolicy: Always
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
runAsUser: 1000
runAsGroup: 1000
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
env:
- {name: BEXHOMA_HOST, value: 'bexhoma-sut-monetdb-aws-1658676533'}
- {name: BEXHOMA_PORT, value: '9091'}
Expand Down
27 changes: 18 additions & 9 deletions k8s/jobtemplate-loading-tpch-MySQL.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,6 @@ spec:
metadata:
labels: {app: bexhoma, component: loading, configuration: default, experiment: default, client: default}
spec:
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
runAsUser: 1000
runAsGroup: 1000
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
automountServiceAccountToken: false
imagePullSecrets:
- name: dockerhub
Expand All @@ -33,6 +24,15 @@ spec:
- name: datagenerator
image: bexhoma/generator_tpch:latest
imagePullPolicy: Always
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
runAsUser: 1000
runAsGroup: 1000
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
env:
- {name: BEXHOMA_HOST, value: 'bexhoma-sut-mysql-aws-1234567890'}
- {name: BEXHOMA_PORT, value: '9091'}
Expand All @@ -55,6 +55,15 @@ spec:
- name: sensor
image: bexhoma/loader_tpch_mysql:latest
imagePullPolicy: Always
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
runAsUser: 1000
runAsGroup: 1000
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
env:
- {name: BEXHOMA_HOST, value: 'bexhoma-sut-mysql-aws-1658676533'}
- {name: BEXHOMA_PORT, value: '9091'}
Expand Down
18 changes: 9 additions & 9 deletions k8s/jobtemplate-loading-tpch-NIL.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,6 @@ spec:
metadata:
labels: {app: bexhoma, component: loading, configuration: default, experiment: default, client: default}
spec:
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
runAsUser: 1000
runAsGroup: 1000
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
automountServiceAccountToken: false
imagePullSecrets:
- name: dockerhub
Expand All @@ -30,6 +21,15 @@ spec:
image: bexhoma/generator_tpch:latest
imagePullPolicy: Always
#imagePullPolicy: IfNotPresent
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
runAsUser: 1000
runAsGroup: 1000
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
env:
- {name: BEXHOMA_HOST, value: 'bexhoma-sut-nil-aws-1658676533'}
- {name: BEXHOMA_PORT, value: '9091'}
Expand Down
27 changes: 18 additions & 9 deletions k8s/jobtemplate-loading-tpch-PostgreSQL.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,6 @@ spec:
metadata:
labels: {app: bexhoma, component: loading, configuration: default, experiment: default, client: default}
spec:
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
runAsUser: 1000
runAsGroup: 1000
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
automountServiceAccountToken: false
imagePullSecrets:
- name: dockerhub
Expand All @@ -30,6 +21,15 @@ spec:
image: bexhoma/generator_tpch:latest
imagePullPolicy: Always
#imagePullPolicy: IfNotPresent
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
runAsUser: 1000
runAsGroup: 1000
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
env:
- {name: BEXHOMA_HOST, value: 'bexhoma-sut-postgresql-aws-1234567890'}
- {name: BEXHOMA_PORT, value: '9091'}
Expand All @@ -51,6 +51,15 @@ spec:
image: bexhoma/loader_tpch_postgresql:latest
imagePullPolicy: Always
#imagePullPolicy: IfNotPresent
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
runAsUser: 1000
runAsGroup: 1000
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
env:
- {name: BEXHOMA_HOST, value: 'bexhoma-sut-postgresql-aws-1658676533'}
- {name: BEXHOMA_PORT, value: '9091'}
Expand Down

0 comments on commit 74e2fa5

Please sign in to comment.