Skip to content

Instantly share code, notes, and snippets.

@afreeland
Created May 1, 2018 17:12
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 afreeland/02e445132109e051cd76bb1d4027cb3d to your computer and use it in GitHub Desktop.
Save afreeland/02e445132109e051cd76bb1d4027cb3d to your computer and use it in GitHub Desktop.
k8s: Pod kubernetes bare metal storage
apiVersion: v1
kind: Pod
metadata:
labels:
app: lettuce-redis
name: lettuce-redis-6684f999c4-kfdfr
namespace: default
ownerReferences:
- apiVersion: extensions/v1beta1
name: lettuce-redis-6684f999c4
spec:
containers:
image: bitnami/redis:4.0.8-r7
imagePullPolicy: IfNotPresent
name: lettuce-redis
ports:
- containerPort: 6379
name: redis
protocol: TCP
volumeMounts:
- mountPath: /bitnami/redis/data
name: redis-data
subPath: redis/data
volumes:
- name: redis-data
persistentVolumeClaim:
claimName: let-us-claim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment