Skip to content

Instantly share code, notes, and snippets.

@theofpa
Created June 14, 2021 08:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theofpa/a1200fe00c5f4fcebdf4faea188cca3d to your computer and use it in GitHub Desktop.
Save theofpa/a1200fe00c5f4fcebdf4faea188cca3d to your computer and use it in GitHub Desktop.
istio-ingress-cognito.yaml
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
alb.ingress.kubernetes.io/auth-idp-cognito: '{"UserPoolArn":"arn:aws:cognito-idp:eu-west-1:123456789:userpool/eu-west-1_tYouaCRMy","UserPoolClientId":"5g4t4a36yrt237rlq3a","UserPoolDomain":"auth.workshops.example.com"}'
alb.ingress.kubernetes.io/auth-type: cognito
alb.ingress.kubernetes.io/certificate-arn: arn:aws:acm:eu-west-1:123456789:certificate/def76456789-88f0-43d1-bdd7-c3e8bc537a17
alb.ingress.kubernetes.io/listen-ports: '[{"HTTPS":443}]'
alb.ingress.kubernetes.io/scheme: internet-facing
kubernetes.io/ingress.class: alb
labels:
kustomize.component: istio-ingress
name: istio-ingress
namespace: istio-system
spec:
rules:
- http:
paths:
- backend:
serviceName: istio-ingressgateway
servicePort: 80
path: /*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment