This commit is contained in:
D4rk4 2020-08-01 21:09:32 +02:00
parent 1b9a650a19
commit fb59e92386
3 changed files with 11 additions and 11 deletions

View file

@ -15,12 +15,12 @@ k8sDeploy () {
ansible-playbook init-cluster.yml
# Sometimes it's still not ready on this stage, let's check it just to be sure
while true ; do
echo "Waiting for node up..."
result=$(kubectl get nodes|awk '{print $2}'| tail -1| grep -nE '^Ready')
if [ -z "$result" ] ; then
break
fi
sleep 10
echo "Waiting for node up..."
result=$(kubectl get nodes|awk '{print $2}'| tail -1| grep -nE '^Ready')
if [ -z "$result" ] ; then
break
fi
sleep 10
done
cd ${groot}/contrib
}
@ -29,7 +29,7 @@ InstallCSI () {
helm install rimusz/hostpath-provisioner --generate-name
}
InstallRegistry () {
echo ToDo
helm repo add stable https://kubernetes-charts.storage.googleapis.com/
}
InstallPGSQL () {
helm repo add bitnami https://charts.bitnami.com/bitnami

View file

@ -9,9 +9,9 @@ metadata:
release: {{ .Release.Name }}
type: Opaque
data:
# {{- if .Values.secrets.htpasswd }}
# htpasswd: {{ .Values.secrets.htpasswd | b64enc }}
# {{- end }}
{{- if .Values.secrets.htpasswd }}
htpasswd: {{ .Values.secrets.htpasswd | b64enc }}
{{- end }}
{{- if .Values.secrets.haSharedSecret }}
haSharedSecret: {{ .Values.secrets.haSharedSecret | b64enc | quote }}
{{- else }}