-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c131c4c
commit c9b497a
Showing
6 changed files
with
52 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
--- | ||
PORT: 4100 | ||
SHD_CLIENT_IMAGE: quay.io/schulcloudverbund/shd-client | ||
SHD_CLIENT_PREFIX: dashboard2. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
--- | ||
PORT: 4100 | ||
SHD_CLIENT_IMAGE: ghcr.io/hpi-schul-cloud/shd-client | ||
SHD_CLIENT_PREFIX: shd2- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#jinja2: trim_blocks: "True", lstrip_blocks: "True" | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: {{ NAMESPACE }}-shd-client-ingress | ||
namespace: {{ NAMESPACE }} | ||
annotations: | ||
nginx.ingress.kubernetes.io/ssl-redirect: "{{ TLS_ENABLED|default("false") }}" | ||
# type of authentication | ||
nginx.ingress.kubernetes.io/auth-type: basic | ||
# name of the secret that contains the user/password definitions | ||
nginx.ingress.kubernetes.io/auth-secret: shd-basic-auth-secret | ||
# message to display with an appropriate context why the authentication is required | ||
nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required' | ||
{% if CLUSTER_ISSUER is defined %} | ||
cert-manager.io/cluster-issuer: {{ CLUSTER_ISSUER }} | ||
{% endif %} | ||
|
||
spec: | ||
ingressClassName: {{ INGRESS_CLASS }} | ||
{% if CLUSTER_ISSUER is defined or (TLS_ENABLED is defined and TLS_ENABLED|bool) %} | ||
tls: | ||
- hosts: | ||
- {{ SHD_CLIENT_PREFIX }}{{ DOMAIN }} | ||
{% if CLUSTER_ISSUER is defined %} | ||
secretName: {{ SHD_CLIENT_PREFIX }}{{ DOMAIN }}-tls | ||
{% endif %} | ||
{% endif %} | ||
rules: | ||
- host: {{ SHD_CLIENT_PREFIX }}{{ DOMAIN }} | ||
http: | ||
paths: | ||
### SHD | ||
- path: / | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: shd-client-svc | ||
port: | ||
number: {{ PORT }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters