forked from CampbellSoftwareSolutions/docker-osticket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathk8s.yaml
86 lines (86 loc) · 1.72 KB
/
k8s.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: silph-help
name: silph-help
spec:
replicas: 1
selector:
matchLabels:
app: silph-help
strategy: {}
minReadySeconds: 10
template:
metadata:
labels:
app: silph-help
spec:
imagePullSecrets:
- name: hub
containers:
- image: silph/ticket:1.15.1-3
env:
- name: CRON_INTERVAL
value: "1"
- name: MYSQL_PREFIX
value: "support_"
- name: INSTALL_SECRET
value: Agh0ietheiyahteiPh1ahj
- name: MYSQL_DATABASE
value: silph-ticket
- name: MYSQL_USER
value: silph-camp
- name: MYSQL_HOST
value: "10.142.0.4"
- name: MYSQL_PORT
value: "3306"
- name: MYSQL_PASSWORD
valueFrom:
secretKeyRef:
name: silph-camps
key: dbpass
- name: INSTALL_CONFIG
value: "/data/upload/include/ost-config.php"
imagePullPolicy: Always
name: silph-help
ports:
- containerPort: 80
resources: {}
restartPolicy: Always
serviceAccountName: ""
status: {}
---
apiVersion: v1
kind: Service
metadata:
name: silph-help
labels:
app: silph-help
spec:
ports:
- port: 80
protocol: TCP
targetPort: 80
selector:
app: silph-help
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: silph-help
annotations:
kubernetes.io/tls-acme: "true"
spec:
tls:
- hosts:
- help.silph.io
secretName: help-tls
rules:
- host: help.silph.io
http:
paths:
- path: /
backend:
serviceName: silph-help
servicePort: 80