Skip to content

Commit

Permalink
Style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsakalozos committed Nov 15, 2024
1 parent f8375f6 commit e1460cd
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions docs/src/snap/howto/cis-hardening.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ may incurr performance penalties in the form of disk I/O.
```

Create an audit-policy.yaml file under `/var/snap/k8s/common/etc/` and specify
the level of auditing you desire based on the [upstream instructions][]. Here is
a minimal example of such a policy file.
the level of auditing you desire based on the [upstream instructions][].
Here is a minimal example of such a policy file.

```
sudo sh -c 'cat >/var/snap/k8s/common/etc/audit-policy.yaml <<EOL
Expand Down Expand Up @@ -1189,7 +1189,8 @@ Ensure that the admission control plugin EventRateLimit is set

Follow the Kubernetes documentation and set the desired limits
in a configuration file.
Then, edit the API server configuration file /var/snap/k8s/common/args/kube-apiserver
Then, edit the API server configuration file
/var/snap/k8s/common/args/kube-apiserver
and set the following arguments.

```
Expand Down Expand Up @@ -1315,9 +1316,10 @@ Ensure that the admission control plugin ServiceAccount is set

Follow the documentation and create ServiceAccount objects as
per your environment.
Then, edit the API server configuration file /var/snap/k8s/common/args/kube-apiserver
on the control plane node and ensure that the --disable-
admission-plugins parameter is set to a
Then, edit the API server configuration file
/var/snap/k8s/common/args/kube-apiserver
on the control plane node and ensure that the
--disable-admission-plugins parameter is set to a
value that does not include ServiceAccount.


Expand Down Expand Up @@ -1373,7 +1375,8 @@ Ensure that the admission control plugin NodeRestriction is set

Follow the Kubernetes documentation and configure
NodeRestriction plug-in on kubelets.
Then, edit the API server configuration file /var/snap/k8s/common/args/kube-apiserver
Then, edit the API server configuration file
/var/snap/k8s/common/args/kube-apiserver
on the control plane node and set the --enable-admission-plugins
parameter to a
value that includes NodeRestriction.
Expand Down Expand Up @@ -1726,9 +1729,9 @@ Ensure that the --client-ca-file argument is set as appropriate

Follow the Kubernetes documentation and set up the TLS
connection on the apiserver.
Then, edit the API server configuration file /var/snap/k8s/common/args/kube-apiserver
on the control plane node and set the client certificate
authority file.
Then, edit the API server configuration file
/var/snap/k8s/common/args/kube-apiserver on the control plane
node and set the client certificate authority file.

`--client-ca-file=<path/to/client-ca-file>`

Expand Down

0 comments on commit e1460cd

Please sign in to comment.