File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1039,7 +1039,7 @@ function start_dns_addon {
1039
1039
${SED} -i -e " s/dns_memory_limit/${DNS_MEMORY_LIMIT} /g" dns.yaml
1040
1040
# TODO update to dns role once we have one.
1041
1041
# use kubectl to create dns addon
1042
- if ${KUBECTL} --kubeconfig=" ${CERT_DIR} /admin.kubeconfig" --namespace=kube-system create -f dns.yaml ; then
1042
+ if ${KUBECTL} --kubeconfig=" ${CERT_DIR} /admin.kubeconfig" --namespace=kube-system apply -f dns.yaml ; then
1043
1043
echo " ${DNS_ADDON} addon successfully deployed."
1044
1044
else
1045
1045
echo " Something is wrong with your DNS input"
@@ -1058,7 +1058,7 @@ function start_nodelocaldns {
1058
1058
${SED} -i -e " s/__PILLAR__LOCAL__DNS__/${LOCAL_DNS_IP} /g" nodelocaldns.yaml
1059
1059
1060
1060
# use kubectl to create nodelocaldns addon
1061
- ${KUBECTL} --kubeconfig=" ${CERT_DIR} /admin.kubeconfig" --namespace=kube-system create -f nodelocaldns.yaml
1061
+ ${KUBECTL} --kubeconfig=" ${CERT_DIR} /admin.kubeconfig" --namespace=kube-system apply -f nodelocaldns.yaml
1062
1062
echo " NodeLocalDNS addon successfully deployed."
1063
1063
rm nodelocaldns.yaml
1064
1064
}
@@ -1085,7 +1085,7 @@ function create_storage_class {
1085
1085
1086
1086
if [ -e " ${CLASS_FILE} " ]; then
1087
1087
echo " Create default storage class for ${CLOUD_PROVIDER} "
1088
- ${KUBECTL} --kubeconfig=" ${CERT_DIR} /admin.kubeconfig" create -f " ${CLASS_FILE} "
1088
+ ${KUBECTL} --kubeconfig=" ${CERT_DIR} /admin.kubeconfig" apply -f " ${CLASS_FILE} "
1089
1089
else
1090
1090
echo " No storage class available for ${CLOUD_PROVIDER} ."
1091
1091
fi
You can’t perform that action at this time.
0 commit comments