forked from YOURLS/YOURLS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx.yaml
More file actions
71 lines (71 loc) · 1.67 KB
/
nginx.yaml
File metadata and controls
71 lines (71 loc) · 1.67 KB
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
apiVersion: v1
kind: Service
metadata:
labels:
io.kompose.service: nginx
name: nginx
spec:
ports:
- name: "443"
port: 443
targetPort: 443
selector:
io.kompose.service: nginx
status:
loadBalancer: {}
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
io.kompose.service: nginx
name: nginx
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: nginx
strategy:
type: Recreate
template:
metadata:
labels:
io.kompose.service: nginx
spec:
containers:
- image: nginx:1.25.1
name: nginx
ports:
- containerPort: 443
resources: {}
volumeMounts:
- name: nginx-selfsigned-crt
mountPath: /etc/pki/tls/certs/nginx-selfsigned.crt
subPath: nginx-selfsigned.crt
- name: nginx-selfsigned-key
mountPath: /etc/pki/tls/private/nginx-selfsigned.key
subPath: nginx-selfsigned.key
- name: nginx-yourls-conf
mountPath: /etc/nginx/conf.d/yourls.conf
subPath: yourls.conf
restartPolicy: Always
volumes:
- name: nginx-selfsigned-crt
configMap:
name: nginx
items:
- key: nginx-selfsigned.crt
path: nginx-selfsigned.crt
- name: nginx-selfsigned-key
configMap:
name: nginx
items:
- key: nginx-selfsigned.key
path: nginx-selfsigned.key
- name: nginx-yourls-conf
configMap:
name: nginx
items:
- key: yourls.conf
path: yourls.conf
status: {}