mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-09-18 10:32:55 +02:00
Add credential secret as volume
This commit is contained in:
@@ -37,9 +37,6 @@ spec:
|
|||||||
- mountPath: /museum.yaml
|
- mountPath: /museum.yaml
|
||||||
name: museum-claim1
|
name: museum-claim1
|
||||||
readOnly: true
|
readOnly: true
|
||||||
- mountPath: /credentials.yaml
|
|
||||||
name: museum-claim2
|
|
||||||
readOnly: true
|
|
||||||
- mountPath: /data
|
- mountPath: /data
|
||||||
name: museum-claim3
|
name: museum-claim3
|
||||||
readOnly: true
|
readOnly: true
|
||||||
@@ -50,6 +47,12 @@ spec:
|
|||||||
# name: socat
|
# name: socat
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
volumes:
|
volumes:
|
||||||
|
- name: credentials
|
||||||
|
secret:
|
||||||
|
secretName: ente-photos-config
|
||||||
|
items:
|
||||||
|
- key: credentials.yaml
|
||||||
|
path: /
|
||||||
- name: custom-logs
|
- name: custom-logs
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: custom-logs
|
claimName: custom-logs
|
||||||
@@ -57,10 +60,6 @@ spec:
|
|||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: museum-claim1
|
claimName: museum-claim1
|
||||||
readOnly: true
|
readOnly: true
|
||||||
- name: museum-claim2
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: museum-claim2
|
|
||||||
readOnly: true
|
|
||||||
- name: museum-claim3
|
- name: museum-claim3
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: museum-claim3
|
claimName: museum-claim3
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ spec:
|
|||||||
template:
|
template:
|
||||||
engineVersion: v2
|
engineVersion: v2
|
||||||
data:
|
data:
|
||||||
config: |
|
credentials.yaml: |
|
||||||
db:
|
db:
|
||||||
host: helm-postgresql
|
host: helm-postgresql
|
||||||
port: 5432
|
port: 5432
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
io.kompose.service: museum-claim2
|
|
||||||
name: museum-claim2
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 100Mi
|
|
||||||
Reference in New Issue
Block a user