This commit is contained in:
Andrey Kartashov 2020-07-15 15:22:11 +07:00
parent 8bcc6c843b
commit 858bcb623d
2 changed files with 66 additions and 0 deletions

View file

@ -18,3 +18,4 @@ spec:
- router.gorilych.ru
- seafile.gorilych.ru
- grafana.gorilych.ru
- wiki.gorilych.ru

65
apps/services/wiki.yaml Normal file
View file

@ -0,0 +1,65 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: wiki
labels:
app: wiki
spec:
replicas: 1
selector:
matchLabels:
app: wiki
template:
metadata:
labels:
app: wiki
spec:
hostname: wiki
volumes:
- name: data
hostPath:
path: /data/wiki
type: DirectoryOrCreate
containers:
- name: wiki
image: requarks/wiki:2.4
imagePullPolicy: IfNotPresent
env:
- name: CONFIG_FILE
value: /data/config.yml
ports:
- containerPort: 3000
name: http
volumeMounts:
- mountPath: /data
name: data
---
kind: Service
apiVersion: v1
metadata:
name: wiki
spec:
selector:
app: wiki
ports:
- name: http
targetPort: http
port: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: wiki
spec:
tls:
- secretName: san-gorilych-ru-tls
hosts:
- wiki.gorilych.ru
rules:
- host: wiki.gorilych.ru
http:
paths:
- backend:
serviceName: wiki
servicePort: http