K8s-training
Jump to navigation
Jump to search
echo "== YOURS VARS ==" export appName=wiki export domainCluster=c2.mi.infocepo.com
echo "== INIT ENV ==" export nameSpace=infra-$USER mkdir -p ~/old export appInternalPassword=${appName} hostName=${appName}.${domainCluster} helm repo add bitnami https://charts.bitnami.com/bitnami
echo "== INFRA ==" clear helm template ${appName} bitnami/mediawiki \
--namespace ${nameSpace} --create-namespace \ --set ingress.enabled=true,ingress.hostname=${hostName} \ --set mediawikiHost=${hostName},mediawikiPassword=${appInternalPassword} \ --set mariadb.auth.rootPassword=${appInternalPassword},mariadb.auth.password=${appInternalPassword} |tee ~/old/infra-$USER-${appName}
echo "== DEPLOY ==" kubectl apply -f ~/old/infra-$USER-${appName}
echo "== YOURS URL ==" echo https://${hostName}
echo "== DELETE ==" kubectl delete -f ~/old/infra-$USER-${appName}
echo "== DELETE REMAINING DB ==" kubectl delete pvc/data-infra-$USER-mariadb-0 -n infra-$USER