Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/dex_oauth2-proxy_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ on:
- common/cert-manager/**
- common/oauth2-proxy/**
- common/istio*/**
- experimental/security/PSS/*
- tests/kubeflow_profile_install.sh
- tests/PSS_enable.sh
Comment on lines +10 to +11
- common/dex/base/**
- tests/istio*
- tests/dex_login_test.py
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/istio_validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,8 @@ jobs:
- name: Test basic connectivity
run: |
kubectl expose deployment test-application --port=80 --target-port=8080 -n $KF_PROFILE
kubectl run test-client --image=busybox --rm -i --restart=Never -n $KF_PROFILE -- \
kubectl run test-client --image=busybox:1.36.1 --rm -i --restart=Never -n $KF_PROFILE \
--overrides='{"spec": {"securityContext": {"runAsNonRoot": true, "runAsUser": 1000, "seccompProfile": {"type": "RuntimeDefault"}}, "containers": [{"name": "test-client", "image": "busybox:1.36.1", "stdin": true, "tty": true, "securityContext": {"allowPrivilegeEscalation": false, "capabilities": {"drop": ["ALL"]}, "runAsNonRoot": true, "runAsUser": 1000, "seccompProfile": {"type": "RuntimeDefault"}}}]}}' -- \
wget -qO- --timeout=10 test-application.$KF_PROFILE.svc.cluster.local

- name: Apply Pod Security Standards Restricted levels
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/katib_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
pull_request:
paths:
- tests/install_KinD_create_KinD_cluster_install_kustomize.sh
- tests/katib_install.sh
- tests/katib*
- .github/workflows/katib_test.yaml
- applications/katib/upstream/**
- common/istio*/**
Expand All @@ -12,7 +12,8 @@ on:
- tests/profile_controller_install.sh
- applications/dashboard/upstream/profile-controller/**
- common/cert-manager/**
- experimental/security/PSS/*
- tests/kubeflow_profile_install.sh
- tests/PSS_enable.sh

permissions:
contents: read
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pipeline_run_from_notebook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ on:
- common/cert-manager/**
- common/oauth2-proxy/**
- common/istio*/**
- tests/pipeline*
- tests/kubeflow_profile_install.sh
- tests/PSS_enable.sh
- common/kubeflow-namespace/**

permissions:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pipeline_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ on:
- common/cert-manager/**
- common/oauth2-proxy/**
- common/istio*/**
- tests/pipeline_v1_test.py
- tests/pipeline_v2_test.py
- experimental/security/PSS/*
- tests/pipeline*
- tests/kubeflow_profile_install.sh
- tests/PSS_enable.sh

permissions:
contents: read
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/trainer_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ on:
- common/cert-manager/**
- common/oauth2-proxy/**
- common/istio*/**
- experimental/security/PSS/*
- tests/kubeflow_profile_install.sh
- tests/PSS_enable.sh

permissions:
contents: read
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/training_operator_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ on:
- common/cert-manager/**
- common/oauth2-proxy/**
- common/istio*/**
- experimental/security/PSS/*
- tests/kubeflow_profile_install.sh
- tests/PSS_enable.sh
Comment on lines +17 to +18

permissions:
contents: read
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,15 @@ This repository periodically synchronizes all official Kubeflow components from
| Kubeflow Pipelines | applications/pipeline/upstream | [2.16.1](https://github.com/kubeflow/pipelines/tree/2.16.1/manifests/kustomize) | 970m | 3552Mi | 35GB |
| Kubeflow Hub | applications/hub/upstream | [v0.3.9](https://github.com/kubeflow/hub/tree/v0.3.9/manifests/kustomize) | 510m | 2112Mi | 20GB |
| Spark Operator | applications/spark/spark-operator | [2.5.0](https://github.com/kubeflow/spark-operator/tree/v2.5.0) | 9m | 41Mi | 0GB |
| Istio | common/istio | [1.29.2](https://github.com/istio/istio/releases/tag/1.29.2) | 750m | 2364Mi | 0GB |
| Istio | common/istio | [1.30.0](https://github.com/istio/istio/releases/tag/1.30.0) | 750m | 2364Mi | 0GB |
| Knative | common/knative/knative-serving <br /> common/knative/knative-eventing | [v1.21.1](https://github.com/knative/serving/releases/tag/knative-v1.21.1) <br /> [v1.21.0](https://github.com/knative/eventing/releases/tag/knative-v1.21.0) | 1450m | 1038Mi | 0GB |
| Cert Manager | common/cert-manager | [1.19.4](https://github.com/cert-manager/cert-manager/releases/tag/v1.19.4) | 3m | 128Mi | 0GB |
| Dex | common/dex | [2.45.0](https://github.com/dexidp/dex/releases/tag/v2.45.0) | 3m | 27Mi | 0GB |
| OAuth2-Proxy | common/oauth2-proxy | [7.14.3](https://github.com/oauth2-proxy/oauth2-proxy/releases/tag/v7.14.3) | 3m | 27Mi | 0GB |
| **Total** | | | **4380m** | **12341Mi** | **65GB** |
| **Total** | | | **4380m** | **12341Mi** | **65GB** |

> **Note on Istio Version:** Istio 1.30+ is required for PSS Restricted namespace compatibility. The istio-proxy sidecar in 1.29.x does not meet restricted PSS requirements (missing seccompProfile, non-zero UID in some modes). Do not downgrade.




Expand Down
62 changes: 62 additions & 0 deletions applications/katib/overlays/katib-with-kubeflow/katib-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Katib Config patch to enable PSS compliance.
# injectSecurityContext: true clones securityContext properties from primary
# trial containers to sidecar metrics-collectors, preventing admission blocks.
apiVersion: config.kubeflow.org/v1beta1
kind: KatibConfig
init:
controller:
webhookPort: 8443
injectSecurityContext: true
Comment on lines +1 to +9
trialResources:
- TrainJob.v1alpha1.trainer.kubeflow.org
- Job.v1.batch
- TFJob.v1.kubeflow.org
- PyTorchJob.v1.kubeflow.org
- MPIJob.v1.kubeflow.org
- XGBoostJob.v1.kubeflow.org
runtime:
metricsCollectors:
- kind: StdOut
image: ghcr.io/kubeflow/katib/file-metrics-collector:v0.19.0
- kind: File
image: ghcr.io/kubeflow/katib/file-metrics-collector:v0.19.0
- kind: TensorFlowEvent
image: ghcr.io/kubeflow/katib/tfevent-metrics-collector:v0.19.0
resources:
limits:
memory: 1Gi
suggestions:
- algorithmName: random
image: ghcr.io/kubeflow/katib/suggestion-hyperopt:v0.19.0
- algorithmName: tpe
image: ghcr.io/kubeflow/katib/suggestion-hyperopt:v0.19.0
- algorithmName: grid
image: ghcr.io/kubeflow/katib/suggestion-optuna:v0.19.0
- algorithmName: hyperband
image: ghcr.io/kubeflow/katib/suggestion-hyperband:v0.19.0
- algorithmName: bayesianoptimization
image: ghcr.io/kubeflow/katib/suggestion-skopt:v0.19.0
- algorithmName: cmaes
image: ghcr.io/kubeflow/katib/suggestion-goptuna:v0.19.0
- algorithmName: sobol
image: ghcr.io/kubeflow/katib/suggestion-goptuna:v0.19.0
- algorithmName: multivariate-tpe
image: ghcr.io/kubeflow/katib/suggestion-optuna:v0.19.0
- algorithmName: enas
image: ghcr.io/kubeflow/katib/suggestion-enas:v0.19.0
resources:
limits:
memory: 400Mi
- algorithmName: darts
image: ghcr.io/kubeflow/katib/suggestion-darts:v0.19.0
- algorithmName: pbt
image: ghcr.io/kubeflow/katib/suggestion-pbt:v0.19.0
persistentVolumeClaimSpec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 5Gi
earlyStoppings:
- algorithmName: medianstop
image: ghcr.io/kubeflow/katib/earlystopping-medianstop:v0.19.0
11 changes: 11 additions & 0 deletions applications/katib/overlays/katib-with-kubeflow/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../upstream/installs/katib-with-kubeflow
configMapGenerator:
- behavior: merge
files:
- katib-config.yaml
name: katib-config
options:
disableNameSuffixHash: true
Comment on lines +5 to +11
6 changes: 6 additions & 0 deletions applications/trainer/overlays/runtimes/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../upstream/overlays/runtimes
patches:
- path: torch_distributed_patch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
apiVersion: trainer.kubeflow.org/v1alpha1
kind: ClusterTrainingRuntime
metadata:
name: torch-distributed
spec:
template:
spec:
replicatedJobs:
- name: node
template:
spec:
template:
spec:
securityContext:
runAsNonRoot: true
runAsUser: 1000
seccompProfile:
type: RuntimeDefault
containers:
- name: node
# workingDir: /tmp is used as a writable directory workaround under PSS Restricted
# (read-only root fs in base image). Safe for short-running stateless test pods.
workingDir: /tmp
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
runAsNonRoot: true
runAsUser: 1000
seccompProfile:
type: RuntimeDefault
30 changes: 15 additions & 15 deletions common/istio/cluster-local-gateway/base/cluster-local-gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ metadata:
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: istio-ingressgateway
app.kubernetes.io/part-of: istio
app.kubernetes.io/version: 1.29.2
helm.sh/chart: istio-ingress-1.29.2
app.kubernetes.io/version: 1.30.0
helm.sh/chart: istio-ingress-1.30.0
install.operator.istio.io/owning-resource: unknown
istio: cluster-local-gateway
istio.io/rev: default
Expand All @@ -26,8 +26,8 @@ metadata:
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: istio-ingressgateway
app.kubernetes.io/part-of: istio
app.kubernetes.io/version: 1.29.2
helm.sh/chart: istio-ingress-1.29.2
app.kubernetes.io/version: 1.30.0
helm.sh/chart: istio-ingress-1.30.0
install.operator.istio.io/owning-resource: unknown
istio: cluster-local-gateway
istio.io/dataplane-mode: none
Expand Down Expand Up @@ -59,9 +59,9 @@ spec:
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: istio-ingressgateway
app.kubernetes.io/part-of: istio
app.kubernetes.io/version: 1.29.2
app.kubernetes.io/version: 1.30.0
chart: gateways
helm.sh/chart: istio-ingress-1.29.2
helm.sh/chart: istio-ingress-1.30.0
heritage: Tiller
install.operator.istio.io/owning-resource: unknown
istio: cluster-local-gateway
Expand Down Expand Up @@ -144,7 +144,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.nodeName
image: registry.istio.io/release/proxyv2:1.29.2
image: registry.istio.io/release/proxyv2:1.30.0
name: istio-proxy
ports:
- containerPort: 15020
Expand Down Expand Up @@ -260,8 +260,8 @@ metadata:
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: istio-ingressgateway
app.kubernetes.io/part-of: istio
app.kubernetes.io/version: 1.29.2
helm.sh/chart: istio-ingress-1.29.2
app.kubernetes.io/version: 1.30.0
helm.sh/chart: istio-ingress-1.30.0
install.operator.istio.io/owning-resource: unknown
istio.io/rev: default
operator.istio.io/component: IngressGateways
Expand All @@ -286,8 +286,8 @@ metadata:
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: istio-ingressgateway
app.kubernetes.io/part-of: istio
app.kubernetes.io/version: 1.29.2
helm.sh/chart: istio-ingress-1.29.2
app.kubernetes.io/version: 1.30.0
helm.sh/chart: istio-ingress-1.30.0
install.operator.istio.io/owning-resource: unknown
istio.io/rev: default
operator.istio.io/component: IngressGateways
Expand All @@ -311,8 +311,8 @@ metadata:
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: istio-ingressgateway
app.kubernetes.io/part-of: istio
app.kubernetes.io/version: 1.29.2
helm.sh/chart: istio-ingress-1.29.2
app.kubernetes.io/version: 1.30.0
helm.sh/chart: istio-ingress-1.30.0
install.operator.istio.io/owning-resource: unknown
istio: cluster-local-gateway
istio.io/rev: default
Expand Down Expand Up @@ -345,8 +345,8 @@ metadata:
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: istio-ingressgateway
app.kubernetes.io/part-of: istio
app.kubernetes.io/version: 1.29.2
helm.sh/chart: istio-ingress-1.29.2
app.kubernetes.io/version: 1.30.0
helm.sh/chart: istio-ingress-1.30.0
install.operator.istio.io/owning-resource: unknown
istio: cluster-local-gateway
istio.io/rev: default
Expand Down
Loading