Skip to content

Instantly share code, notes, and snippets.

@mlamina
Created November 20, 2015 08:58
Show Gist options
  • Save mlamina/d8054f6765bcc9339737 to your computer and use it in GitHub Desktop.
Save mlamina/d8054f6765bcc9339737 to your computer and use it in GitHub Desktop.
YAML Definition of my Kubernetes service, including load balancer IP
kind: Service
apiVersion: v1
metadata:
name: api-lb
namespace: production
labels:
app: backend
role: api
component: ssl-proxy-service
spec:
ports:
- name: https
port: 443
targetPort: https
protocol: TCP
- name: http
port: 80
targetPort: http
protocol: TCP
selector:
app: backend
role: api
component: ssl-proxy
loadBalancerIP: "104.155.XXX.YYY"
type: LoadBalancer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment