mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
fix local-up-cluster.sh to fail
This commit is contained in:
parent
b85a83425b
commit
d98561fb26
@ -1039,7 +1039,7 @@ function start_dns_addon {
|
||||
${SED} -i -e "s/dns_memory_limit/${DNS_MEMORY_LIMIT}/g" dns.yaml
|
||||
# TODO update to dns role once we have one.
|
||||
# use kubectl to create dns addon
|
||||
if ${KUBECTL} --kubeconfig="${CERT_DIR}/admin.kubeconfig" --namespace=kube-system create -f dns.yaml ; then
|
||||
if ${KUBECTL} --kubeconfig="${CERT_DIR}/admin.kubeconfig" --namespace=kube-system apply -f dns.yaml ; then
|
||||
echo "${DNS_ADDON} addon successfully deployed."
|
||||
else
|
||||
echo "Something is wrong with your DNS input"
|
||||
@ -1058,7 +1058,7 @@ function start_nodelocaldns {
|
||||
${SED} -i -e "s/__PILLAR__LOCAL__DNS__/${LOCAL_DNS_IP}/g" nodelocaldns.yaml
|
||||
|
||||
# use kubectl to create nodelocaldns addon
|
||||
${KUBECTL} --kubeconfig="${CERT_DIR}/admin.kubeconfig" --namespace=kube-system create -f nodelocaldns.yaml
|
||||
${KUBECTL} --kubeconfig="${CERT_DIR}/admin.kubeconfig" --namespace=kube-system apply -f nodelocaldns.yaml
|
||||
echo "NodeLocalDNS addon successfully deployed."
|
||||
rm nodelocaldns.yaml
|
||||
}
|
||||
@ -1085,7 +1085,7 @@ function create_storage_class {
|
||||
|
||||
if [ -e "${CLASS_FILE}" ]; then
|
||||
echo "Create default storage class for ${CLOUD_PROVIDER}"
|
||||
${KUBECTL} --kubeconfig="${CERT_DIR}/admin.kubeconfig" create -f "${CLASS_FILE}"
|
||||
${KUBECTL} --kubeconfig="${CERT_DIR}/admin.kubeconfig" apply -f "${CLASS_FILE}"
|
||||
else
|
||||
echo "No storage class available for ${CLOUD_PROVIDER}."
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user