forked from gct-faisal/bitnami-docker-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkubernetes.yml
112 lines (112 loc) · 2.3 KB
/
kubernetes.yml
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
apiVersion: v1
items:
- apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: example-ingress
labels:
app: example
annotations:
spec:
rules:
- host: app.example.com
http:
paths:
- path: /
backend:
serviceName: example-svc
servicePort: 80
tls:
- apiVersion: v1
kind: Service
metadata:
name: example-svc
labels:
app: example
spec:
ports:
- name: http
port: 80
targetPort: http
selector:
app: example
type: NodePort
status:
loadBalancer: {}
- apiVersion: v1
kind: ConfigMap
metadata:
name: example-configmap
labels:
app: example
data:
config.js: |-
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: example-data-pvc
annotations: {}
labels:
app: example
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Mi
status: {}
- apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: example-deployment
labels:
app: example
spec:
replicas: 1
strategy:
type: Recreate
template:
metadata:
labels:
app: example
spec:
containers:
- name: example
image: bitnami/node-example:0.0.1
ports:
- containerPort: 3000
name: http
livenessProbe:
httpGet:
path: /
port: http
httpHeaders:
- name: Host
value: app.example.com
initialDelaySeconds: 15
readinessProbe:
httpGet:
path: /
port: http
httpHeaders:
- name: Host
value: app.example.com
initialDelaySeconds: 5
resources: {}
volumeMounts:
- mountPath: /app/config.js
name: example-config
subPath: config.js
- mountPath: /app/data
name: example-data
restartPolicy: Always
volumes:
- name: example-config
configMap:
name: example-configmap
- name: example-data
persistentVolumeClaim:
claimName: example-data-pvc
status: {}
kind: List
metadata: {}