Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
edited obd-demo
Browse files Browse the repository at this point in the history
  • Loading branch information
leoporoli committed Oct 7, 2024
1 parent 3da1351 commit 5834377
Showing 1 changed file with 1 addition and 101 deletions.
102 changes: 1 addition & 101 deletions ci/obd-demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -279,44 +279,6 @@ spec:
protocol: TCP
appProtocol: HTTP

---
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
name: gateway
annotations:
kardinal.dev.service/gateway: "true"
spec:
gatewayClassName: istio
listeners:
- name: default
hostname: "*.app.localhost"
port: 8888
protocol: HTTP
allowedRoutes:
namespaces:
from: All

---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: http
annotations:
kardinal.dev.service/route: "true"
spec:
parentRefs:
- name: gateway
hostnames: ["prod.app.localhost"]
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: frontend
port: 80

---
apiVersion: networking.k8s.io/v1
kind: Ingress
Expand All @@ -327,7 +289,7 @@ metadata:
name: ingress
spec:
rules:
- host: web.other.localhost
- host: baseline.app.localhost
http:
paths:
- path: /
Expand All @@ -338,68 +300,6 @@ spec:
port:
number: 80

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: metrics-v1
labels:
app: metrics
version: v1
spec:
selector:
matchLabels:
app: metrics
version: v1
template:
metadata:
labels:
app: metrics
version: v1
annotations:
sidecar.istio.io/rewriteAppHTTPProbers: "true"
spec:
containers:
- name: server
image: kurtosistech/metrics:main
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8091
readinessProbe:
initialDelaySeconds: 10
httpGet:
path: "/_healthz"
port: 8091
httpHeaders:
- name: "Cookie"
value: "shop_session-id=x-readiness-probe"
livenessProbe:
initialDelaySeconds: 10
httpGet:
path: "/_healthz"
port: 8091
httpHeaders:
- name: "Cookie"
value: "shop_session-id=x-liveness-probe"
---
apiVersion: v1
kind: Service
metadata:
name: metrics
labels:
app: metrics
version: v1
spec:
type: ClusterIP
selector:
app: metrics
ports:
- name: http
port: 8091
protocol: TCP
appProtocol: HTTP
targetPort: 8091

---
apiVersion: v1
kind: Service
Expand Down

0 comments on commit 5834377

Please sign in to comment.