Files
bookstack_kube/bookstack.kube.yaml.bak
2024-06-19 11:39:18 +01:00

57 lines
1.2 KiB
Plaintext

apiVersion: v1
kind: Namespace
metadata:
name: bookstack
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: bookstack
namespace: bookstack
spec:
replicas: 1
selector:
matchLabels:
app: bookstack
template:
metadata:
labels:
app: bookstack
spec:
containers:
- image: bookstack:latest
imagePullPolicy: IfNotPresent
name: bookstack
ports:
- containerPort: 8080
name: bookstack-port
volumeMounts:
- name: bookstack-config
mountPath: /data
- name: bookstack-configfile
mountPath: /docker-entrypoint-initdb.d/init-mongo.jsconfigfile.txt
volumes:
- name: bookstack-config
hostPath:
path: /opt/kubernetes/bookstack_kube/config/
- name: bookstack-configfile
hostPath:
path: /opt/kubernetes/bookstack_kube/configfile.txt
type: File
---
apiVersion: v1
kind: Service
metadata:
name: bookstack
namespace: bookstack
spec:
ports:
- port: 8080
targetPort: bookstack-port
protocol: TCP
nodePort: 30007
type: NodePort
selector:
app: bookstack