Skip to content

Instantly share code, notes, and snippets.

@kevincantu
Created October 7, 2020 03:26
Show Gist options
  • Save kevincantu/15e9b93feba50d4dacc3773101cbba15 to your computer and use it in GitHub Desktop.
Save kevincantu/15e9b93feba50d4dacc3773101cbba15 to your computer and use it in GitHub Desktop.
# YAGES: https://github.com/mhausenblas/yages#yet-another-grpc-echo-server
#
# set this up and then call:
# grpcurl --insecure -v yages.staging.test:443 yages.Echo.Ping
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: yages
namespace: monitoring
labels:
app: yages
spec:
selector:
matchLabels:
app: yages
replicas: 1
template:
metadata:
labels:
app: yages
spec:
containers:
- name: grpcsrv
image: quay.io/mhausenblas/yages:0.1.0
ports:
- containerPort: 9000
protocol: TCP
resources:
limits:
cpu: 1
memory: 2Gi
requests:
cpu: 200m
memory: 400Mi
---
apiVersion: v1
kind: Service
metadata:
name: yages
namespace: monitoring
labels:
app: yages
spec:
ports:
- name: demo
port: 55682
protocol: TCP
targetPort: 9000
selector:
app: yages
---
apiVersion: projectcontour.io/v1
kind: HTTPProxy
metadata:
name: yages
namespace: monitoring
labels:
app: yages
spec:
virtualhost:
fqdn: yages.staging.test
tls:
secretName: yages-wildcard
#passthrough: true
tcpproxy:
services:
- name: yages
port: 55682
# tls: HTTP/1 TLS
# h2: HTTP/2 TLS
# h2c: HTTP/2 cleartext
protocol: h2c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment