-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsharedNoteServer.yaml
69 lines (69 loc) · 1.46 KB
/
sharedNoteServer.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
69
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: shared-note-ingress
annotations:
cert-manager.io/issuer: sharednote-issuer
spec:
ingressClassName: "traefik"
tls:
- secretName: sharednote-cert
hosts:
- note.imoonkin.online
rules:
- http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: shared-note-server
port:
number: 12808
---
apiVersion: v1
kind: Service
metadata:
name: shared-note-server
spec:
ports:
- port: 12808
protocol: TCP
selector:
app: shared-note-server
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: shared-note-server
spec:
selector:
matchLabels:
app: shared-note-server
strategy:
type: Recreate
template:
metadata:
labels:
app: shared-note-server
spec:
containers:
- image: imoonkin/goproductpod:latest
name: shared-note-server
ports:
- containerPort: 12808
name: sharednote-p
volumeMounts:
- name: binaries
mountPath: /root/server
- name: static
mountPath: /root/static
volumes:
- name: binaries
hostPath:
path: /home/product/sharedNoteServer
type: DirectoryOrCreate
- name: static
hostPath:
path: /home/product/static
type: DirectoryOrCreate