Skip to content

Commit 49fa318

Browse files
Adjust permissions
all lines from [setup-k8s-prereqs.sh] basically require elevation, and because there's no sudo prefixing each, running the script under sudo su context makes sense. But the setup-k8s-master.sh will do chmod for root instead of current user if run under sudo su (cf use of "id"). It should be run under regular user context I think ? The need for root context for [setup-volumes-agent.sh] is tied to the bond command, which is linked to another PR which I'll link later.
1 parent edd0995 commit 49fa318

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

  • samples/features/sql-big-data-cluster/deployment/kubeadm/ubuntu

samples/features/sql-big-data-cluster/deployment/kubeadm/ubuntu/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@ In this example, we will deploy Kubernetes over multiple Linux machines (physica
2020

2121
### Instructions
2222

23-
1. Start a sudo shell context
24-
1. Execute [setup-k8s-prereqs.sh](setup-k8s-prereqs.sh/) script on each machine
25-
1. Execute [setup-k8s-master.sh](setup-k8s-master.sh/) script on the machine designated as Kubernetes master
23+
1. Start a sudo shell context and Execute [setup-k8s-prereqs.sh](setup-k8s-prereqs.sh/) script on each machine
24+
1. Execute [setup-k8s-master.sh](setup-k8s-master.sh/) script on the machine designated as Kubernetes master (_not_ under sudo su as otherwise you'll setup K8S .kube/config permissions for root)
2625
1. After successful initialization of the Kubernetes master, follow the kubeadm join commands output by the setup script on each agent machine
2726
1. Execute [setup-volumes-agent.sh](setup-volumes-agent.sh/) script on each agent machine to create volumes for local storage
2827
1. Execute ***kubectl apply -f local-storage-provisioner.yaml*** against the Kubernetes cluster to create the local storage provisioner.

0 commit comments

Comments
 (0)