Skip to content

Commit

Permalink
Move networkpolicies out of /contrib into /common (kubeflow#2385)
Browse files Browse the repository at this point in the history
  • Loading branch information
rawc0der committed May 10, 2023
1 parent b1e2982 commit 408b64d
Show file tree
Hide file tree
Showing 23 changed files with 26 additions and 29 deletions.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: cache-server
namespace: kubeflow
Expand All @@ -18,4 +18,3 @@ spec:
port: 8443
policyTypes:
- Ingress

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: centraldashboard
namespace: kubeflow
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: default-allow-same-namespace
namespace: kubeflow
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: jupyter-web-app
namespace: kubeflow
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: katib-controller
namespace: kubeflow
Expand All @@ -16,8 +16,8 @@ spec:
- ports: # webhook
- protocol: TCP
port: 8443
# - ports: # metrics
# - protocol: TCP
# port: 8080
# - ports: # metrics
# - protocol: TCP
# port: 8080
policyTypes:
- Ingress
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: katib-db-manager
namespace: kubeflow
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: katib-ui
namespace: kubeflow
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: kserve-models-web-app
namespace: kubeflow
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: kserve
namespace: kubeflow
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: metatada-envoy
namespace: kubeflow
Expand All @@ -21,4 +21,3 @@ spec:
- podSelector: {}
policyTypes:
- Ingress

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: metadata-grpc-server
namespace: kubeflow
Expand All @@ -21,4 +21,3 @@ spec:
- podSelector: {} # allow all pods from the same namespace
policyTypes:
- Ingress

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: minio
namespace: kubeflow
Expand All @@ -9,7 +9,7 @@ spec:
- key: app
operator: In
values:
- minio # artifact storage
- minio # artifact storage
ingress:
- from:
- namespaceSelector:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: ml-pipeline-ui
namespace: kubeflow
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: ml-pipeline
namespace: kubeflow
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: poddefaults
namespace: kubeflow
Expand All @@ -9,7 +9,7 @@ spec:
- key: app
operator: In
values:
- poddefaults # mutating webhook
- poddefaults # mutating webhook
# https://www.elastic.co/guide/en/cloud-on-k8s/1.1/k8s-webhook-network-policies.html
# The kubernetes api server must reach the webhook
ingress:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: seldon
namespace: kubeflow
Expand All @@ -18,4 +18,3 @@ spec:
port: 4443
policyTypes:
- Ingress

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: tensorboards-web-app
namespace: kubeflow
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: volumes-web-app
namespace: kubeflow
Expand Down
1 change: 0 additions & 1 deletion contrib/networkpolicies/.gitkeep

This file was deleted.

3 changes: 3 additions & 0 deletions example/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ sortOptions:
- MutatingWebhookConfiguration
- ServiceAccount
- PodSecurityPolicy
- NetworkPolicy
- Role
- ClusterRole
- RoleBinding
Expand Down Expand Up @@ -49,6 +50,8 @@ resources:
- ../common/istio-1-16/cluster-local-gateway/base
# Kubeflow namespace
- ../common/kubeflow-namespace/base
# NetworkPolicies
- ../common/networkpolicies/base
# Kubeflow Roles
- ../common/kubeflow-roles/base
# Kubeflow Istio Resources
Expand Down

0 comments on commit 408b64d

Please sign in to comment.