-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.yaml
50 lines (50 loc) · 931 Bytes
/
app.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: app
spec:
selector:
matchLabels:
app: app
template:
metadata:
labels:
app: app
spec:
containers:
- image: go-upload-server
name: app
imagePullPolicy: Never
enableServiceLinks: false
---
apiVersion: v1
kind: Service
metadata:
name: app
spec:
selector:
app: app
ports:
- port: 8080
targetPort: 8080
protocol: TCP
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: "0"
# nginx.ingress.kubernetes.io/proxy-request-buffering: "off"
name: app
spec:
ingressClassName: nginx
rules:
- http:
paths:
- backend:
service:
name: app
port:
number: 8080
path: /
pathType: ImplementationSpecific