Skip to content

Commit

Permalink
(iam) switch ingressroute to ingress
Browse files Browse the repository at this point in the history
  • Loading branch information
h3mmy committed Jul 22, 2023
1 parent 862c31b commit 7165ff8
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./keycloak.yaml
- ./routers/id-keycloak.yaml
- ./routers/kc-iam-ingress.yaml
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.
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
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: id-keycloak
name: iam-keycloak
namespace: auth
annotations:
hajimari.io/appName: IAM Settings
Expand Down

1 comment on commit 7165ff8

@h3mmy
Copy link
Owner Author

@h3mmy h3mmy commented on 7165ff8 Jul 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.