Skip to content

Commit

Permalink
test alpine for kubespray
Browse files Browse the repository at this point in the history
  • Loading branch information
zonca committed Sep 19, 2018
1 parent 2ddd0e1 commit 25ec265
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions alpine-persistent-volume.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
apiVersion: v1
kind: Pod
metadata:
name: alpine
namespace: default
spec:
volumes:
- name: alpine-volume
persistentVolumeClaim:
claimName: alpine-pv-claim
containers:
- image: alpine:3.2
command:
- /bin/sh
- "-c"
- "sleep 60m"
imagePullPolicy: IfNotPresent
name: alpine
volumeMounts:
- name: alpine-volume
mountPath: /data/
restartPolicy: Never
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: alpine-pv-claim
namespace: default
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi

0 comments on commit 25ec265

Please sign in to comment.