Skip to content

GitLab Next

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A auto-deploy-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.org
  • charts
  • auto-deploy-app
  • Merge requests
  • !30

Add support for NetworkPolicy

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Arthur Evstifeev requested to merge aevstifeev/auto-deploy-app:add-network-policy into master Dec 11, 2019
  • Overview 33
  • Commits 1
  • Pipelines 6
  • Changes 6

This MR introduces support for network policies deployment. Network policies only affect clusters that use container networking provider with support for policies (calico, cilium etc.)

  • Network policy deployment is disabled by default
  • Default policy is block all ingress traffic for all pods in the namespace
  • Policy can be changed via networkPolicy.spec value

Performed QA steps:

  • I have deployed cilium and ingress via cluster apps: https://gitlab.com/gitlab-org/defend/network-policy-cluster-management
  • I have deployed my MR to that cluster with a policy that blocks ingress: aevstifeev/network-policy-demo@85319ec2 . I checked that app was in-accessible
  • I have deployed another policy that whitelists ingress: aevstifeev/network-policy-demo@a5822969

You can check that app on https://aevstifeev-network-policy-demo.35.224.152.153.nip.io/

related to gitlab-org/gitlab#14010 (closed)

Edited Dec 17, 2019 by Arthur Evstifeev
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: add-network-policy