commit 55439d1899a2cd0ab325d72e8de92b41fe0debdd Author: Tyrel Souza Date: Wed Jul 5 16:09:13 2023 +0000 first commit diff --git a/shaarli/shaarli-cache-persistentvolumeclaim.yaml b/shaarli/shaarli-cache-persistentvolumeclaim.yaml new file mode 100644 index 0000000..35ae16f --- /dev/null +++ b/shaarli/shaarli-cache-persistentvolumeclaim.yaml @@ -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: {} diff --git a/shaarli/shaarli-data-persistentvolumeclaim.yaml b/shaarli/shaarli-data-persistentvolumeclaim.yaml new file mode 100644 index 0000000..1c5db33 --- /dev/null +++ b/shaarli/shaarli-data-persistentvolumeclaim.yaml @@ -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: {} diff --git a/shaarli/shaarli-deployment.yaml b/shaarli/shaarli-deployment.yaml new file mode 100644 index 0000000..f89762e --- /dev/null +++ b/shaarli/shaarli-deployment.yaml @@ -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: {} diff --git a/shaarli/shaarli-ingress.yaml b/shaarli/shaarli-ingress.yaml new file mode 100644 index 0000000..cd0d960 --- /dev/null +++ b/shaarli/shaarli-ingress.yaml @@ -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 diff --git a/shaarli/shaarli-service.yaml b/shaarli/shaarli-service.yaml new file mode 100644 index 0000000..df8df25 --- /dev/null +++ b/shaarli/shaarli-service.yaml @@ -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: {}