Skip to content

Commit

Permalink
chore: configure ingress for Keycloak
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentchalamon committed Nov 15, 2023
1 parent ec87a83 commit 16cb00f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,12 @@ jobs:
--set=pwa.image.tag=${{ inputs.docker-images-version }} \
--set=pwa.image.pullPolicy=Always \
--set=ingress.hosts[0].host=${{ inputs.url }} \
--set=ingress.hosts[0].paths[0].path=/* \
--set=ingress.hosts[0].paths[0].pathType=ImplementationSpecific \
--set=ingress.hosts[0].paths[0].path=/oidc/* \
--set=ingress.hosts[0].paths[0].backend.serviceName=${{ inputs.namespace }}-keycloak \
--set=ingress.hosts[0].paths[0].backend.servicePort=80 \
--set=ingress.hosts[0].paths[1].path=/* \
--set=ingress.hosts[0].paths[1].backend.serviceName=${{ inputs.namespace }}-api-platform \
--set=ingress.hosts[0].paths[1].backend.servicePort=80 \
--set=external-dns.cloudflare.apiToken=${{ secrets.cloudflare-api-token }} \
--set=external-dns.domainFilters={"${{ inputs.url }}"} \
--set=external-dns.zoneIdFilters={${{ secrets.cloudflare-zone-id }}} \
Expand Down
12 changes: 10 additions & 2 deletions helm/api-platform/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ keycloak:
limits:
memory: 500Mi
service:
type: ClusterIP
type: NodePort
extraEnvVars:
# Must set KC_HOSTNAME_URL to force https + relative path
- name: KC_HOSTNAME_URL
Expand Down Expand Up @@ -214,7 +214,15 @@ ingress:
# kubernetes.io/tls-acme: "true"
hosts:
- host: chart-example.local
paths: []
paths:
- path: /oidc/*
backend:
serviceName: main-keycloak
servicePort: 80
- path: /*
backend:
serviceName: main-api-platform
servicePort: 80
tls: []
# - secretName: chart-example-tls
# hosts:
Expand Down

0 comments on commit 16cb00f

Please sign in to comment.