A demo for istio grpc external authorization server.
Please ensure you have installed k8s and istio related.
-
run
ext_authz_server/pack.sh
to build a external authorization image to docker hub. Note that you should change the docker user name. You can use my image built by this repository's code as well.#!/bin/bash # ext_authz_server/pack.sh # change to your docker hub user name USERNAME="sasakiyori"
-
apply
config/ext-authz-server.yaml
to build theService
andDeployment
of external authorization server:kubectl apply -f ext-authz-server.yaml
-
config map processing
kubectl edit configmap istio -n istio-system
- add
extensionProviders
config byconfig/istio-config-map.yaml
kubectl rollout restart deployment/istiod -n istio-system
-
add istio ingress config by
config/istio-ingressgateway.yaml
-
check if your external authorization server runs normally