mirror of
https://github.com/amkartashov/gf-k8s.git
synced 2026-01-11 09:59:43 +00:00
add wiki
This commit is contained in:
parent
8bcc6c843b
commit
858bcb623d
2 changed files with 66 additions and 0 deletions
|
|
@ -18,3 +18,4 @@ spec:
|
||||||
- router.gorilych.ru
|
- router.gorilych.ru
|
||||||
- seafile.gorilych.ru
|
- seafile.gorilych.ru
|
||||||
- grafana.gorilych.ru
|
- grafana.gorilych.ru
|
||||||
|
- wiki.gorilych.ru
|
||||||
|
|
|
||||||
65
apps/services/wiki.yaml
Normal file
65
apps/services/wiki.yaml
Normal 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
|
||||||
Loading…
Reference in a new issue