-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathapp-ambassador.yaml
More file actions
47 lines (47 loc) · 849 Bytes
/
app-ambassador.yaml
File metadata and controls
47 lines (47 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
apiVersion: apps/v1beta1
kind: Deployment
metadata:
labels:
app: yages
name: yages
namespace: grpc-demo-ambassador
spec:
replicas: 1
template:
metadata:
labels:
app: yages
spec:
containers:
- name: grpcsrv
image: quay.io/mhausenblas/yages:0.1.0
ports:
- containerPort: 9000
protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
labels:
app: yages
name: yages
namespace: grpc-demo-ambassador
annotations:
getambassador.io/config: |
---
apiVersion: ambassador/v0
kind: Mapping
name: grpc_mapping
grpc: true
prefix: /echo/
rewrite: /yages.Echo/
service: yages.grpc-demo:9000
spec:
type: ClusterIP
ports:
- name: http
port: 9000
protocol: TCP
targetPort: 9000
selector:
app: yages