Skip to content

Instantly share code, notes, and snippets.

@pandey-adarsh147
Last active December 8, 2019 16:05
Show Gist options
  • Save pandey-adarsh147/7dccdee318df1bf5b6316c2eb94baa77 to your computer and use it in GitHub Desktop.
Save pandey-adarsh147/7dccdee318df1bf5b6316c2eb94baa77 to your computer and use it in GitHub Desktop.
Hello service proto file
syntax = "proto3";
option java_multiple_files = true;
package com.gonuclei.grpc;
option java_package = "com.gonuclei.grpc";
message HelloRequest {
string first_name = 1;
string lastName = 2;
}
message HelloResponse {
string greeting = 1;
}
service HelloService {
rpc Hello(HelloRequest) returns (HelloResponse);
}
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: test-gateway
spec:
selector:
istio: ingressgateway # use istio default controller
servers:
- port:
number: 443
name: https
protocol: HTTPS
hosts:
- "test.gonuclei.com"
tls:
mode: SIMPLE
privateKey: /etc/istio/ingressgateway-certs/tls.key
serverCertificate: /etc/istio/ingressgateway-certs/tls.crt
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: hello-grpc
spec:
hosts:
- "test.gonuclei.com"
gateways:
- test-gateway
http:
- match:
- uri:
prefix: /com.gonuclei.grpc
route:
- destination:
host: hello-grpc
port:
number: 6565
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment