Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: "2022-07-15T11:30:12Z"
name: productpage-v1
spec:
replicas: 1
selector:
matchLabels:
app: productpage
strategy: {}
template:
metadata:
annotations:
kiali.io/runtimes: go
prometheus.io/path: /metrics
prometheus.io/port: "9080"
prometheus.io/scheme: http
prometheus.io/scrape: "true"
sidecar.istio.io/inject: "true"
creationTimestamp: null
labels:
app: productpage
version: v1
spec:
containers:
- env:
- name: SERVICE_NAME
value: productpage-v1
- name: HTTP_ADDR
value: :9080
- name: GRPC_ADDR
value: :9081
- name: SERVICE_CALL
value: http://reviews:9080
image: maistra/istio-workspace-test:latest
imagePullPolicy: Always
livenessProbe:
failureThreshold: 10
httpGet:
path: /healthz
port: 9080
initialDelaySeconds: 5
periodSeconds: 3
name: productpage
ports:
- containerPort: 9080
name: http
- containerPort: 9081
name: grpc
readinessProbe:
httpGet:
path: /healthz
port: 9080
initialDelaySeconds: 5
periodSeconds: 3
resources: {}
status: {}
---
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
labels:
app: productpage
name: productpage
spec:
ports:
- name: http
port: 9080
targetPort: 0
- name: grpc
port: 9081
targetPort: 0
selector:
app: productpage
status:
loadBalancer: {}
---
apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
creationTimestamp: null
name: productpage
spec:
host: productpage
subsets:
- labels:
version: v1
name: v1
status: {}
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
creationTimestamp: null
name: productpage
spec:
gateways:
- test-gateway
hosts:
- '*'
http:
- route:
- destination:
host: productpage
port:
number: 9080
subset: v1
status: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment