File tree 1 file changed +64
-0
lines changed
1 file changed +64
-0
lines changed Original file line number Diff line number Diff line change
1
+ apiVersion : apps/v1
2
+ kind : Deployment
3
+ metadata :
4
+ name : pvc-mount-example-okd
5
+ spec :
6
+ replicas : 10
7
+ selector :
8
+ matchLabels :
9
+ app : pvc-mount-example-okd
10
+ template :
11
+ metadata :
12
+ labels :
13
+ app : pvc-mount-example-okd
14
+ spec :
15
+ volumes :
16
+ - name : data
17
+ persistentVolumeClaim :
18
+ claimName : default-pvc
19
+ containers :
20
+ - name : main
21
+ image : sikalabs/slu:v0.80.0
22
+ command : ["/bin/sh", "-c", "cd /data && slu serve"]
23
+ resources :
24
+ requests :
25
+ cpu : 20m
26
+ memory : 30Mi
27
+ limits :
28
+ cpu : 50m
29
+ memory : 50Mi
30
+ ports :
31
+ - containerPort : 8000
32
+ volumeMounts :
33
+ - name : data
34
+ mountPath : /data
35
+ ---
36
+ apiVersion : v1
37
+ kind : Service
38
+ metadata :
39
+ name : pvc-mount-example-okd
40
+ spec :
41
+ type : ClusterIP
42
+ selector :
43
+ app : pvc-mount-example-okd
44
+ ports :
45
+ - port : 80
46
+ targetPort : 8000
47
+ ---
48
+ apiVersion : networking.k8s.io/v1
49
+ kind : Ingress
50
+ metadata :
51
+ name : pvc-mount-example-okd
52
+ spec :
53
+ ingressClassName : openshift-default
54
+ rules :
55
+ - host : pvc-mount-example-okd.apps.okd0.sikademo.com
56
+ http :
57
+ paths :
58
+ - path : /
59
+ pathType : Prefix
60
+ backend :
61
+ service :
62
+ name : pvc-mount-example-okd
63
+ port :
64
+ number : 80
You can’t perform that action at this time.
0 commit comments