Skip to content

Instantly share code, notes, and snippets.

@bprashanth
Created July 13, 2016 00:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bprashanth/2b5c5e614ef8b9c460de784899ca392b to your computer and use it in GitHub Desktop.
Save bprashanth/2b5c5e614ef8b9c460de784899ca392b to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Service
metadata:
name: echoheaders-lb
annotations:
service.alpha.kubernetes.io/only-node-local-endpoints: "true"
labels:
app: echoheaders-lb
spec:
type: LoadBalancer
ports:
- port: 80
targetPort: 8080
protocol: TCP
name: http
selector:
app: echoheaders-lb
---
apiVersion: v1
kind: ReplicationController
metadata:
name: echoheaders-lb
spec:
replicas: 1
template:
metadata:
labels:
app: echoheaders-lb
spec:
containers:
- name: echoheaders-lb
image: gcr.io/google_containers/echoserver:1.3
ports:
- containerPort: 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment