mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-20 01:29:07 +00:00
Merge pull request #2565 from djs55/kubeadm.yaml
kubernetes: add optional support for a kubeadm.yaml
This commit is contained in:
commit
657225e8b8
@ -1,7 +1,15 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
touch /var/lib/kubeadm/.kubeadm-init.sh-started
|
||||
if [ -f /etc/kubeadm/kubeadm.yaml ]; then
|
||||
echo Using the configuration from /etc/kubeadm/kubeadm.yaml
|
||||
if [ $# -ne 0 ] ; then
|
||||
echo WARNING: Ignoring command line options: $@
|
||||
fi
|
||||
kubeadm init --skip-preflight-checks --config /etc/kubeadm/kubeadm.yaml
|
||||
else
|
||||
kubeadm init --skip-preflight-checks --kubernetes-version @KUBERNETES_VERSION@ $@
|
||||
fi
|
||||
for i in /etc/kubeadm/kube-system.init/*.yaml ; do
|
||||
if [ -e "$i" ] ; then
|
||||
echo "Applying "$(basename "$i")
|
||||
|
Loading…
Reference in New Issue
Block a user