-
Notifications
You must be signed in to change notification settings - Fork 16
/
siwi-app.yaml
56 lines (54 loc) · 962 Bytes
/
siwi-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
51
52
53
54
55
56
---
kind: Pod
apiVersion: v1
metadata:
name: siwi-frontend-file
labels:
app: siwi
spec:
containers:
- name: siwi-frontend-file
image: weygu/siwi-frontend:latest
imagePullPolicy: Always
ports:
- containerPort: 80
---
kind: Service
apiVersion: v1
metadata:
name: siwi-frontend-file
labels:
app: siwi
spec:
selector:
app: siwi
ports:
- port: 80
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: siwi-service
labels:
app: siwi
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
rules:
- host: "demo-siwi.local"
http:
paths:
- pathType: Prefix
path: "/query"
backend:
service:
name: REVISION-private
port:
number: 80
- pathType: Prefix
path: "/"
backend:
service:
name: siwi-frontend-file
port:
number: 80