Skip to content

Commit bc81325

Browse files
committed
ss
1 parent 3f46267 commit bc81325

2 files changed

Lines changed: 21 additions & 15 deletions

File tree

my-apps/privacy/proxitok/deployment.yaml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
# proxitok-web-deployment.yaml
1+
# proxitok-web-statefulset.yaml
22
apiVersion: apps/v1
3-
kind: Deployment
3+
kind: StatefulSet
44
metadata:
55
name: proxitok-web
66
namespace: proxitok
77
spec:
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

my-apps/privacy/proxitok/service.yaml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ metadata:
44
name: proxitok-web
55
namespace: proxitok
66
spec:
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
---
1514
apiVersion: v1
1615
kind: Service
@@ -21,10 +20,9 @@ spec:
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
---
2927
apiVersion: v1
3028
kind: Service
@@ -35,6 +33,6 @@ spec:
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

0 commit comments

Comments
 (0)