Skip to content

Instantly share code, notes, and snippets.

@chanjarster
Last active August 16, 2018 02:58
Show Gist options
  • Save chanjarster/8fef442a879d20561fafa230e1603932 to your computer and use it in GitHub Desktop.
Save chanjarster/8fef442a879d20561fafa230e1603932 to your computer and use it in GitHub Desktop.
A istio tracing test app
apiVersion: v1
kind: Namespace
metadata:
name: istio-test
labels:
istio-injection: enabled
---
apiVersion: v1
kind: Service
metadata:
name: echo-server
namespace: istio-test
labels:
app: echo-server
spec:
type: ClusterIP
ports:
- port: 8080
targetPort: http
protocol: TCP
name: http
selector:
app: echo-server
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: echo-server
namespace: istio-test
spec:
selector:
matchLabels:
app: echo-server
replicas: 1
template:
metadata:
labels:
app: echo-server
spec:
containers:
- name: echo-server
image: gcr.io/google-containers/echoserver:1.10
ports:
- containerPort: 8080
name: http
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: echo-server-ingress
namespace: istio-test
spec:
rules:
- host: <your domain name>
http:
paths:
- path: /echo-server-istio
backend:
serviceName: echo-server
servicePort: http
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment