Last active 1726979753

Revision 6a2621785522be40bdfaab5c1c71ff46492e1e6a

Service.yaml Raw
1apiVersion: v1
2kind: Service
3metadata:
4 name: <NAME>-svc
5 labels:
6 app: <NAME>
7spec:
8 ports:
9 - port: 3003
10 name: <PORT NAME>
11 clusterIP: None
12 selector:
13 app: <NAME>
StatefulSet.yaml Raw
1apiVersion: apps/v1
2kind: StatefulSet
3metadata:
4 name: <NAME>
5 labels:
6 app: <NAME>
7spec:
8 serviceName: <NAME>
9 minReadySeconds: 10
10 replicas: 1
11 selector:
12 matchLabels:
13 app: <NAME>
14 template:
15 metadata:
16 labels:
17 app: <NAME>
18 spec:
19 volumes:
20 - name: <NAME>-vol
21 persistentVolumeClaim:
22 claimName: <NAME>-pvc
23 containers:
24 - image: "<IMAGE>"
25 #imagePullPolicy: Never
26 name: app
27 volumeMounts:
28 - mountPath: /path
29 name: <NAME>-vol
30 ports:
31 - containerPort: 3003
32 # hostPort: 8085
33