| 765 | } |
| 766 | |
| 767 | func (s *Server) initGrpcServer(options *istiokeepalive.Options) { |
| 768 | interceptors := []grpc.UnaryServerInterceptor{ |
| 769 | // setup server prometheus monitoring (as final interceptor in chain) |
| 770 | grpcprom.UnaryServerInterceptor, |
| 771 | } |
| 772 | grpcOptions := istiogrpc.ServerOptions(options, xdspkg.RecordRecvSize, interceptors...) |
| 773 | s.grpcServer = grpc.NewServer(grpcOptions...) |
| 774 | s.XDSServer.Register(s.grpcServer) |
| 775 | reflection.Register(s.grpcServer) |
| 776 | } |
| 777 | |
| 778 | // initialize secureGRPCServer. |
| 779 | func (s *Server) initSecureDiscoveryService(args *PilotArgs, trustDomain string) error { |