This commit is contained in:
parent
74cb202772
commit
6e2365c5a8
28
freshrss/freshrss-deployment.yaml
Normal file
28
freshrss/freshrss-deployment.yaml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: freshrss
|
||||||
|
namespace: freshrss-ns
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: freshrss
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: freshrss
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: freshrss
|
||||||
|
image: linuxserver/freshrss
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
|
volumeMounts:
|
||||||
|
- name: freshrss-storage
|
||||||
|
mountPath: /config
|
||||||
|
volumes:
|
||||||
|
- name: freshrss-storage
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: freshrss-pvc
|
||||||
|
|
13
freshrss/freshrss-pvc.yaml
Normal file
13
freshrss/freshrss-pvc.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: freshrss-pvc
|
||||||
|
namespace: freshrss-ns
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
storageClassName: longhorn
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1Gi
|
||||||
|
|
14
freshrss/freshrss-service.yaml
Normal file
14
freshrss/freshrss-service.yaml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: freshrss-service
|
||||||
|
namespace: freshrss-ns
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: freshrss
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
port: 80
|
||||||
|
targetPort: 80
|
||||||
|
type: LoadBalancer
|
||||||
|
|
Loading…
Reference in New Issue
Block a user