diff --git a/README.md b/README.md index b70d69a71..d6e705ac1 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,7 @@ as 2nd factor. * User-defined access control per subdomain and resource. * Support of [basic authentication] for endpoints protected by single factor. * High-availability using a highly-available distributed database and KV store. +* Compatible with Kubernetes ingress-nginx controller out of the box. ## Deployment @@ -66,6 +67,12 @@ own the configuration file from [config.template.yml] at the root of the repo. where **/path/to/data/dir** is the directory where all user data will be stored. +### With Kubernetes + + + +Please refer to the following [README](./example/kube/README.md). + ## Getting started The provided example is docker-based so that you can deploy and test it very diff --git a/example/authelia/docker-compose.dev.yml b/example/compose/authelia/docker-compose.dev.yml similarity index 100% rename from example/authelia/docker-compose.dev.yml rename to example/compose/authelia/docker-compose.dev.yml diff --git a/example/authelia/docker-compose.test.yml b/example/compose/authelia/docker-compose.test.yml similarity index 100% rename from example/authelia/docker-compose.test.yml rename to example/compose/authelia/docker-compose.test.yml diff --git a/example/docker-compose.base.yml b/example/compose/docker-compose.base.yml similarity index 100% rename from example/docker-compose.base.yml rename to example/compose/docker-compose.base.yml diff --git a/example/httpbin/docker-compose.yml b/example/compose/httpbin/docker-compose.yml similarity index 100% rename from example/httpbin/docker-compose.yml rename to example/compose/httpbin/docker-compose.yml diff --git a/example/ldap/access.rules b/example/compose/ldap/access.rules similarity index 100% rename from example/ldap/access.rules rename to example/compose/ldap/access.rules diff --git a/example/ldap/base.ldif b/example/compose/ldap/base.ldif similarity index 100% rename from example/ldap/base.ldif rename to example/compose/ldap/base.ldif diff --git a/example/ldap/docker-compose.admin.yml b/example/compose/ldap/docker-compose.admin.yml similarity index 100% rename from example/ldap/docker-compose.admin.yml rename to example/compose/ldap/docker-compose.admin.yml diff --git a/example/ldap/docker-compose.yml b/example/compose/ldap/docker-compose.yml similarity index 71% rename from example/ldap/docker-compose.yml rename to example/compose/ldap/docker-compose.yml index e991df60b..41de32b2d 100644 --- a/example/ldap/docker-compose.yml +++ b/example/compose/ldap/docker-compose.yml @@ -11,8 +11,8 @@ services: - SLAPD_ADDITIONAL_SCHEMAS=openldap - SLAPD_FORCE_RECONFIGURE=true volumes: - - ./example/ldap/base.ldif:/etc/ldap.dist/prepopulate/base.ldif - - ./example/ldap/access.rules:/etc/ldap.dist/prepopulate/access.rules + - ./example/compose/ldap/base.ldif:/etc/ldap.dist/prepopulate/base.ldif + - ./example/compose/ldap/access.rules:/etc/ldap.dist/prepopulate/access.rules networks: - example-network diff --git a/example/mongo/docker-compose.yml b/example/compose/mongo/docker-compose.yml similarity index 100% rename from example/mongo/docker-compose.yml rename to example/compose/mongo/docker-compose.yml diff --git a/example/nginx/authelia/docker-compose.yml b/example/compose/nginx/authelia/docker-compose.yml similarity index 61% rename from example/nginx/authelia/docker-compose.yml rename to example/compose/nginx/authelia/docker-compose.yml index cd590620e..66994ce2a 100644 --- a/example/nginx/authelia/docker-compose.yml +++ b/example/compose/nginx/authelia/docker-compose.yml @@ -3,6 +3,6 @@ services: nginx-authelia: image: nginx:alpine volumes: - - ./example/nginx/authelia/nginx.conf:/etc/nginx/nginx.conf + - ./example/compose/nginx/authelia/nginx.conf:/etc/nginx/nginx.conf networks: - example-network diff --git a/example/nginx/authelia/nginx.conf b/example/compose/nginx/authelia/nginx.conf similarity index 100% rename from example/nginx/authelia/nginx.conf rename to example/compose/nginx/authelia/nginx.conf diff --git a/example/compose/nginx/backend/docker-compose.yml b/example/compose/nginx/backend/docker-compose.yml new file mode 100644 index 000000000..6b5856dcb --- /dev/null +++ b/example/compose/nginx/backend/docker-compose.yml @@ -0,0 +1,9 @@ +version: '2' +services: + nginx-backend: + image: nginx:alpine + volumes: + - ./example/compose/nginx/backend/html:/usr/share/nginx/html + - ./example/compose/nginx/backend/nginx.conf:/etc/nginx/nginx.conf + networks: + - example-network diff --git a/example/nginx/backend/html/admin/secret.html b/example/compose/nginx/backend/html/admin/secret.html similarity index 100% rename from example/nginx/backend/html/admin/secret.html rename to example/compose/nginx/backend/html/admin/secret.html diff --git a/example/nginx/backend/html/dev/groups/admin/secret.html b/example/compose/nginx/backend/html/dev/groups/admin/secret.html similarity index 100% rename from example/nginx/backend/html/dev/groups/admin/secret.html rename to example/compose/nginx/backend/html/dev/groups/admin/secret.html diff --git a/example/nginx/backend/html/dev/groups/dev/secret.html b/example/compose/nginx/backend/html/dev/groups/dev/secret.html similarity index 100% rename from example/nginx/backend/html/dev/groups/dev/secret.html rename to example/compose/nginx/backend/html/dev/groups/dev/secret.html diff --git a/example/nginx/backend/html/dev/users/bob/secret.html b/example/compose/nginx/backend/html/dev/users/bob/secret.html similarity index 100% rename from example/nginx/backend/html/dev/users/bob/secret.html rename to example/compose/nginx/backend/html/dev/users/bob/secret.html diff --git a/example/nginx/backend/html/dev/users/harry/secret.html b/example/compose/nginx/backend/html/dev/users/harry/secret.html similarity index 100% rename from example/nginx/backend/html/dev/users/harry/secret.html rename to example/compose/nginx/backend/html/dev/users/harry/secret.html diff --git a/example/nginx/backend/html/dev/users/john/secret.html b/example/compose/nginx/backend/html/dev/users/john/secret.html similarity index 100% rename from example/nginx/backend/html/dev/users/john/secret.html rename to example/compose/nginx/backend/html/dev/users/john/secret.html diff --git a/example/nginx/backend/html/home/index.html b/example/compose/nginx/backend/html/home/index.html similarity index 97% rename from example/nginx/backend/html/home/index.html rename to example/compose/nginx/backend/html/home/index.html index 49f2dde04..5dd4295af 100644 --- a/example/nginx/backend/html/home/index.html +++ b/example/compose/nginx/backend/html/home/index.html @@ -56,7 +56,7 @@ - You can also log off by visiting the following link. + You can also log off by visiting the following link.