Skip to content

Instantly share code, notes, and snippets.

@kdubovikov
Created March 19, 2018 06:28
Show Gist options
  • Save kdubovikov/b87fb8ed66507e1c743507f7db114f92 to your computer and use it in GitHub Desktop.
Save kdubovikov/b87fb8ed66507e1c743507f7db114f92 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Service
metadata:
labels:
app: chopstick-classifier
name: chopstick-classifier
spec:
type: LoadBalancer # we need a load balancer to distribute our requests between all replicas in the Deployment
ports:
- port: 8500 # run this
name: grpc
selector:
app: chopstick-classifier # we are targeting pods labeled "app: chopstick classifier"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment