ci: Non-root for celery containers (#7368)
This commit is contained in:
parent
70c32254a9
commit
4e2b9ce7a6
|
@ -180,9 +180,6 @@ celery:
|
||||||
podAnnotations: {}
|
podAnnotations: {}
|
||||||
podLabels: {}
|
podLabels: {}
|
||||||
|
|
||||||
podSecurityContext: {}
|
|
||||||
# fsGroup: 2000
|
|
||||||
|
|
||||||
replicaCount: 1
|
replicaCount: 1
|
||||||
|
|
||||||
resources: {}
|
resources: {}
|
||||||
|
@ -197,13 +194,17 @@ celery:
|
||||||
# cpu: 100m
|
# cpu: 100m
|
||||||
# memory: 128Mi
|
# memory: 128Mi
|
||||||
|
|
||||||
securityContext: {}
|
podSecurityContext:
|
||||||
# capabilities:
|
runAsNonRoot: true
|
||||||
# drop:
|
|
||||||
# - ALL
|
securityContext:
|
||||||
# readOnlyRootFilesystem: true
|
allowPrivilegeEscalation: false
|
||||||
# runAsNonRoot: true
|
capabilities:
|
||||||
# runAsUser: 1000
|
drop:
|
||||||
|
- ALL
|
||||||
|
readOnlyRootFilesystem: true
|
||||||
|
runAsUser: 1000
|
||||||
|
runAsGroup: 1000
|
||||||
|
|
||||||
serviceAccount:
|
serviceAccount:
|
||||||
# Specifies whether a service account should be created
|
# Specifies whether a service account should be created
|
||||||
|
@ -233,17 +234,9 @@ celery:
|
||||||
- name: datatracker-shared-volume
|
- name: datatracker-shared-volume
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: "datatracker-shared-volume-claim"
|
claimName: "datatracker-shared-volume-claim"
|
||||||
# cache-volume and staging-volume are a hack to create paths for debugging without a /a volume
|
- name: celery-tmp
|
||||||
# - name: cache-volume
|
emptyDir:
|
||||||
# emptyDir:
|
sizeLimit: "2Gi"
|
||||||
# sizeLimit: 1Gi
|
|
||||||
# - name: staging-volume
|
|
||||||
# emptyDir:
|
|
||||||
# sizeLimit: 1Gi
|
|
||||||
# - name: foo
|
|
||||||
# secret:
|
|
||||||
# secretName: mysecret
|
|
||||||
# optional: false
|
|
||||||
|
|
||||||
# Additional volumeMounts on the output Deployment definition.
|
# Additional volumeMounts on the output Deployment definition.
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
@ -253,14 +246,8 @@ celery:
|
||||||
readOnly: true
|
readOnly: true
|
||||||
- name: datatracker-shared-volume
|
- name: datatracker-shared-volume
|
||||||
mountPath: /a
|
mountPath: /a
|
||||||
# cache-volume and staging-volume are a hack to create paths for debugging without a /a volume
|
- name: celery-tmp
|
||||||
# - name: cache-volume
|
mountPath: /tmp
|
||||||
# mountPath: "/a/cache"
|
|
||||||
# - name: staging-volume
|
|
||||||
# mountPath: "/test/staging"
|
|
||||||
# - name: foo
|
|
||||||
# mountPath: "/etc/foo"
|
|
||||||
# readOnly: true
|
|
||||||
|
|
||||||
tolerations: []
|
tolerations: []
|
||||||
|
|
||||||
|
@ -294,9 +281,6 @@ beat:
|
||||||
podAnnotations: {}
|
podAnnotations: {}
|
||||||
podLabels: {}
|
podLabels: {}
|
||||||
|
|
||||||
podSecurityContext: {}
|
|
||||||
# fsGroup: 2000
|
|
||||||
|
|
||||||
replicaCount: 1
|
replicaCount: 1
|
||||||
|
|
||||||
resources: {}
|
resources: {}
|
||||||
|
@ -311,13 +295,17 @@ beat:
|
||||||
# cpu: 100m
|
# cpu: 100m
|
||||||
# memory: 128Mi
|
# memory: 128Mi
|
||||||
|
|
||||||
securityContext: {}
|
podSecurityContext:
|
||||||
# capabilities:
|
runAsNonRoot: true
|
||||||
# drop:
|
|
||||||
# - ALL
|
securityContext:
|
||||||
# readOnlyRootFilesystem: true
|
allowPrivilegeEscalation: false
|
||||||
# runAsNonRoot: true
|
capabilities:
|
||||||
# runAsUser: 1000
|
drop:
|
||||||
|
- ALL
|
||||||
|
readOnlyRootFilesystem: true
|
||||||
|
runAsUser: 1000
|
||||||
|
runAsGroup: 1000
|
||||||
|
|
||||||
serviceAccount:
|
serviceAccount:
|
||||||
# Specifies whether a service account should be created
|
# Specifies whether a service account should be created
|
||||||
|
@ -347,17 +335,9 @@ beat:
|
||||||
- name: datatracker-shared-volume
|
- name: datatracker-shared-volume
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: "datatracker-shared-volume-claim"
|
claimName: "datatracker-shared-volume-claim"
|
||||||
# cache-volume and staging-volume are a hack to create paths for debugging without a /a volume
|
- name: beat-tmp
|
||||||
# - name: cache-volume
|
emptyDir:
|
||||||
# emptyDir:
|
sizeLimit: "2Gi"
|
||||||
# sizeLimit: 1Gi
|
|
||||||
# - name: staging-volume
|
|
||||||
# emptyDir:
|
|
||||||
# sizeLimit: 1Gi
|
|
||||||
# - name: foo
|
|
||||||
# secret:
|
|
||||||
# secretName: mysecret
|
|
||||||
# optional: false
|
|
||||||
|
|
||||||
# Additional volumeMounts on the output Deployment definition.
|
# Additional volumeMounts on the output Deployment definition.
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
@ -367,14 +347,8 @@ beat:
|
||||||
readOnly: true
|
readOnly: true
|
||||||
- name: datatracker-shared-volume
|
- name: datatracker-shared-volume
|
||||||
mountPath: /a
|
mountPath: /a
|
||||||
# cache-volume and staging-volume are a hack to create paths for debugging without a /a volume
|
- name: beat-tmp
|
||||||
# - name: cache-volume
|
mountPath: /tmp
|
||||||
# mountPath: "/a/cache"
|
|
||||||
# - name: staging-volume
|
|
||||||
# mountPath: "/test/staging"
|
|
||||||
# - name: foo
|
|
||||||
# mountPath: "/etc/foo"
|
|
||||||
# readOnly: true
|
|
||||||
|
|
||||||
tolerations: []
|
tolerations: []
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue