{"id":20102963,"url":"https://github.com/stackrox/network-policy-examples","last_synced_at":"2025-10-14T04:25:36.387Z","repository":{"id":103030879,"uuid":"179764481","full_name":"stackrox/network-policy-examples","owner":"stackrox","description":"YAML files accompanying the StackRox Network Policies guide.","archived":false,"fork":false,"pushed_at":"2019-04-08T16:56:26.000Z","size":7,"stargazers_count":34,"open_issues_count":0,"forks_count":11,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-02T17:26:19.624Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.stackrox.com/post/2019/04/setting-up-kubernetes-network-policies-a-detailed-guide/","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stackrox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-05T22:49:54.000Z","updated_at":"2024-04-26T04:43:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"a22126b9-f2ba-4631-b9d9-fc4d7bd33d66","html_url":"https://github.com/stackrox/network-policy-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stackrox/network-policy-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackrox%2Fnetwork-policy-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackrox%2Fnetwork-policy-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackrox%2Fnetwork-policy-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackrox%2Fnetwork-policy-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stackrox","download_url":"https://codeload.github.com/stackrox/network-policy-examples/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackrox%2Fnetwork-policy-examples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017947,"owners_count":26086213,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T17:33:46.789Z","updated_at":"2025-10-14T04:25:36.367Z","avatar_url":"https://github.com/stackrox.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Examples from the Network Policies guide\n\nYAML 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.\n\n## How to use\n\nAssuming that you're connected to a Kubernetes cluster, most of these network policies can be created as is, by running `kubectl create -f \u003cfilename.yaml\u003e`. For the policies that don't specify a namespace in the YAML, you may want to specify a namespace using `kubectl create -n \u003cnamespace_name\u003e -f \u003cfilename.yaml\u003e`.\n\nNote 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.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackrox%2Fnetwork-policy-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstackrox%2Fnetwork-policy-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackrox%2Fnetwork-policy-examples/lists"}