Code Review
/
iec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix some errors in IEC installation scripts
[iec.git]
/
src
/
foundation
/
scripts
/
k8s_master.sh
diff --git
a/src/foundation/scripts/k8s_master.sh
b/src/foundation/scripts/k8s_master.sh
index
5eb9082
..
82fc79b
100755
(executable)
--- a/
src/foundation/scripts/k8s_master.sh
+++ b/
src/foundation/scripts/k8s_master.sh
@@
-10,9
+10,6
@@
if [ -z "${MGMT_IP}" ]; then
exit 1
fi
exit 1
fi
-#Add extra flags to Kubelet
-sed '/Environment=\"KUBELET_CONFIG_ARGS/a\Environment=\"KUBELET_EXTRA_ARGS=--fail-swap-on=false --feature-gates HugePages=false\"' -i /etc/systemd/system/kubelet.service.d/10-kubeadm.conf
-
if ! kubectl get nodes; then
sudo kubeadm config images pull
sudo kubeadm init \
if ! kubectl get nodes; then
sudo kubeadm config images pull
sudo kubeadm init \
@@
-22,9
+19,9
@@
if ! kubectl get nodes; then
if [ "$(id -u)" = 0 ]; then
echo "export KUBECONFIG=/etc/kubernetes/admin.conf" | \
if [ "$(id -u)" = 0 ]; then
echo "export KUBECONFIG=/etc/kubernetes/admin.conf" | \
- tee -a "${HOME}/.
profile
"
+ tee -a "${HOME}/.
bashrc
"
# shellcheck disable=SC1090
# shellcheck disable=SC1090
- source "${HOME}/.
profile
"
+ source "${HOME}/.
bashrc
"
else
mkdir -p "${HOME}/.kube"
sudo cp -i /etc/kubernetes/admin.conf "${HOME}/.kube/config"
else
mkdir -p "${HOME}/.kube"
sudo cp -i /etc/kubernetes/admin.conf "${HOME}/.kube/config"