forked from opendatahub-io/kserve
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
126 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
demo/kserve/custom-manifests/metrics/caikit-metrics-service.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
name: caikit-example-isvc-predictor-default-sm | ||
namespace: kserve-demo | ||
labels: | ||
name: caikit-example-isvc-predictor-default-sm | ||
spec: | ||
ports: | ||
- name: caikit-metrics | ||
protocol: TCP | ||
port: 8086 | ||
targetPort: 8086 | ||
type: ClusterIP | ||
selector: | ||
serving.knative.dev/service: caikit-example-isvc-predictor-default |
13 changes: 13 additions & 0 deletions
13
demo/kserve/custom-manifests/metrics/caikit-metrics-servicemonitor.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
name: caikit-example-isvc-predictor-default-sm | ||
namespace: kserve-demo | ||
spec: | ||
endpoints: | ||
- port: caikit-metrics | ||
scheme: http | ||
namespaceSelector: {} | ||
selector: | ||
matchLabels: | ||
name: caikit-example-isvc-predictor-default-sm |
16 changes: 16 additions & 0 deletions
16
demo/kserve/custom-manifests/metrics/networkpolicy-uwm.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
kind: NetworkPolicy | ||
apiVersion: networking.k8s.io/v1 | ||
metadata: | ||
name: allow-from-openshift-monitoring-ns | ||
labels: | ||
app.kubernetes.io/version: release-v1.9 | ||
networking.knative.dev/ingress-provider: istio | ||
spec: | ||
podSelector: {} | ||
ingress: | ||
- from: | ||
- namespaceSelector: | ||
matchLabels: | ||
name: openshift-user-workload-monitoring | ||
policyTypes: | ||
- Ingress |
14 changes: 14 additions & 0 deletions
14
demo/kserve/custom-manifests/metrics/peerauthentication-caikit-metrics.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: security.istio.io/v1beta1 | ||
kind: PeerAuthentication | ||
metadata: | ||
name: caikit-metrics | ||
namespace: kserve-demo | ||
spec: | ||
mtls: | ||
mode: STRICT | ||
portLevelMtls: | ||
'8086': | ||
mode: PERMISSIVE | ||
selector: | ||
matchLabels: | ||
serving.knative.dev/service: caikit-example-isvc-predictor-default # replace with the appropriate label for your ksvc |