-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdemo.yaml
58 lines (58 loc) · 1003 Bytes
/
demo.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#
# Zipkin Demo App
#
apiVersion: v1
kind: Service
metadata:
name: zipkin-demo
namespace: tracing
labels:
app: zipkin-demo
spec:
ports:
- name: demo-svc
port: 8080
targetPort: 8080
protocol: TCP
selector:
app: zipkin-demo
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: zipkin-demo
namespace: tracing
labels:
app: zipki-demo
spec:
replicas: 1
template:
metadata:
labels:
app: zipkin-demo
spec:
containers:
- name: demo-app
image: zipkin-demo
imagePullPolicy: IfNotPresent
ports:
- name: web
containerPort: 8080
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: zipkin-demo
namespace: tracing
annotations:
ingress.kubernetes.io/rewrite-target: /
spec:
rules:
# any valid host for your ingress
- host: demo.demo.com
http:
paths:
- path: /
backend:
serviceName: demo-svc
servicePort: 8080