generated from onedr0p/cluster-template
-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(iam) switch ingressroute to ingress
- Loading branch information
Showing
4 changed files
with
34 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
5 changes: 5 additions & 0 deletions
5
cluster/apps/auth/realms/bloopysphere/keycloak/instance/routers/README.md
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,5 @@ | ||
# Routers | ||
|
||
I initially wanted to use an IngressRoute to leverage some extra perks. However, k8s_gateway does not pick up IngressRoutes and thus hairpins traffic. This is not desirable for an IAM service. Hence the addition of the Ingress. | ||
|
||
The IngressRoute is currently only for reference. |
27 changes: 27 additions & 0 deletions
27
cluster/apps/auth/realms/bloopysphere/keycloak/instance/routers/kc-iam-ingress.yaml
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,27 @@ | ||
--- | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: iam-ingress | ||
namespace: auth | ||
annotations: | ||
traefik.ingress.kubernetes.io/service.serversscheme: tcp | ||
traefik.ingress.kubernetes.io/router.entrypoints: websecure | ||
traefik.ingress.kubernetes.io/router.middlewares: networking-chain-no-auth@kubernetescrd | ||
traefik.ingress.kubernetes.io/affinity: "true" | ||
spec: | ||
rules: | ||
- host: &shost iam.${XYZ_DOMAIN} | ||
http: | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: kc-instance-service | ||
port: | ||
number: 8443 | ||
tls: | ||
- secretName: "tls.${XYZ_DOMAIN/./-}" | ||
hosts: | ||
- *shost |
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
7165ff8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#1341