Files
Ayush GuptaandGitHub 1c19d3a6eb Fix Istio sidecar injection by moving from annotations to labels (#2527)
* Fix Istio sidecar injection by moving from annotations to labels

Signed-off-by: madmecodes <[email protected]>

* Update Istio sidecar injection from annotations to labels across the codebase
Replace annotations with labels for Istio sidecar injection according to Istio recommendations. Update conformance tests, examples, constants, composers, and utilities to use the new label-based approach consistently.

Signed-off-by: madmecodes <[email protected]>

* fix: Update SuggestionLabels function and composer implementation for Istio label injection

Signed-off-by: madmecodes <[email protected]>

* Fix linting issues in mpi-job-horovod.py

Signed-off-by: madmecodes <[email protected]>

* update: function moved from annotations to labels

Signed-off-by: madmecodes <[email protected]>

---------

Signed-off-by: madmecodes <[email protected]>
2025-05-09 17:52:41 +00:00

45 lines
1.0 KiB
YAML

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: katib-ui
namespace: kubeflow
labels:
katib.kubeflow.org/component: ui
spec:
replicas: 1
selector:
matchLabels:
katib.kubeflow.org/component: ui
template:
metadata:
labels:
katib.kubeflow.org/component: ui
sidecar.istio.io/inject: "false"
spec:
containers:
- name: katib-ui
image: ghcr.io/kubeflow/katib/katib-ui
command:
- "./katib-ui"
args:
- "--port=8080"
env:
- name: KATIB_CORE_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
ports:
- name: ui
containerPort: 8080
securityContext:
runAsNonRoot: true
allowPrivilegeEscalation: false
runAsUser: 1000
seccompProfile:
type: RuntimeDefault
capabilities:
drop:
- ALL
serviceAccountName: katib-ui