+CSI
This commit is contained in:
parent
f80637fbfc
commit
3e7cbffbbd
1 changed files with 18 additions and 2 deletions
|
@ -22,23 +22,39 @@ k8sDeploy () {
|
|||
fi
|
||||
sleep 10
|
||||
done
|
||||
cd ${groot}/contrib
|
||||
}
|
||||
InstallCSI () {
|
||||
helm repo add rimusz https://charts.rimusz.net
|
||||
helm install rimusz/hostpath-provisioner --generate-name
|
||||
}
|
||||
InstallRegistry () {
|
||||
echo ToDo
|
||||
}
|
||||
InstallPGSQL () {
|
||||
helm repo add bitnami https://charts.bitnami.com/bitnami
|
||||
helm install bitnami/postgresql \
|
||||
--set postgresql.password=K8Sdemo \
|
||||
--set persistence.storageClass=hostpath \
|
||||
--set persistence.size=1Gi --name db
|
||||
# export POSTGRES_PASSWORD=$(kubectl get secret $(kubectl get svc|grep postgres|awk '{print $1}'|grep -v headless) -o jsonpath="{.data.postgresql-password}" | base64 --decode)
|
||||
}
|
||||
InstallIngress () {
|
||||
# Allow scheduling on our master node
|
||||
kubectl taint nodes k8s-demo node-role.kubernetes.io/master-
|
||||
# Installing Ingress
|
||||
helm repo add nginx-stable https://helm.nginx.com/stable && \
|
||||
helm repo update && \
|
||||
helm install nginx-stable/nginx-ingress --namespace kube-system --generate-name --set rbac.create=true
|
||||
# Fix external IP for LB...
|
||||
kubectl patch svc $(kubectl get svc -n kube-system|grep nginx-ingress|awk '{print $1}') -n kube-system --patch "$(cat ${groot}/contrib/ymls/ingress.fix.yaml)"
|
||||
}
|
||||
|
||||
if [ ! -f ${bootflag} ]; then
|
||||
touch ${bootflag}
|
||||
k8sDemoWA;
|
||||
k8sDeploy;
|
||||
InstallCSI;
|
||||
InstallIngress;
|
||||
InstallRegistry
|
||||
InstallRegistry;
|
||||
InstallPGSQL;
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue