-
Notifications
You must be signed in to change notification settings - Fork 24
/
app-log-analysis.yaml
68 lines (68 loc) · 1.43 KB
/
app-log-analysis.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
59
60
61
62
63
64
65
66
67
68
kind: Deployment
apiVersion: apps/v1
metadata:
name: app-log-analysis-deployment
spec:
selector:
matchLabels:
run: app-log-analysis
replicas: 2
template:
metadata:
labels:
run: app-log-analysis
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "8002"
spec:
containers:
- name: app-log-analysis
image: icr.io/solution-tutorials/tutorial-application-log-analysis
---
kind: Service
apiVersion: v1
metadata:
name: app-log-analysis-svc
labels:
run: app-log-analysis
spec:
type: NodePort
ports:
- port: 8001
protocol: TCP
selector:
run: app-log-analysis
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: app-log-analysis-ingress
annotations:
kubernetes.io/ingress.class: "public-iks-k8s-nginx"
spec:
rules:
- host: $MYINGRESSSUBDOMAIN
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: app-log-analysis-svc
port:
number: 8001
# for older clusters, you can uncomment the deprecated Ingress syntax
# and comment the Ingress definition above
# apiVersion: extensions/v1beta1
# kind: Ingress
# metadata:
# name: app-log-analysis-ingress
# spec:
# rules:
# - host: $MYINGRESSSUBDOMAIN
# http:
# paths:
# - path: /
# backend:
# serviceName: app-log-analysis-svc
# servicePort: 8001