mirror of
https://github.com/hanzo-ml/kserve.git
synced 2026-10-30 20:53:49 +00:00
* Adding migration job for isvc migration from kfserving * remove revision clean up step and ignore webapp from validation * verify inferenceservice status before and after migration
132 lines
2.1 KiB
YAML
132 lines
2.1 KiB
YAML
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: cluster-migration-svcaccount
|
|
namespace: kserve
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRole
|
|
metadata:
|
|
name: cluster-migration-role
|
|
rules:
|
|
- apiGroups: [""]
|
|
resources: ["*"]
|
|
verbs: ["*"]
|
|
- apiGroups:
|
|
- apps
|
|
resources:
|
|
- statefulsets
|
|
- deployments
|
|
verbs:
|
|
- get
|
|
- list
|
|
- apiGroups:
|
|
- apps
|
|
resources:
|
|
- statefulsets/scale
|
|
verbs:
|
|
- patch
|
|
- apiGroups:
|
|
- networking.istio.io
|
|
resources:
|
|
- virtualservices
|
|
verbs:
|
|
- get
|
|
- list
|
|
- patch
|
|
- update
|
|
- watch
|
|
- apiGroups:
|
|
- serving.knative.dev
|
|
resources:
|
|
- services
|
|
verbs:
|
|
- get
|
|
- list
|
|
- patch
|
|
- update
|
|
- watch
|
|
- apiGroups:
|
|
- serving.knative.dev
|
|
resources:
|
|
- revisions
|
|
verbs:
|
|
- delete
|
|
- apiGroups:
|
|
- serving.kubeflow.org
|
|
resources:
|
|
- inferenceservices
|
|
- inferenceservices/finalizers
|
|
verbs:
|
|
- delete
|
|
- get
|
|
- list
|
|
- patch
|
|
- update
|
|
- watch
|
|
- apiGroups:
|
|
- serving.kserve.io
|
|
resources:
|
|
- inferenceservices
|
|
- inferenceservices/finalizers
|
|
verbs:
|
|
- create
|
|
- get
|
|
- list
|
|
- patch
|
|
- update
|
|
- watch
|
|
- apiGroups:
|
|
- rbac.authorization.k8s.io
|
|
resources:
|
|
- clusterrolebindings
|
|
verbs:
|
|
- delete
|
|
- apiGroups:
|
|
- apiextensions.k8s.io
|
|
resources:
|
|
- customresourcedefinitions
|
|
verbs:
|
|
- delete
|
|
- apiGroups:
|
|
- admissionregistration.k8s.io
|
|
resources:
|
|
- mutatingwebhookconfigurations
|
|
- validatingwebhookconfigurations
|
|
verbs:
|
|
- delete
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRoleBinding
|
|
metadata:
|
|
name: cluster-migration-rolebinding
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: cluster-migration-svcaccount
|
|
apiGroup: ""
|
|
namespace: kserve
|
|
roleRef:
|
|
kind: ClusterRole
|
|
name: cluster-migration-role
|
|
apiGroup: ""
|
|
---
|
|
apiVersion: batch/v1
|
|
kind: Job
|
|
metadata:
|
|
name: kserve-migration
|
|
namespace: kserve
|
|
spec:
|
|
backoffLimit: 0
|
|
template:
|
|
metadata:
|
|
name: kserve-migration
|
|
spec:
|
|
serviceAccountName: cluster-migration-svcaccount
|
|
containers:
|
|
- name: kserve-migration
|
|
image: kserve/kserve-migration:latest
|
|
env:
|
|
- name: REMOVE_KFSERVING
|
|
value: "true"
|
|
restartPolicy: Never
|