formatting ze code and piwigo enhancements

This commit is contained in:
2020-10-11 22:49:56 +02:00
parent 75db50891f
commit f4cb827a5b
3 changed files with 63 additions and 56 deletions

View File

@@ -23,9 +23,9 @@ spec:
- name: distcc - name: distcc
image: docker-registry.lan/distcc:armhf image: docker-registry.lan/distcc:armhf
imagePullPolicy: Always imagePullPolicy: Always
#env: #env:
#- name: OPTIONS #- name: OPTIONS
# value: "--verbose" # value: "--verbose"
ports: ports:
- containerPort: 3632 - containerPort: 3632
name: distcc-data name: distcc-data
@@ -54,7 +54,7 @@ spec:
operator: In operator: In
values: values:
- distcc - distcc
topologyKey: "kubernetes.io/hostname" topologyKey: kubernetes.io/hostname
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
@@ -78,6 +78,3 @@ spec:
selector: selector:
app: distcc app: distcc
type: LoadBalancer type: LoadBalancer

View File

@@ -33,7 +33,7 @@ spec:
name: mariadb name: mariadb
imagePullPolicy: Always imagePullPolicy: Always
env: env:
# Use secret in real usage # Use secret in real usage
- name: MYSQL_ROOT_PASSWORD - name: MYSQL_ROOT_PASSWORD
value: 54MzzfHHTA9qJX64Pvdn value: 54MzzfHHTA9qJX64Pvdn
ports: ports:
@@ -58,7 +58,7 @@ kind: PersistentVolumeClaim
metadata: metadata:
name: mariadb-pv-claim name: mariadb-pv-claim
annotations: annotations:
volume.beta.kubernetes.io/storage-class: "nfs-ssd" volume.beta.kubernetes.io/storage-class: nfs-ssd
spec: spec:
storageClassName: nfs-ssd storageClassName: nfs-ssd
accessModes: accessModes:

View File

@@ -19,7 +19,7 @@ spec:
name: piwigo name: piwigo
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
env: env:
# Use secret in real usage # Use secret in real usage
- name: TZ - name: TZ
value: Europe/Berlin value: Europe/Berlin
livenessProbe: livenessProbe:
@@ -81,11 +81,13 @@ kind: CronJob
metadata: metadata:
name: piwigo-quicksync name: piwigo-quicksync
spec: spec:
schedule: '* */2 * * *' schedule: '*/2 * * * *'
concurrencyPolicy: Forbid
jobTemplate: jobTemplate:
spec: spec:
template: template:
spec: spec:
restartPolicy: OnFailure
containers: containers:
- name: piwigo-quicksync - name: piwigo-quicksync
image: docker-registry.lan/piwigo-sync:arm64 image: docker-registry.lan/piwigo-sync:arm64
@@ -94,8 +96,17 @@ spec:
- /remote_sync.pl - /remote_sync.pl
- --base_url=http://piwigo.default.svc.cluster.local/ - --base_url=http://piwigo.default.svc.cluster.local/
- --username=api - --username=api
- --password='{D8G~y:<tPq::/(Yt.' - --password=D8Gt4P36q3457Yt
restartPolicy: OnFailure affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app
operator: In
values:
- piwigo
topologyKey: kubernetes.io/hostname
--- ---
apiVersion: v1 apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
@@ -120,4 +131,3 @@ spec:
resources: resources:
requests: requests:
storage: 2Gi storage: 2Gi