Last active
December 8, 2019 16:05
-
-
Save pandey-adarsh147/7dccdee318df1bf5b6316c2eb94baa77 to your computer and use it in GitHub Desktop.
Hello service proto file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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