-
Notifications
You must be signed in to change notification settings - Fork 7
/
jekyll-pod-xfusion.yaml
75 lines (70 loc) · 1.35 KB
/
jekyll-pod-xfusion.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
---
apiVersion: v1
kind: Namespace
metadata:
name: jekyll-namespace-xfusion
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: jekyll-site-xfusion
namespace: jekyll-namespace-xfusion
spec:
volumeName: jekyll-site-xfusion
storageClassName: ""
resources:
requests:
storage: 1Gi
accessModes:
- ReadWriteMany
---
apiVersion: v1
kind: Pod
metadata:
labels:
run: jekyll-pod-xfusion
name: jekyll-pod-xfusion
namespace: jekyll-namespace-xfusion
spec:
volumes:
- name: site
persistentVolumeClaim:
claimName: jekyll-site-xfusion
initContainers:
- image: kodekloud/jekyll
name: jekyll-init-xfusion
resources: {}
command: [ "jekyll", "new", "/site" ]
imagePullPolicy: IfNotPresent
volumeMounts:
- name: site
mountPath: /site
containers:
- name: jekyll-container-xfusion
image: kodekloud/jekyll-serve
volumeMounts:
- name: site
mountPath: /site
dnsPolicy: ClusterFirst
restartPolicy: Always
status: {}
---
apiVersion: v1
kind: Service
metadata:
labels:
app: jekyll-service-xfusion
name: jekyll-service-xfusion
namespace: jekyll-namespace-xfusion
spec:
ports:
- name: 8080-4000
port: 8080
protocol: TCP
targetPort: 4000
nodePort: 31181
selector:
run: jekyll-pod-xfusion
type: NodePort
status:
loadBalancer: {}