Skip to content

Instantly share code, notes, and snippets.

@bprashanth
Last active April 7, 2016 09:14
Show Gist options
  • Save bprashanth/680c534cf25247545de2e7992c486eed to your computer and use it in GitHub Desktop.
Save bprashanth/680c534cf25247545de2e7992c486eed to your computer and use it in GitHub Desktop.

Source range lb:

apiVersion: v1
kind: Service
metadata:
  annotations:
    service.beta.kubernetes.io/load-balancer-source-ranges: "10.0.0.0/8"
  name: netexec
  labels:
    app: netexec
spec:
  type: LoadBalancer
  selector:
    app: netexec
  ports:
  - name: tcp
    port: 8080
    protocol: TCP
---
apiVersion: v1
kind: ReplicationController
metadata:
  name: netexec
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: netexec
    spec:
      containers:
      - name: netexec
        image: gcr.io/google_containers/netexec:1.5
        ports:
        - name: tcp
          containerPort: 8080
          protocol: TCP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment