-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.k8s.yaml
47 lines (46 loc) · 879 Bytes
/
test.k8s.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
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: csi-pvc-test
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
storageClassName: do-block-storage
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello-world
labels:
app: hello-world
build: "0.0.1"
spec:
replicas: 1
selector:
matchLabels:
app: hello-world
template:
metadata:
labels:
app: hello-world
spec:
containers:
- name: hello-world
image: mksmtn/k8s-hello-world-test
imagePullPolicy: Always
ports:
- containerPort: 8080
volumeMounts:
- name: hello-world
mountPath: /data
env:
- name: environment
value: test
volumes:
- name: hello-world
persistentVolumeClaim:
claimName: csi-pvc-test