-
Notifications
You must be signed in to change notification settings - Fork 150
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 #1869 from travisyx/revert-1861-automated-cherry-p…
…ick-of-#1826-#1836-#1838-#1841-upstream-release-1.15 Revert "Automated cherry pick of #1826: Add ControllerModifyVolume E2E tests#1836: Create documentation for ControllerModifyVolume and controller default#1838: Enable VolumeAttributesClass feature gate for CI runs#1841: Update logic to use SI for VACs"
- Loading branch information
Showing
16 changed files
with
151 additions
and
331 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
- op: add | ||
path: /spec/template/spec/containers/0/args/- | ||
value: --supports-dynamic-throughput-provisioning=hyperdisk-balanced,hyperdisk-throughput,hyperdisk-ml | ||
|
||
- op: add | ||
path: /spec/template/spec/containers/0/args/- | ||
value: --supports-dynamic-iops-provisioning=hyperdisk-balanced,hyperdisk-extreme |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,99 @@ | ||
apiVersion: storage.k8s.io/v1beta1 | ||
kind: VolumeAttributesClass | ||
metadata: | ||
name: silver | ||
driverName: pd.csi.storage.gke.io | ||
parameters: | ||
throughput: "350" | ||
iops: "6000" | ||
--- | ||
apiVersion: storage.k8s.io/v1beta1 | ||
kind: VolumeAttributesClass | ||
metadata: | ||
name: gold | ||
driverName: pd.csi.storage.gke.io | ||
parameters: | ||
throughput: "550" | ||
iops: "15000" | ||
--- | ||
apiVersion: storage.k8s.io/v1 | ||
kind: StorageClass | ||
metadata: | ||
name: balanced | ||
provisioner: pd.csi.storage.gke.io | ||
allowVolumeExpansion: true | ||
volumeBindingMode: WaitForFirstConsumer | ||
parameters: | ||
type: hyperdisk-balanced | ||
provisioned-throughput-on-create: "300Mi" | ||
provisioned-iops-on-create: "5000" | ||
--- | ||
apiVersion: storage.k8s.io/v1 | ||
kind: StorageClass | ||
metadata: | ||
name: throughput-optimized | ||
provisioner: pd.csi.storage.gke.io | ||
volumeBindingMode: WaitForFirstConsumer | ||
allowVolumeExpansion: true | ||
parameters: | ||
type: hyperdisk-balanced | ||
provisioned-throughput-on-create: "500Mi" | ||
provisioned-iops-on-create: "10000" | ||
|
||
--- | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: balanced-pvc | ||
spec: | ||
volumeAttributesClassName: silver | ||
storageClassName: balanced | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 256Gi | ||
--- | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: throughput-optimized-pvc | ||
spec: | ||
volumeAttributesClassName: silver | ||
storageClassName: throughput-optimized | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 256Gi | ||
--- | ||
kind: Pod | ||
apiVersion: v1 | ||
metadata: | ||
name: pod-demo | ||
spec: | ||
volumes: | ||
- name: pvc-demo-vol | ||
persistentVolumeClaim: | ||
claimName: balanced-pvc | ||
- name: data-vol | ||
persistentVolumeClaim: | ||
claimName: throughput-optimized-pvc | ||
containers: | ||
- name: pod-demo | ||
image: nginx:latest | ||
resources: | ||
limits: | ||
cpu: 10m | ||
memory: 80Mi | ||
requests: | ||
cpu: 10m | ||
memory: 80Mi | ||
ports: | ||
- containerPort: 80 | ||
name: "http-server" | ||
volumeMounts: | ||
- mountPath: "/usr/share/nginx/html" | ||
name: pvc-demo-vol | ||
- mountPath: "/data" | ||
name: data-vol |
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.