authelia/example/kube/bootstrap.sh
Clement Michaud 76fa325f08 [BREAKING] Create a suite for kubernetes tests.
Authelia client uses hash router instead of browser router in order to work
with Kubernetes nginx-ingress-controller. This is also better for users having
old browsers.

This commit is breaking because it requires to change the configuration of the
proxy to include the # in the URL of the login portal.
2019-03-16 00:13:27 +01:00

46 lines
1018 B
Bash
Executable File

#!/bin/bash
start_apps() {
# Create TLS certificate and key for HTTPS termination
kubectl create secret generic test-app-tls --namespace=authelia --from-file=apps/ssl/tls.key --from-file=apps/ssl/tls.crt
# Spawn the applications
kubectl apply -f apps
}
start_ingress_controller() {
kubectl apply -f ingress-controller
}
start_dashboard() {
kubectl apply -f dashboard
}
# Spawn Redis and Mongo as backend for Authelia
# Please note they are not configured to be distributed on several machines
start_storage() {
kubectl apply -f storage
}
# Create a fake mailbox to catch emails sent by Authelia
start_mail() {
kubectl apply -f mail
}
start_ldap() {
kubectl apply -f ldap
}
# Create the Authelia namespace in the cluster
create_namespace() {
kubectl apply -f namespace.yml
}
create_namespace
start_dashboard
start_storage
start_ldap
start_mail
start_ingress_controller
start_apps