Created
March 25, 2024 01:21
-
-
Save 5st7/12d9cf0d42e37e5986d92f1520883b6b to your computer and use it in GitHub Desktop.
cilium l7 load balancer testing
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: 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