https://github.com/stackrox/network-policy-examples
YAML files accompanying the StackRox Network Policies guide.
https://github.com/stackrox/network-policy-examples
Last synced: 3 months ago
JSON representation
YAML files accompanying the StackRox Network Policies guide.
- Host: GitHub
- URL: https://github.com/stackrox/network-policy-examples
- Owner: stackrox
- Created: 2019-04-05T22:49:54.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-08T16:56:26.000Z (almost 7 years ago)
- Last Synced: 2025-03-02T17:26:19.624Z (11 months ago)
- Homepage: https://www.stackrox.com/post/2019/04/setting-up-kubernetes-network-policies-a-detailed-guide/
- Size: 6.84 KB
- Stars: 34
- Watchers: 5
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Examples from the Network Policies guide
YAML files for all the network policy configurations described in the [Setting up Kubernetes Network Policies - A Detailed Guide](https://www.stackrox.com/post/2019/04/setting-up-kubernetes-network-policies-a-detailed-guide/) post on the StackRox blog.
## How to use
Assuming that you're connected to a Kubernetes cluster, most of these network policies can be created as is, by running `kubectl create -f `. For the policies that don't specify a namespace in the YAML, you may want to specify a namespace using `kubectl create -n -f `.
Note that some of the YAMLs are not ready to create as-is; you will have to replace the labels in them with the actual labels from your pods.