Skip to content

Commit fa25160

Browse files
committed
STAC-22772: Installing Suse Observability with Pod Security Standards
1 parent 983898c commit fa25160

1 file changed

Lines changed: 22 additions & 2 deletions

File tree

setup/install-stackstate/kubernetes_openshift/required_permissions.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,25 @@ subjects:
9393
{% endtab %}
9494
{% endtabs %}
9595

96+
## Pod Security Standards
97+
98+
If your Kubernetes cluster has [Pod Security Standards enabled](https://kubernetes.io/docs/concepts/security/pod-security-standards/), you need to configure appropriate security policies for the `suse-observability` namespace. SUSE Observability requires the baseline Pod Security Standard to function properly.
99+
100+
### Configure Pod Security Standards
101+
102+
Apply the baseline Pod Security Standard to the `suse-observability` namespace:
103+
104+
```bash
105+
kubectl label ns suse-observability pod-security.kubernetes.io/enforce=baseline --overwrite
106+
kubectl label ns suse-observability pod-security.kubernetes.io/audit=baseline --overwrite
107+
kubectl label ns suse-observability pod-security.kubernetes.io/warn=baseline --overwrite
108+
```
109+
110+
{% hint style="info" %}
111+
If Pod Security Standards are enabled in your cluster, you must ensure that the Elasticsearch prerequisites are properly configured before deploying SUSE Observability.
112+
Since the baseline Pod Security Standard does not allow privileged containers, you need to follow [the instructions](required_permissions.md#Elasticsearch) to configure the required `vm.max_map_count` kernel parameter at the host level.
113+
{% endhint %}
114+
96115
## Elasticsearch
97116

98117
SUSE Observability uses Elasticsearch to store its indices. There are some additional requirements for the nodes that Elasticsearch runs on.
@@ -141,6 +160,7 @@ apiVersion: apps/v1
141160
kind: DaemonSet
142161
metadata:
143162
name: set-vm-max-map-count
163+
namespace: kube-system
144164
labels:
145165
k8s-app: set-vm-max-map-count
146166
spec:
@@ -180,7 +200,8 @@ spec:
180200
# See also this Kubernetes issue https://github.com/kubernetes/kubernetes/issues/36601
181201
containers:
182202
- name: pause
183-
image: google/pause
203+
image: busybox
204+
command: ["sleep", "infinity"]
184205
resources:
185206
limits:
186207
cpu: 50m
@@ -204,4 +225,3 @@ elasticsearch:
204225
205226
* [Install SUSE Observability on Kubernetes](kubernetes_install.md)
206227
* [Install SUSE Observability on OpenShift](openshift_install.md)
207-

0 commit comments

Comments
 (0)