-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompiled.yaml
155 lines (155 loc) · 3.34 KB
/
compiled.yaml
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
---
apiVersion: v1
kind: Namespace
metadata:
name: qcguy
---
#kind: ConfigMap
#apiVersion: v1
#metadata:
# name: qcguy-configmap
# namespace: qcguy
#data:
# Configuration values can be set as key-value properties
#database: mongodb
#database_uri: mongodb://localhost:27017
# Or set as complete file contents (even JSON!)
# fromfile: /home/vik/IdeaProjects/qcguy-cms/config/
---
apiVersion: v1
kind: Service
metadata:
name: qcguy
namespace: qcguy
labels:
app: qcguy
io.kompose.service: qcguy
spec:
type: NodePort
#loadBalancerIP: 192.168.49.234
selector:
io.kompose.service: qcguy
app: qcguy
ports:
- port: 2368
protocol: TCP
name: "2368"
nodePort: 30368
targetPort: 2368
#externalTrafficPolicy: Local
status:
#loadBalancer:
# ingress:
# - ip: 192.168.49.234
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: qcguy-pv-volume
namespace: qcguy
labels:
type: local
spec:
storageClassName: manual
capacity:
storage: 300Mi
accessModes:
- ReadWriteOnce
hostPath:
path: /mnt/qcguy-ghost
# storageClassName: do-block-storage
#apiVersion: v1
#kind: PersistentVolume
#metadata:
# name: qcguy-content
# labels:
# app: qcguy-content
#spec:
# storageClassName: ""
# capacity:
# storage: 250Mi
# accessModes:
# - ReadWriteOnce
# persistentVolumeReclaimPolicy: Retain
# claimRef:
# namespace: qcguy
# name: qcguy-content
# nfs:
# path: /tmp
# server: 172.17.0.2
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
creationTimestamp: null
name: qcguy-content-claim
namespace: qcguy
labels:
app: qcguy-content-claim
io.kompose.service: qcguy-content-claim
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 250Mi
storageClassName: manual
status: {}
---
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.26.0 (40646f47)
creationTimestamp: null
labels:
app: qcguy
io.kompose.service: qcguy
name: qcguy
namespace: qcguy
spec:
replicas: 1
selector:
matchLabels:
app: qcguy
io.kompose.service: qcguy
strategy: {}
template:
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.26.0 (40646f47)
creationTimestamp: null
labels:
io.kompose.service: qcguy
app: qcguy
spec:
volumes:
- name: qcguy-content-storage
persistentVolumeClaim:
claimName: qcguy-content-claim
- name: qcguy-configmap-volume
configMap:
name: qcguy-configmap
#items:
# - key: config.production.json
# path: "./var/lib/ghost/config.production.json"
containers:
- env:
- name: url
value: https://www.qcguy.com
image: ghost:latest
#imagePullPolicy: Always
name: qcguy
ports:
- containerPort: 2368
resources: {}
volumeMounts:
- mountPath: /var/lib/ghost/content #/mnt/qcguy-ghost/data
name: qcguy-content-storage
- name: qcguy-configmap-volume
mountPath: /var/lib/ghost/config.production.json #/mnt/qcguy-ghost/data/data/config.production.json
subPath: config.production.json
#restartPolicy: Never
status: {}