forked from kubernetes/cloud-provider-openstack
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #198 from shiftstack/merge-bot-release-4.12
OCPBUGS-15971: Merge https://github.com/kubernetes/cloud-provider-openstack:release-1.25 into release-4.12
- Loading branch information
Showing
244 changed files
with
6,253 additions
and
2,219 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
19 changes: 19 additions & 0 deletions
19
examples/manila-csi-plugin/nfs/auto-topology-aware/pod.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: new-nfs-share-pod | ||
spec: | ||
containers: | ||
- name: web-server | ||
image: nginx | ||
imagePullPolicy: IfNotPresent | ||
volumeMounts: | ||
- name: mypvc | ||
mountPath: /var/lib/www | ||
nodeSelector: | ||
topology.kubernetes.io/zone: zone-1 | ||
volumes: | ||
- name: mypvc | ||
persistentVolumeClaim: | ||
claimName: new-nfs-share-pvc | ||
readOnly: false |
11 changes: 11 additions & 0 deletions
11
examples/manila-csi-plugin/nfs/auto-topology-aware/pvc.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: new-nfs-share-pvc | ||
spec: | ||
accessModes: | ||
- ReadWriteMany | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
storageClassName: csi-manila-nfs |
29 changes: 29 additions & 0 deletions
29
examples/manila-csi-plugin/nfs/auto-topology-aware/storageclass.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Topology constraints example: | ||
# | ||
# Let's have two Manila AZs: zone-{1..2} | ||
# Let's have six Nova AZs: zone-{1..6} | ||
# | ||
# Manila zone-1 is accessible from nodes in zone-1 only | ||
# Manila zone-2 is accessible from nodes in zone-2 only | ||
# | ||
# We're provisioning into zone-1 | ||
# availability parameter and allowedTopologies are empty, therefore the dynamic | ||
# share provisioning with automatic availability zone selection takes place. | ||
# The "volumeBindingMode" must be set to "WaitForFirstConsumer". | ||
|
||
apiVersion: storage.k8s.io/v1 | ||
kind: StorageClass | ||
metadata: | ||
name: csi-manila-nfs | ||
provisioner: nfs.manila.csi.openstack.org | ||
volumeBindingMode: WaitForFirstConsumer | ||
allowVolumeExpansion: true | ||
parameters: | ||
type: default | ||
autoTopology: "true" | ||
csi.storage.k8s.io/provisioner-secret-name: csi-manila-secrets | ||
csi.storage.k8s.io/provisioner-secret-namespace: default | ||
csi.storage.k8s.io/node-stage-secret-name: csi-manila-secrets | ||
csi.storage.k8s.io/node-stage-secret-namespace: default | ||
csi.storage.k8s.io/node-publish-secret-name: csi-manila-secrets | ||
csi.storage.k8s.io/node-publish-secret-namespace: default |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,3 @@ spec: | |
requests: | ||
storage: 1Gi | ||
storageClassName: csi-manila-nfs | ||
|
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
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
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
Oops, something went wrong.