mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-09-18 18:42:56 +02:00
Whishper: change to volumeDevice
This commit is contained in:
@@ -24,7 +24,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsGroup: 1000
|
runAsGroup: 1000
|
||||||
runAsNonRoot: false
|
runAsNonRoot: true
|
||||||
runAsUser: 1000
|
runAsUser: 1000
|
||||||
supplementalGroups:
|
supplementalGroups:
|
||||||
- 6
|
- 6
|
||||||
@@ -67,11 +67,16 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- containerPort: 27017
|
- containerPort: 27017
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
volumeMounts:
|
volumeDevices:
|
||||||
- mountPath: /data/db
|
- devicePath: /data/db
|
||||||
name: mongo-claim0
|
name: mongo-claim0
|
||||||
- mountPath: /var/log/mongodb
|
- mountPath: /var/log/mongodb
|
||||||
name: mongo-claim1
|
name: mongo-claim1
|
||||||
|
# volumeMounts:
|
||||||
|
# - mountPath: /data/db
|
||||||
|
# name: mongo-claim0
|
||||||
|
# - mountPath: /var/log/mongodb
|
||||||
|
# name: mongo-claim1
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
volumes:
|
volumes:
|
||||||
- name: mongo-claim0
|
- name: mongo-claim0
|
||||||
|
|||||||
Reference in New Issue
Block a user