mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-14 09:48:10 -05:00
lots of yaml
This commit is contained in:
58
nginx-deployment.yaml
Normal file
58
nginx-deployment.yaml
Normal file
@@ -0,0 +1,58 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
annotations:
|
||||
kompose.cmd: kompose convert
|
||||
kompose.version: 1.34.0 (cbf2835db)
|
||||
labels:
|
||||
io.kompose.service: nginx
|
||||
name: nginx
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
io.kompose.service: nginx
|
||||
strategy:
|
||||
type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
kompose.cmd: kompose convert
|
||||
kompose.version: 1.34.0 (cbf2835db)
|
||||
labels:
|
||||
io.kompose.service: nginx
|
||||
spec:
|
||||
containers:
|
||||
- args:
|
||||
- /bin/bash
|
||||
- -c
|
||||
- envsubst '$(DOMAIN)_NAME' < /etc/nginx/conf.d/site.template > /etc/nginx/conf.d/default.conf && while :; do sleep 6h & wait $(){!}; nginx -s reload; done & nginx -g 'daemon off;'
|
||||
image: nginx:-
|
||||
name: nginx
|
||||
ports:
|
||||
- containerPort: 80
|
||||
protocol: TCP
|
||||
- containerPort: 443
|
||||
protocol: TCP
|
||||
- containerPort: 5602
|
||||
protocol: TCP
|
||||
volumeMounts:
|
||||
- mountPath: /var/log/syslog
|
||||
name: nginx-cm0
|
||||
- mountPath: /var/log/nginx
|
||||
name: nginx-cm1
|
||||
- mountPath: /var/www/certbot
|
||||
name: nginx-claim2
|
||||
readOnly: true
|
||||
restartPolicy: Always
|
||||
volumes:
|
||||
- configMap:
|
||||
name: nginx-cm0
|
||||
name: nginx-cm0
|
||||
- configMap:
|
||||
name: nginx-cm1
|
||||
name: nginx-cm1
|
||||
- name: nginx-claim2
|
||||
persistentVolumeClaim:
|
||||
claimName: nginx-claim2
|
||||
readOnly: true
|
||||
Reference in New Issue
Block a user