mirror of
https://github.com/marcel-dempers/docker-development-youtube-series.git
synced 2025-06-06 17:01:30 +00:00
Merge pull request #27 from marcel-dempers/deployment-volumes-optional
add optional comment section for mounting volumes
This commit is contained in:
commit
09af3d9d51
@ -30,12 +30,12 @@ spec:
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 5000
|
||||
# livenessProbe:
|
||||
# httpGet:
|
||||
# path: /status
|
||||
# port: 5000
|
||||
# initialDelaySeconds: 3
|
||||
# periodSeconds: 3
|
||||
# livenessProbe:
|
||||
# httpGet:
|
||||
# path: /status
|
||||
# port: 5000
|
||||
# initialDelaySeconds: 3
|
||||
# periodSeconds: 3
|
||||
resources:
|
||||
requests:
|
||||
memory: "64Mi"
|
||||
@ -43,15 +43,17 @@ spec:
|
||||
limits:
|
||||
memory: "256Mi"
|
||||
cpu: "500m"
|
||||
volumeMounts:
|
||||
- name: secret-volume
|
||||
mountPath: /secrets/
|
||||
- name: config-volume
|
||||
mountPath: /configs/
|
||||
volumes:
|
||||
- name: secret-volume
|
||||
secret:
|
||||
secretName: mysecret
|
||||
- name: config-volume
|
||||
configMap:
|
||||
name: example-config #name of our configmap object
|
||||
#NOTE: comment out `volumeMounts` section for configmap and\or secret guide
|
||||
# volumeMounts:
|
||||
# - name: secret-volume
|
||||
# mountPath: /secrets/
|
||||
# - name: config-volume
|
||||
# mountPath: /configs/
|
||||
#NOTE: comment out `volumes` section for configmap and\or secret guide
|
||||
# volumes:
|
||||
# - name: secret-volume
|
||||
# secret:
|
||||
# secretName: mysecret
|
||||
# - name: config-volume
|
||||
# configMap:
|
||||
# name: example-config #name of our configmap object
|
||||
|
Loading…
x
Reference in New Issue
Block a user