CIS Benchmark Rancher Self-Assessment Guide - v2.4data directory found above). For example, chmod 700 /var/lib/etcd Audit Script: 1.1.11.sh #!/bin/bash -e etcd_bin=${1} test_dir=$(ps -ef | grep ${etcd_bin} | grep -- --data-dir | sed 's%.*data-dir[= directory found above). For example, chown etcd:etcd /var/lib/etcd Audit Script: 1.1.12.sh #!/bin/bash -e etcd_bin=${1} test_dir=$(ps -ef | grep ${etcd_bin} | grep -- --data-dir | sed 's%.*data-dir[= example, chmod -R 644 /etc/kubernetes/ssl Audit Script: check_files_permissions.sh #!/usr/bin/env bash # This script is used to ensure the file permissions are set CIS Benchmark Rancher Self-Assessment0 码力 | 54 页 | 447.77 KB | 1 年前3
CIS 1.5 Benchmark - Self-Assessment Guide - Rancher v2.5data directory found above). For example, chmod 700 /var/lib/etcd Audit Script: 1.1.11.sh #!/bin/bash -e etcd_bin=${1} test_dir=$(ps -ef | grep ${etcd_bin} | grep -- --data-dir | sed 's%.*data-dir[= directory found above). For example, chown etcd:etcd /var/lib/etcd Audit Script: 1.1.12.sh #!/bin/bash -e etcd_bin=${1} test_dir=$(ps -ef | grep ${etcd_bin} | grep -- --data-dir | sed 's%.*data-dir[= example, chmod -R 644 /etc/kubernetes/ssl Audit Script: check_files_permissions.sh #!/usr/bin/env bash # This script is used to ensure the file permissions are set CIS 1.5 Benchmark - Self-Assessment0 码力 | 54 页 | 447.97 KB | 1 年前3
CIS 1.6 Benchmark - Self-Assessment Guide - Rancher v2.5.4/node/etc/kubernetes/ssl Expected Result: 'true' is equal to 'true' Audit Script: #!/usr/bin/env bash # This script is used to ensure the owner is set to root:root for # the given directory and all /node/etc/kubernetes/ssl/!(*key).pe m Expected Result: 'true' is equal to 'true' Audit Script: #!/usr/bin/env bash # This script is used to ensure the file permissions are set to 644 or # more restrictive for /node/etc/kubernetes/ssl/*key.pem 600 Expected Result: 'true' is equal to 'true' Audit Script: #!/usr/bin/env bash # This script is used to ensure the file permissions are set to 644 or # more restrictive for0 码力 | 132 页 | 1.12 MB | 1 年前3
Rancher Hardening Guide v2.3.5automountServiceAccountToken: false Create a bash script file called account_update.sh. Be sure to chmod +x account_update.sh so the script has execute permissions. #!/bin/bash -e for namespace in $(kubectl get - Egress Create a bash script file called apply_networkPolicy_to_all_ns.sh. Be sure to chmod +x apply_networkPolicy_to_all_ns.sh so the script has execute permissions. #!/bin/bash -e for namespace in0 码力 | 21 页 | 191.56 KB | 1 年前3
Rancher Hardening Guide v2.4automountServiceAccountToken: false Create a bash script file called account_update.sh. Be sure to chmod +x account_update.sh so the script has execute permissions. #!/bin/bash -e for namespace in $(kubectl get Create a bash script file called apply_networkPolicy_to_all_ns.sh. Be sure to chmod +x apply_networkPolicy_to_all_ns.sh so the script has execute permissions. Hardening Guide v2.4 6 #!/bin/bash -e for0 码力 | 22 页 | 197.27 KB | 1 年前3
Hardening Guide - Rancher v2.3.3+od e s w i t h t h e controlplane r ol e i n s p e c t t h e kube-apiserver c on - t ai n e r s : bash docker inspect kube-apiserver • Look f or t h e f ol l ow i n g op t i on s i n t h e c om m an d c h e r AP I t o s h ow u s e r s w i t h ad m i n i s t r at or p r i v i l e ge s : 18 #!/bin/bash for i in $(curl -sk -u 'token-: ' https:// /v3/users|jq -r .data[].links.globalRoleBindings); od e s w i t h t h e controlplane r ol e i n s p e c t t h e kube-apiserver c on - t ai n e r s : bash docker inspect kube-apiserver • Look f or t h e f ol l ow i n g op t i on s i n t h e c om m an d 0 码力 | 44 页 | 279.78 KB | 1 年前3
Rancher Hardening Guide Rancher v2.1.xAudit The following script uses the Rancher API to show users with administrator privileges: #!/bin/bash for i in $(curl -sk -u 'token-: ' https:// /v3/users|jq -r .data[].links 0 码力 | 24 页 | 336.27 KB | 1 年前3
SUSE Rancher and RKE Kubernetes cluster
using CSI Driver on DELL EMC PowerFlex Helm: Option1 $ curl https://raw.githubusercontent.com/helm/helm/master/scripts /get-helm-3 | bash Option2 $ curl -sfL https://get.helm.sh/helm-v3.5.3-linux- amd64.tar.gz -o helm.tgz $ tar xf helm0 码力 | 45 页 | 3.07 MB | 1 年前3
共 8 条
- 1













