From e68f23bf59438be12563003f8852b0d3ca39f1d7 Mon Sep 17 00:00:00 2001 From: juliusvonkohout <45896133+juliusvonkohout@users.noreply.github.com> Date: Wed, 26 Jun 2024 15:19:16 +0200 Subject: [PATCH] Update kserve models web application manifests from 0.13.0-rc.0 Signed-off-by: juliusvonkohout <45896133+juliusvonkohout@users.noreply.github.com> --- README.md | 2 +- .../models-web-app/base/deployment.yaml | 44 ------------ contrib/kserve/models-web-app/base/istio.yaml | 21 ------ .../models-web-app/base/kustomization.yaml | 20 ------ contrib/kserve/models-web-app/base/rbac.yaml | 68 ------------------- .../kserve/models-web-app/base/service.yaml | 14 ---- .../overlays/kubeflow/kustomization.yaml | 42 ------------ .../overlays/kubeflow/params.yaml | 4 -- .../kubeflow/patches/web-app-sidecar.yaml | 10 --- .../kubeflow/patches/web-app-vsvc.yaml | 14 ---- .../web-app-authorization-policy.yaml | 18 ----- 11 files changed, 1 insertion(+), 256 deletions(-) delete mode 100644 contrib/kserve/models-web-app/base/deployment.yaml delete mode 100644 contrib/kserve/models-web-app/base/istio.yaml delete mode 100644 contrib/kserve/models-web-app/base/kustomization.yaml delete mode 100644 contrib/kserve/models-web-app/base/rbac.yaml delete mode 100644 contrib/kserve/models-web-app/base/service.yaml delete mode 100644 contrib/kserve/models-web-app/overlays/kubeflow/kustomization.yaml delete mode 100644 contrib/kserve/models-web-app/overlays/kubeflow/params.yaml delete mode 100644 contrib/kserve/models-web-app/overlays/kubeflow/patches/web-app-sidecar.yaml delete mode 100644 contrib/kserve/models-web-app/overlays/kubeflow/patches/web-app-vsvc.yaml delete mode 100644 contrib/kserve/models-web-app/overlays/kubeflow/web-app-authorization-policy.yaml diff --git a/README.md b/README.md index 0a85c731d4..782954a222 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ This repo periodically syncs all official Kubeflow components from their respect | Volumes Web App | apps/volumes-web-app/upstream | [v1.9.0-rc.0](https://github.com/kubeflow/kubeflow/tree/v1.9.0-rc.0/components/crud-web-apps/volumes/manifests) | | Katib | apps/katib/upstream | [v0.17.0-rc.0](https://github.com/kubeflow/katib/tree/v0.17.0-rc.0/manifests/v1beta1) | | KServe | contrib/kserve/kserve | [0.13.0](https://github.com/kserve/kserve/releases/tag/v0.13.0) | -| KServe Models Web App | contrib/kserve/models-web-app | [v0.10.0](https://github.com/kserve/models-web-app/tree/v0.10.0/config) | +| KServe Models Web App | contrib/kserve/models-web-app | [0.13.0-rc.0](https://github.com/kserve/models-web-app/tree/0.13.0-rc.0/config) | | Kubeflow Pipelines | apps/pipeline/upstream | [2.2.0](https://github.com/kubeflow/pipelines/tree/2.2.0/manifests/kustomize) | | Kubeflow Tekton Pipelines | apps/kfp-tekton/upstream | [2.0.5](https://github.com/kubeflow/kfp-tekton/tree/2.0.5/manifests/kustomize) | | Kubeflow Model Registry | apps/model-registry/upstream | [v0.2.1-alpha](https://github.com/kubeflow/model-registry/tree/v0.2.1-alpha/manifests/kustomize) | diff --git a/contrib/kserve/models-web-app/base/deployment.yaml b/contrib/kserve/models-web-app/base/deployment.yaml deleted file mode 100644 index af39b867e2..0000000000 --- a/contrib/kserve/models-web-app/base/deployment.yaml +++ /dev/null @@ -1,44 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: kserve-models-web-app - namespace: kserve -spec: - replicas: 1 - selector: - matchLabels: - app.kubernetes.io/component: kserve-models-web-app - template: - metadata: - labels: - app.kubernetes.io/component: kserve-models-web-app - spec: - containers: - - image: kserve/models-web-app:latest - imagePullPolicy: Always - name: kserve-models-web-app - envFrom: - - configMapRef: - name: kserve-models-web-app-config - ports: - - containerPort: 5000 - name: http - livenessProbe: - httpGet: - path: /healthz/liveness - port: http - initialDelaySeconds: 0 - periodSeconds: 10 - timeoutSeconds: 1 - failureThreshold: 3 - successThreshold: 1 - readinessProbe: - httpGet: - path: /healthz/readiness - port: http - initialDelaySeconds: 0 - periodSeconds: 10 - timeoutSeconds: 1 - failureThreshold: 3 - successThreshold: 1 - serviceAccountName: kserve-models-web-app diff --git a/contrib/kserve/models-web-app/base/istio.yaml b/contrib/kserve/models-web-app/base/istio.yaml deleted file mode 100644 index 944eddba0f..0000000000 --- a/contrib/kserve/models-web-app/base/istio.yaml +++ /dev/null @@ -1,21 +0,0 @@ -apiVersion: networking.istio.io/v1beta1 -kind: VirtualService -metadata: - name: kserve-models-web-app - namespace: kserve -spec: - gateways: - - knative-serving/knative-ingress-gateway - hosts: - - '*' - http: - - match: - - uri: - prefix: /kserve-endpoints/ - rewrite: - uri: / - route: - - destination: - host: kserve-models-web-app.kserve.svc.cluster.local - port: - number: 80 diff --git a/contrib/kserve/models-web-app/base/kustomization.yaml b/contrib/kserve/models-web-app/base/kustomization.yaml deleted file mode 100644 index 65665c8ae8..0000000000 --- a/contrib/kserve/models-web-app/base/kustomization.yaml +++ /dev/null @@ -1,20 +0,0 @@ -resources: -- rbac.yaml -- service.yaml -- deployment.yaml -- istio.yaml - -namespace: kserve - -commonLabels: - kustomize.component: kserve-models-web-app - app.kubernetes.io/component: kserve-models-web-app - -images: -- name: kserve/models-web-app - newName: kserve/models-web-app - newTag: v0.10.0 -configMapGenerator: - - name: kserve-models-web-app-config - literals: - - APP_DISABLE_AUTH="True" diff --git a/contrib/kserve/models-web-app/base/rbac.yaml b/contrib/kserve/models-web-app/base/rbac.yaml deleted file mode 100644 index 27190da527..0000000000 --- a/contrib/kserve/models-web-app/base/rbac.yaml +++ /dev/null @@ -1,68 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - name: kserve-models-web-app - namespace: kserve ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: kserve-models-web-app-cluster-role -rules: -- apiGroups: - - authorization.k8s.io - resources: - - subjectaccessreviews - verbs: - - create -- apiGroups: - - "" - resources: - - namespaces - - pods - - pods/log - - events - verbs: - - get - - list -- apiGroups: - - serving.kserve.io - resources: - - inferenceservices - - inferenceservices/status - verbs: - - get - - list - - watch - - create - - delete - - deletecollection - - patch - - update -- apiGroups: - - serving.knative.dev - resources: - - services - - services/status - - routes - - routes/status - - configurations - - configurations/status - - revisions - - revisions/status - verbs: - - get - - list ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - name: kserve-models-web-app-binding -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: kserve-models-web-app-cluster-role -subjects: -- kind: ServiceAccount - name: kserve-models-web-app - namespace: kserve diff --git a/contrib/kserve/models-web-app/base/service.yaml b/contrib/kserve/models-web-app/base/service.yaml deleted file mode 100644 index b2f17d167b..0000000000 --- a/contrib/kserve/models-web-app/base/service.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: kserve-models-web-app - namespace: kserve -spec: - ports: - - name: http - port: 80 - protocol: TCP - targetPort: 5000 - selector: - app.kubernetes.io/component: kserve-models-web-app - type: ClusterIP diff --git a/contrib/kserve/models-web-app/overlays/kubeflow/kustomization.yaml b/contrib/kserve/models-web-app/overlays/kubeflow/kustomization.yaml deleted file mode 100644 index 18f0724c00..0000000000 --- a/contrib/kserve/models-web-app/overlays/kubeflow/kustomization.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization - -# Adds namespace to all resources. -namespace: kubeflow - -# Labels to add to all resources and selectors. -commonLabels: - app: kserve - app.kubernetes.io/name: kserve - -bases: -- ../../base -- web-app-authorization-policy.yaml - -patchesStrategicMerge: -- patches/web-app-sidecar.yaml - -patchesJson6902: -- target: - group: networking.istio.io - version: v1beta1 - kind: VirtualService - name: kserve-models-web-app - namespace: kserve - path: patches/web-app-vsvc.yaml - -generatorOptions: - disableNameSuffixHash: true - -# To make namespace for standalone installation kustomizable, -# variabalize ingress gateway, webhook service name and -# kserve namespace in webhook configurations -configMapGenerator: - - name: kserve-models-web-app-config - behavior: replace - literals: - - USERID_HEADER=kubeflow-userid - - APP_PREFIX=/kserve-endpoints - -configurations: -- params.yaml diff --git a/contrib/kserve/models-web-app/overlays/kubeflow/params.yaml b/contrib/kserve/models-web-app/overlays/kubeflow/params.yaml deleted file mode 100644 index 56365c66ce..0000000000 --- a/contrib/kserve/models-web-app/overlays/kubeflow/params.yaml +++ /dev/null @@ -1,4 +0,0 @@ -commonLabels: -- kind: AuthorizationPolicy - path: spec/selector/matchLabels - create: true diff --git a/contrib/kserve/models-web-app/overlays/kubeflow/patches/web-app-sidecar.yaml b/contrib/kserve/models-web-app/overlays/kubeflow/patches/web-app-sidecar.yaml deleted file mode 100644 index 825618da90..0000000000 --- a/contrib/kserve/models-web-app/overlays/kubeflow/patches/web-app-sidecar.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: kserve-models-web-app - namespace: kserve -spec: - template: - metadata: - annotations: - sidecar.istio.io/inject: "true" diff --git a/contrib/kserve/models-web-app/overlays/kubeflow/patches/web-app-vsvc.yaml b/contrib/kserve/models-web-app/overlays/kubeflow/patches/web-app-vsvc.yaml deleted file mode 100644 index 22eaa9dbff..0000000000 --- a/contrib/kserve/models-web-app/overlays/kubeflow/patches/web-app-vsvc.yaml +++ /dev/null @@ -1,14 +0,0 @@ -- op: replace - path: /spec/gateways - value: - - kubeflow/kubeflow-gateway -- op: replace - path: /spec/http/0/route/0/destination - value: - host: kserve-models-web-app.kubeflow.svc.cluster.local - port: - number: 80 -- op: replace - path: /spec/gateways - value: - - kubeflow/kubeflow-gateway diff --git a/contrib/kserve/models-web-app/overlays/kubeflow/web-app-authorization-policy.yaml b/contrib/kserve/models-web-app/overlays/kubeflow/web-app-authorization-policy.yaml deleted file mode 100644 index 58bc937e16..0000000000 --- a/contrib/kserve/models-web-app/overlays/kubeflow/web-app-authorization-policy.yaml +++ /dev/null @@ -1,18 +0,0 @@ -apiVersion: security.istio.io/v1beta1 -kind: AuthorizationPolicy -metadata: - labels: - kustomize.component: kserve-models-web-app - app.kubernetes.io/component: kserve-models-web-app - name: kserve-models-web-app -spec: - action: ALLOW - selector: - matchLabels: - kustomize.component: kserve-models-web-app - app.kubernetes.io/component: kserve-models-web-app - rules: - - from: - - source: - principals: - - cluster.local/ns/istio-system/sa/istio-ingressgateway-service-account