Created
February 12, 2018 11:08
-
-
Save mwalzer/b24cc12856f0a24e0ae4893428393d73 to your computer and use it in GitHub Desktop.
creates a k8s pod mounting a pvc (must be bound already)
This file contains 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: v1 | |
kind: Pod | |
metadata: | |
name: init-test-pod-only | |
spec: | |
containers: | |
- name: svn-pod | |
image: mwalzer/alpine-svn | |
imagePullPolicy: IfNotPresent | |
# container will "crash" if no command is present as there is no default entrypoint as e.g. would be in nginx | |
command: ["/bin/sh"] | |
args: ["-c", "while true; do echo hello; sleep 10;done"] | |
volumeMounts: | |
- mountPath: "/workdir" | |
name: galaxy-pvc | |
volumes: | |
- name: galaxy-pvc | |
persistentVolumeClaim: | |
claimName: galaxy-pvc |
Author
mwalzer
commented
Feb 12, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment