Skip to content

Instantly share code, notes, and snippets.

@alex-moreno
Created April 28, 2020 09:53
Show Gist options
  • Save alex-moreno/4e1303956fea994273c2985407bca795 to your computer and use it in GitHub Desktop.
Save alex-moreno/4e1303956fea994273c2985407bca795 to your computer and use it in GitHub Desktop.
lb-webserver.yaml
apiVersion: v1
kind: Service
metadata:
name: ddev-load-balancer
spec:
type: LoadBalancer
selector:
# Will deliver external traffic to the pod holding each of our containers
app: ddev
ports:
- protocol: TCP
port: 80
targetPort: 80
name: http
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment