Skip to content

Instantly share code, notes, and snippets.

@rootfs
Created June 17, 2015 21:16
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 rootfs/dde5ac3f34f159937264 to your computer and use it in GitHub Desktop.
Save rootfs/dde5ac3f34f159937264 to your computer and use it in GitHub Desktop.
[root@gprfc028 kubernetes]# more /tmp/claim*.yaml
::::::::::::::
/tmp/claim1.yaml
::::::::::::::
kind: PersistentVolumeClaim
apiVersion: v1beta3
metadata:
name: docker-registry-config
spec:
accessModes:
- ReadWriteOnce
volumeName: docker-registry-config
resources:
requests:
storage: 1Mi
::::::::::::::
/tmp/claim-pod.yaml
::::::::::::::
kind: Pod
apiVersion: v1beta3
metadata:
name: mypod
labels:
name: frontendhttp
spec:
containers:
- name: myfrontend
image: dockerfile/nginx
ports:
- containerPort: 80
name: "http-server"
volumeMounts:
- mountPath: "/var/www/html"
name: mypd
volumes:
- name: mypd
persistentVolumeClaim:
claimName: docker-registry-config
::::::::::::::
/tmp/claim.yaml
::::::::::::::
kind: PersistentVolume
apiVersion: v1beta3
metadata:
name: docker-registry-config
spec:
capacity:
storage: 1Mi
accessModes:
- ReadWriteOnce
rbd:
monitors:
- 10.200.0.1:6789
- 10.201.0.1:6789
- 10.202.0.1:6789
pool: kube-common
image: docker-registry-config
fsType: ext4
user: admin
keyring: /etc/ceph/ceph.client.admin.keyring
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment