Skip to content

Instantly share code, notes, and snippets.

@bprashanth
Created July 13, 2016 00:43
Show Gist options
  • Select an option

  • Save bprashanth/2b5c5e614ef8b9c460de784899ca392b to your computer and use it in GitHub Desktop.

Select an option

Save bprashanth/2b5c5e614ef8b9c460de784899ca392b to your computer and use it in GitHub Desktop.

Revisions

  1. bprashanth created this gist Jul 13, 2016.
    34 changes: 34 additions & 0 deletions svc.yaml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,34 @@
    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