text stringlengths 0 59.1k |
|---|
template: |
metadata: |
labels: |
app: nginx |
spec: |
containers: |
- name: nginx |
image: registry.k8s.io/nginx-slim:0.8 |
ports: |
- containerPort: 80 |
name: web |
volumeMounts: |
- name: www |
mountPath: /usr/share/nginx/html |
volumeClaimTemplates: |
- metadata: |
name: www |
spec: |
accessModes: [ "ReadWriteOnce" ] |
resources: |
requests: |
storage: 1Gi |
storageClassName: thin-disk |
<|endoftext|> |
# source: k8s_examples/_archived/volumes/vsphere/vsphere-volume-sc-fast.yaml type: yaml |
kind: StorageClass |
apiVersion: storage.k8s.io/v1 |
metadata: |
name: fast |
provisioner: kubernetes.io/vsphere-volume |
parameters: |
diskformat: zeroedthick |
fstype: ext3 |
<|endoftext|> |
# source: k8s_examples/_archived/volumes/vsphere/deployment.yaml type: yaml |
apiVersion: apps/v1 # for k8s versions before 1.9.0 use apps/v1beta2 and before 1.8.0 use extensions/v1beta1 |
kind: Deployment |
metadata: |
name: deployment |
spec: |
selector: |
matchLabels: |
app: redis |
replicas: 1 |
template: |
metadata: |
labels: |
app: redis |
spec: |
containers: |
- name: redis |
image: redis |
volumeMounts: |
- name: vmfs-vmdk-storage |
mountPath: /data/ |
volumes: |
- name: vmfs-vmdk-storage |
vsphereVolume: |
volumePath: "[Datastore] volumes/testdir" |
fsType: ext4 |
<|endoftext|> |
# source: k8s_examples/_archived/volumes/vsphere/vsphere-volume-pvcsc.yaml type: yaml |
kind: PersistentVolumeClaim |
apiVersion: v1 |
metadata: |
name: pvcsc001 |
spec: |
accessModes: |
- ReadWriteOnce |
resources: |
requests: |
storage: 2Gi |
storageClassName: fast |
<|endoftext|> |
# source: k8s_examples/_archived/volumes/vsphere/README.md type: docs |
# vSphere Volume |
- [Prerequisites](#prerequisites) |
- [Examples](#examples) |
- [Volumes](#volumes) |
- [Persistent Volumes](#persistent-volumes) |
- [Storage Class](#storage-class) |
- [Storage Policy Management inside kubernetes](#storage-policy-management-inside-kubernetes) |
- [Using existing vCenter SPBM policy](#using-existing-vcenter-spbm-policy) |
- [Virtual SAN policy support inside Kubernetes](#virtual-san-policy-support-inside-kubernetes) |
- [Stateful Set](#stateful-set) |
## Prerequisites |
- Kubernetes with vSphere Cloud Provider configured. |
For cloudprovider configuration please refer [vSphere getting started guide](http://kubernetes.io/docs/getting-started-guides/vsphere/). |
## Examples |
### Volumes |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.