-
-
Save sathyanglg/2f1b926b9df947dc9344a72c3dde3c33 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: apps/v1beta1 | |
| kind: Deployment | |
| metadata: | |
| name: redis | |
| spec: | |
| template: | |
| metadata: | |
| labels: | |
| app: redis | |
| tier: backend | |
| spec: | |
| # Provision a fresh volume for the pod | |
| volumes: | |
| - name: data | |
| emptyDir: {} | |
| containers: | |
| - name: redis | |
| image: kubernetes/redis:v1 | |
| ports: | |
| - containerPort: 6379 | |
| # Mount the volume into the pod | |
| volumeMounts: | |
| - mountPath: /redis-master-data | |
| name: data # must match the name of the volume, above |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment