Compare commits
2 Commits
fa51de4fb6
...
54af3af2c1
Author | SHA1 | Date | |
---|---|---|---|
54af3af2c1 | |||
7405481b72 |
161
manifests/photoprism_chart.yaml
Normal file
161
manifests/photoprism_chart.yaml
Normal file
@ -0,0 +1,161 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: photoprism
|
||||
---
|
||||
|
||||
kind: PersistentVolumeClaim
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: photoprism-storage
|
||||
namespace: photoprism
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
||||
|
||||
---
|
||||
|
||||
apiVersion: helm.fluxcd.io/v1
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: photoprism
|
||||
namespace: photoprism
|
||||
spec:
|
||||
chart:
|
||||
repository: https://p80n.github.io/photoprism-helm/
|
||||
name: photoprism
|
||||
version: 1.0.0
|
||||
maxHistory: 5
|
||||
values:
|
||||
image:
|
||||
tag: "20200729"
|
||||
config:
|
||||
PHOTOPRISM_DEBUG: false
|
||||
PHOTOPRISM_PUBLIC: true
|
||||
PHOTOPRISM_READONLY: true
|
||||
PHOTOPRISM_SITE_URL: https://photos.cluster.fun
|
||||
PHOTOPRISM_SITE_TITLE: Photos
|
||||
PHOTOPRISM_SITE_CAPTION: ""
|
||||
persistence:
|
||||
enabled: true
|
||||
storagePath: /photoprism/storage
|
||||
volumeMounts:
|
||||
- name: storage
|
||||
mountPath: /photoprism/storage
|
||||
volumes:
|
||||
- name: storage
|
||||
persistentVolumeClaim:
|
||||
claimName: photoprism-storage
|
||||
resources:
|
||||
requests:
|
||||
memory: 500Mi
|
||||
|
||||
---
|
||||
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: photoprism-auth
|
||||
namespace: photoprism
|
||||
labels:
|
||||
app: photoprism-auth
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: photoprism-auth
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: photoprism-auth
|
||||
spec:
|
||||
containers:
|
||||
- args:
|
||||
- --cookie-secure=false
|
||||
- --provider=oidc
|
||||
- --provider-display-name=Auth0
|
||||
- --upstream=http://photoprism-photoprism.photoprism.svc.cluster.local
|
||||
- --http-address=$(HOST_IP):8080
|
||||
- --redirect-url=https://photos.cluster.fun/oauth2/callback
|
||||
- --email-domain=marcusnoble.co.uk
|
||||
- --pass-basic-auth=false
|
||||
- --pass-access-token=false
|
||||
- --oidc-issuer-url=https://marcusnoble.eu.auth0.com/
|
||||
- --cookie-secret=KDGD6rrK6cBmryyZ4wcJ9xAUNW9AQN
|
||||
env:
|
||||
- name: HOST_IP
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
apiVersion: v1
|
||||
fieldPath: status.podIP
|
||||
- name: OAUTH2_PROXY_CLIENT_ID
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
key: username
|
||||
name: photoprism-auth
|
||||
- name: OAUTH2_PROXY_CLIENT_SECRET
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
key: password
|
||||
name: photoprism-auth
|
||||
image: quay.io/oauth2-proxy/oauth2-proxy:v5.1.1
|
||||
name: oauth-proxy
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
protocol: TCP
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: photoprism-auth
|
||||
namespace: photoprism
|
||||
annotations:
|
||||
kube-1password: mr6spkkx7n3memkbute6ojaarm
|
||||
kube-1password/vault: Kubernetes
|
||||
type: Opaque
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: photoprism-auth
|
||||
namespace: photoprism
|
||||
labels:
|
||||
app: photoprism-auth
|
||||
spec:
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
protocol: TCP
|
||||
targetPort: 8080
|
||||
selector:
|
||||
app: photoprism-auth
|
||||
type: ClusterIP
|
||||
---
|
||||
apiVersion: extensions/v1beta1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: photoprism-auth
|
||||
namespace: photoprism
|
||||
labels:
|
||||
app: photoprism-auth
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt
|
||||
traefik.ingress.kubernetes.io/frontend-entry-points: http,https
|
||||
traefik.ingress.kubernetes.io/redirect-entry-point: https
|
||||
traefik.ingress.kubernetes.io/redirect-permanent: "true"
|
||||
spec:
|
||||
tls:
|
||||
- hosts:
|
||||
- photos.cluster.fun
|
||||
secretName: photoprism-ingress
|
||||
rules:
|
||||
- host: photos.cluster.fun
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
backend:
|
||||
serviceName: photoprism-auth
|
||||
servicePort: 80
|
@ -5,18 +5,6 @@ metadata:
|
||||
---
|
||||
kind: PersistentVolumeClaim
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: rss
|
||||
namespace: rss
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
||||
---
|
||||
kind: PersistentVolumeClaim
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: rss-db
|
||||
namespace: rss
|
||||
@ -60,6 +48,8 @@ metadata:
|
||||
app: rss
|
||||
spec:
|
||||
replicas: 1
|
||||
strategy:
|
||||
type: Recreate
|
||||
selector:
|
||||
matchLabels:
|
||||
app: rss
|
||||
|
Loading…
Reference in New Issue
Block a user