diff --git a/README.md b/README.md index 68806ae..0b0bde0 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +Default user: admin/admin + Choix d'utiliser mysql: https://github.com/bpatrik/pigallery2 (SQL database and no-database mode) MySQL: permet plus d'options de recherche diff --git a/pigallery2-deployment.yaml b/pigallery2-deployment.yaml index 43d8678..f6ebb4d 100644 --- a/pigallery2-deployment.yaml +++ b/pigallery2-deployment.yaml @@ -28,10 +28,10 @@ spec: name: config - mountPath: /app/data/db name: db-data - - mountPath: /app/data/images - name: images - - mountPath: /app/data/tmp - name: tmp + - name: "images" + mountPath: "/app/data/images" + - name: tmp + mountPath: /app/data/tmp restartPolicy: Always volumes: - name: config @@ -40,9 +40,11 @@ spec: - name: db-data persistentVolumeClaim: claimName: db-data - - name: images - persistentVolumeClaim: - claimName: images + - name: "images" + nfs: + server: "odroidhc2.local" + path: "/mnt/photos_sanitized" + readOnly: true - name: tmp persistentVolumeClaim: claimName: tmp diff --git a/pigallery2-service.yaml b/pigallery2-service.yaml index 75b5a54..b9b3978 100644 --- a/pigallery2-service.yaml +++ b/pigallery2-service.yaml @@ -1,19 +1,15 @@ apiVersion: v1 kind: Service metadata: - annotations: - kompose.cmd: kompose convert - kompose.version: 1.16.0 (0c01309) - creationTimestamp: null labels: io.kompose.service: pigallery2 name: pigallery2 spec: + type: "ClusterIP" ports: - - name: "80" - port: 80 - targetPort: 80 + - name: "http" + port: 80 + protocol: "TCP" + targetPort: 80 selector: - io.kompose.service: pigallery2 -status: - loadBalancer: {} + app: "pigallery2"