diff --git a/manifests/blackboxExporter-deployment.yaml b/manifests/blackboxExporter-deployment.yaml index 0f471c4e97e6670e1629b278749edc4b50f0f0ce..3c3b61b00db10378e606c457559a2d03a5e272f5 100644 --- a/manifests/blackboxExporter-deployment.yaml +++ b/manifests/blackboxExporter-deployment.yaml @@ -105,6 +105,8 @@ spec: runAsGroup: 65532 runAsNonRoot: true runAsUser: 65532 + seccompProfile: + type: RuntimeDefault nodeSelector: kubernetes.io/os: linux serviceAccountName: blackbox-exporter diff --git a/manifests/kubeStateMetrics-deployment.yaml b/manifests/kubeStateMetrics-deployment.yaml index aa609edb21898014424b129cea67afd299f67554..a8c62717c8af584ae21029b6fc431dafccc6a9ec 100644 --- a/manifests/kubeStateMetrics-deployment.yaml +++ b/manifests/kubeStateMetrics-deployment.yaml @@ -76,6 +76,8 @@ spec: runAsGroup: 65532 runAsNonRoot: true runAsUser: 65532 + seccompProfile: + type: RuntimeDefault - args: - --secure-listen-address=:9443 - --tls-cipher-suites=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305 @@ -101,6 +103,8 @@ spec: runAsGroup: 65532 runAsNonRoot: true runAsUser: 65532 + seccompProfile: + type: RuntimeDefault nodeSelector: kubernetes.io/os: linux serviceAccountName: kube-state-metrics diff --git a/manifests/nodeExporter-daemonset.yaml b/manifests/nodeExporter-daemonset.yaml index 133afed558635d1449e9f821da1cc3fee6050bb1..0b37775aac19be4946bc849e1694ba3a913bc69a 100644 --- a/manifests/nodeExporter-daemonset.yaml +++ b/manifests/nodeExporter-daemonset.yaml @@ -94,6 +94,8 @@ spec: runAsGroup: 65532 runAsNonRoot: true runAsUser: 65532 + seccompProfile: + type: RuntimeDefault hostNetwork: true hostPID: true nodeSelector: diff --git a/manifests/prometheusAdapter-deployment.yaml b/manifests/prometheusAdapter-deployment.yaml index 09caa2d7f6a947d1eacd06dcc92a77b2a6f80bd1..7c852d529ba41f759f6f3b091359f15018c6f1c4 100644 --- a/manifests/prometheusAdapter-deployment.yaml +++ b/manifests/prometheusAdapter-deployment.yaml @@ -70,6 +70,9 @@ spec: drop: - ALL readOnlyRootFilesystem: true + runAsNonRoot: true + seccompProfile: + type: RuntimeDefault startupProbe: failureThreshold: 18 httpGet: diff --git a/manifests/prometheusOperator-deployment.yaml b/manifests/prometheusOperator-deployment.yaml index de65dcae880aaa2930cff0c217f93b6e952d9414..89a58ca048b0f44cb9ebebd5f826c42d563309d7 100644 --- a/manifests/prometheusOperator-deployment.yaml +++ b/manifests/prometheusOperator-deployment.yaml @@ -73,6 +73,8 @@ spec: runAsGroup: 65532 runAsNonRoot: true runAsUser: 65532 + seccompProfile: + type: RuntimeDefault nodeSelector: kubernetes.io/os: linux securityContext: diff --git a/manifests/setup/namespace.yaml b/manifests/setup/namespace.yaml index d32523606f28187cc65fbb56387a78011a1e9425..5ca07c8edcb33479ad5399607e409651e093ec9d 100644 --- a/manifests/setup/namespace.yaml +++ b/manifests/setup/namespace.yaml @@ -1,4 +1,7 @@ apiVersion: v1 kind: Namespace metadata: + labels: + pod-security.kubernetes.io/warn: privileged + pod-security.kubernetes.io/warn-version: latest name: monitoring