Skip to content

Instantly share code, notes, and snippets.

@5st7
Created March 25, 2024 01:21
Show Gist options
  • Save 5st7/12d9cf0d42e37e5986d92f1520883b6b to your computer and use it in GitHub Desktop.
Save 5st7/12d9cf0d42e37e5986d92f1520883b6b to your computer and use it in GitHub Desktop.
cilium l7 load balancer testing
apiVersion: apps/v1
kind: Deployment
metadata:
name: grpc-java-example-hostname
spec:
replicas: 3
selector:
matchLabels:
app: grpc-java-example-hostname
template:
metadata:
labels:
app: grpc-java-example-hostname
spec:
containers:
- name: grpc-java-example-hostname
image: grpc/java-example-hostname
ports:
- containerPort: 50051
---
apiVersion: v1
kind: Service
metadata:
name: grpc-java-example-hostname-service
annotations:
service.cilium.io/lb-l7: enabled
spec:
type: LoadBalancer
selector:
app: grpc-java-example-hostname
ports:
- port: 50051
targetPort: 50051
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment