You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
627 B
23 lines
627 B
apiVersion: networking.k8s.io/v1
|
|
kind: NetworkPolicy
|
|
metadata:
|
|
name: katib-controller
|
|
namespace: kubeflow
|
|
spec:
|
|
podSelector:
|
|
matchExpressions:
|
|
- key: katib.kubeflow.org/component
|
|
operator: In
|
|
values:
|
|
- controller # katib mutating webhook to add metrics logger
|
|
# 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:
|
|
- ports: # webhook
|
|
- protocol: TCP
|
|
port: 8443
|
|
# - ports: # metrics
|
|
# - protocol: TCP
|
|
# port: 8080
|
|
policyTypes:
|
|
- Ingress
|
|
|