Skip to content

Instantly share code, notes, and snippets.

@orlanrepo
Last active May 11, 2019 07:23
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 orlanrepo/e5c3d1fa49ec94839a5a4221d59c21f5 to your computer and use it in GitHub Desktop.
Save orlanrepo/e5c3d1fa49ec94839a5a4221d59c21f5 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Service
metadata:
name: local-firewall
spec:
ports:
- port: 8765
targetPort: 9376
selector:
app: example
type: LoadBalancer
loadBalancerSourceRanges:
- 10.244.0.0/16
------
apiVersion: v1
kind: Service
metadata:
name: outside-firewall
spec:
ports:
- port: 8765
targetPort: 9376
selector:
app: outside-firewall
type: LoadBalancer
loadBalancerSourceRanges:
- 130.211.204.1/32
- 130.211.204.2/32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment