File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # proxitok-web-deployment .yaml
1+ # proxitok-web-statefulset .yaml
22apiVersion : apps/v1
3- kind : Deployment
3+ kind : StatefulSet
44metadata :
55 name : proxitok-web
66 namespace : proxitok
77spec :
8+ serviceName : proxitok-web
89 replicas : 2
910 selector :
1011 matchLabels :
@@ -89,10 +90,17 @@ spec:
8990 - name : nginx-logs
9091 mountPath : /var/lib/nginx/logs
9192 volumes :
92- - name : cache-volume
93- persistentVolumeClaim :
94- claimName : proxitok-cache-pvc
9593 - name : run-volume
9694 emptyDir : {}
9795 - name : nginx-logs
9896 emptyDir : {}
97+ volumeClaimTemplates :
98+ - metadata :
99+ name : cache-volume
100+ namespace : proxitok
101+ spec :
102+ accessModes : ["ReadWriteOnce"]
103+ storageClassName : longhorn
104+ resources :
105+ requests :
106+ storage : 1Gi
Original file line number Diff line number Diff line change @@ -4,13 +4,12 @@ metadata:
44 name : proxitok-web
55 namespace : proxitok
66spec :
7+ clusterIP : None
78 selector :
89 app : proxitok-web
910 ports :
10- - port : 8080
11- targetPort : 8080
12- type : ClusterIP
13-
11+ - port : 8080
12+ targetPort : 8080
1413---
1514apiVersion : v1
1615kind : Service
2120 selector :
2221 app : proxitok-redis
2322 ports :
24- - port : 6379
25- targetPort : 6379
23+ - port : 6379
24+ targetPort : 6379
2625 type : ClusterIP
27-
2826---
2927apiVersion : v1
3028kind : Service
3533 selector :
3634 app : proxitok-chromedriver
3735 ports :
38- - port : 9515
39- targetPort : 9515
40- type : ClusterIP
36+ - port : 9515
37+ targetPort : 9515
38+ type : ClusterIP
You can’t perform that action at this time.
0 commit comments