mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-27 10:20:34 +00:00
58 lines
1 KiB
YAML
58 lines
1 KiB
YAML
|
---
|
||
|
apiVersion: extensions/v1beta1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
labels:
|
||
|
lemmy.service: pictshare
|
||
|
name: pictshare
|
||
|
spec:
|
||
|
replicas: 1
|
||
|
strategy:
|
||
|
type: Recreate
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
lemmy.service: pictshare
|
||
|
spec:
|
||
|
containers:
|
||
|
- image: hascheksolutions/pictshare:latest
|
||
|
name: pictshare
|
||
|
ports:
|
||
|
- containerPort: 80
|
||
|
volumeMounts:
|
||
|
- mountPath: /usr/share/nginx/html/data
|
||
|
name: pictshare
|
||
|
restartPolicy: Always
|
||
|
volumes:
|
||
|
- name: pictshare
|
||
|
persistentVolumeClaim:
|
||
|
claimName: pictshare
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
labels:
|
||
|
lemmy.service: pictshare
|
||
|
name: pictshare
|
||
|
spec:
|
||
|
ports:
|
||
|
- name: "8537"
|
||
|
port: 8537
|
||
|
targetPort: 80
|
||
|
selector:
|
||
|
lemmy.service: pictshare
|
||
|
status:
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: PersistentVolumeClaim
|
||
|
metadata:
|
||
|
labels:
|
||
|
lemmy.service: pictshare
|
||
|
name: pictshare
|
||
|
spec:
|
||
|
accessModes:
|
||
|
- ReadWriteOnce
|
||
|
resources:
|
||
|
requests:
|
||
|
storage: 20Gi
|