Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ccollicutt committed Aug 2, 2023
1 parent e863d8f commit a901158
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions install-kubernetes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -362,34 +362,6 @@ function test_kubernetes_version() {

}

### apply pod security admission configuration
function apply_pod_security(){
echo "Applying pod security admission configuration"
{
cat > pod-security.yaml <<-EOF
apiVersion: apiserver.config.k8s.io/v1
kind: AdmissionConfiguration
plugins:
- name: PodSecurity
configuration:
apiVersion: pod-security.admission.config.k8s.io/v1
kind: PodSecurityConfiguration
defaults:
enforce: "baseline"
enforce-version: "latest"
audit: "restricted"
audit-version: "latest"
warn: "restricted"
warn-version: "latest"
exemptions:
usernames: []
runtimeClasses: []
namespaces: [kube-system]
EOF
kubectl apply -f pod-security.yaml
} 3>&2 >> $LOG_FILE 2>&1
}

#
# MAIN
#
Expand Down Expand Up @@ -419,7 +391,6 @@ function run_main(){
wait_for_nodes
# now test what was installed
test_kubernetes_version
apply_pod_security
install_metrics_server
if [[ "${SINGLE_NODE}" == "true" ]]; then
echo "Configuring as a single node cluster"
Expand Down

0 comments on commit a901158

Please sign in to comment.