Skip to content

Instantly share code, notes, and snippets.

@alinasrullayev
Forked from tuannvm/configmap.yaml
Created April 13, 2023 12:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alinasrullayev/e5a02253190c560d6a0df20f234f0576 to your computer and use it in GitHub Desktop.
Save alinasrullayev/e5a02253190c560d6a0df20f234f0576 to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
creationTimestamp: null
name: test
spec:
replicas: 1
template:
metadata:
creationTimestamp: null
labels:
service: test
spec:
containers:
image: test
name: test
ports:
- containerPort: 80
resources:
limits:
memory: 300Mi
requests:
memory: 100Mi
volumeMounts:
- name: "config"
mountPath: "/<existing folder>/<file1>"
subPath: "<file1>"
- name: "config"
mountPath: "/<existing folder>/<file2>"
subPath: "<file2>"
restartPolicy: Always
volumes:
- name: "config"
configMap:
name: "config"
restartPolicy: Always
status: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment