-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.yaml
More file actions
69 lines (69 loc) · 1.43 KB
/
Copy pathapp.yaml
File metadata and controls
69 lines (69 loc) · 1.43 KB
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
69
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: flask-hello-world
namespace: monitoring
labels:
app: flask-hello-world
spec:
replicas: 1
selector:
matchLabels:
app: flask-hello-world
template:
metadata:
labels:
app: flask-hello-world
spec:
containers:
- name: flask-app
image: my-python-web-app:1.0.0
imagePullPolicy: IfNotPresent
ports:
- containerPort: 5000
env:
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: "http://otel-collector.monitoring.svc.cluster.local:4317"
resources:
limits:
memory: "128Mi"
cpu: "100m"
---
apiVersion: v1
kind: Service
metadata:
name: flask-hello-world
namespace: monitoring
spec:
selector:
app: flask-hello-world
ports:
- protocol: TCP
port: 80
targetPort: 5000
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: flask-app-ingress
namespace: monitoring
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
ingressClassName: nginx
rules:
- host: flask-app.example.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: flask-hello-world
port:
number: 80
tls:
- hosts:
- flask-app.example.com
secretName: flask-app-tls