first commit

This commit is contained in:
Tyrel Souza 2023-07-05 16:09:13 +00:00
commit 55439d1899
5 changed files with 112 additions and 0 deletions

View File

@ -0,0 +1,14 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
creationTimestamp: null
labels:
io.kompose.service: shaarli-cache
name: shaarli-cache
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Mi
status: {}

View File

@ -0,0 +1,14 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
creationTimestamp: null
labels:
io.kompose.service: shaarli-data
name: shaarli-data
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Mi
status: {}

View File

@ -0,0 +1,46 @@
apiVersion: apps/v1
kind: Deployment
haaetadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.26.0 (40646f47)
creationTimestamp: null
labels:
io.kompose.service: shaarli
name: shaarli
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: shaarli
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.26.0 (40646f47)
creationTimestamp: null
labels:
io.kompose.service: shaarli
spec:
containers:
- image: ghcr.io/shaarli/shaarli:latest
name: bmarkz
ports:
- containerPort: 80
resources: {}
volumeMounts:
- mountPath: /var/www/shaarli/data
name: shaarli-data
- mountPath: /var/www/shaarli/cache
name: shaarli-cache
restartPolicy: Always
volumes:
- name: shaarli-data
persistentVolumeClaim:
claimName: shaarli-data
- name: shaarli-cache
persistentVolumeClaim:
claimName: shaarli-cache
status: {}

View File

@ -0,0 +1,18 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: minimal-ingress
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
ingressClassName: shaarli
rules:
- http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: shaarli
port:
number: 80

View File

@ -0,0 +1,20 @@
apiVersion: v1
kind: Service
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.26.0 (40646f47)
creationTimestamp: null
labels:
io.kompose.service: shaarli
name: shaarli
spec:
type: NodePort
selector:
io.kompose.service: shaarli
ports:
- port: 80
targetPort: 80
nodePort: 32414
status:
loadBalancer: {}