-
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.
Add windows driver installation support
This PR adds windows driver support. It adds a windows base dir to install base yaml files. It also adds a windows alpha kustomization file. To install driver for windows, first set env NODE_OS=windows and GCE_PD_DRIVER_VERSION=alpha and run deploy/kubernetes/deploy-driver.sh script. This PR also reorgnize the dir structure for linux version. Now under overlay, we have a linux and a windows dir. Under each of them, we have alpha, stable, etc. Currently windows only has alpha version.
- Loading branch information
Showing
24 changed files
with
398 additions
and
58 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
WARNING: DO NOT USE THE ALPHA VERSION OF THE DRIVER FOR PRODUCTION | ||
|
||
Alpha features are unsupported and may be unstable and have breaking changes across releases. |
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,5 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
bases: | ||
- ../stable | ||
|
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,8 @@ | ||
kind: DaemonSet | ||
apiVersion: apps/v1 | ||
metadata: | ||
name: csi-gce-pd-node | ||
spec: | ||
template: | ||
spec: | ||
hostNetwork: true |
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,30 @@ | ||
kind: DaemonSet | ||
apiVersion: apps/v1 | ||
metadata: | ||
name: csi-gce-pd-node | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: gce-pd-driver | ||
image: gke.gcr.io/gcp-compute-persistent-disk-csi-driver | ||
securityContext: | ||
privileged: true | ||
volumeMounts: | ||
- name: kubelet-dir | ||
mountPath: /var/lib/kubelet | ||
mountPropagation: "Bidirectional" | ||
- name: plugin-dir | ||
mountPath: /csi | ||
- name: device-dir | ||
mountPath: /dev | ||
# The following mounts are required to trigger host udevadm from | ||
# container | ||
- name: udev-rules-etc | ||
mountPath: /etc/udev | ||
- name: udev-rules-lib | ||
mountPath: /lib/udev | ||
- name: udev-socket | ||
mountPath: /run/udev | ||
- name: sys | ||
mountPath: /sys |
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,30 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
bases: | ||
- ../../../base | ||
patchesStrategicMerge: | ||
- enableHostNetwork.yaml | ||
- gcepd.yaml | ||
- noderegistrar.yaml | ||
- volumes.yaml | ||
images: | ||
- name: gke.gcr.io/gcp-compute-persistent-disk-csi-driver | ||
# Don't change stable image without changing pdImagePlaceholder in | ||
# test/k8s-integration/main.go | ||
newName: gke.gcr.io/gcp-compute-persistent-disk-csi-driver | ||
newTag: "v0.7.0-gke.0" | ||
- name: gke.gcr.io/csi-provisioner | ||
newName: gke.gcr.io/csi-provisioner | ||
newTag: "v1.5.0-gke.0" | ||
- name: gke.gcr.io/csi-attacher | ||
newName: gke.gcr.io/csi-attacher | ||
newTag: "v2.1.1-gke.0" | ||
- name: gke.gcr.io/csi-node-driver-registrar | ||
newName: gke.gcr.io/csi-node-driver-registrar | ||
newTag: "v1.2.0-gke.0" | ||
- name: gke.gcr.io/csi-resizer | ||
newName: gke.gcr.io/csi-resizer | ||
newTag: "v0.4.0-gke.0" | ||
- name: gke.gcr.io/csi-snapshotter | ||
newName: gke.gcr.io/csi-snapshotter | ||
newTag: "v2.1.1-gke.0" |
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,17 @@ | ||
kind: DaemonSet | ||
apiVersion: apps/v1 | ||
metadata: | ||
name: csi-gce-pd-node | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: csi-driver-registrar | ||
args: | ||
- "--v=5" | ||
- "--csi-address=/csi/csi.sock" | ||
- "--kubelet-registration-path=/var/lib/kubelet/plugins/pd.csi.storage.gke.io/csi.sock" | ||
lifecycle: | ||
preStop: | ||
exec: | ||
command: ["/bin/sh", "-c", "rm -rf /registration/pd.csi.storage.gke.io /registration/pd.csi.storage.gke.io-reg.sock"] |
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,44 @@ | ||
kind: DaemonSet | ||
apiVersion: apps/v1 | ||
metadata: | ||
name: csi-gce-pd-node | ||
spec: | ||
template: | ||
spec: | ||
nodeSelector: | ||
kubernetes.io/os: linux | ||
volumes: | ||
- name: registration-dir | ||
hostPath: | ||
path: /var/lib/kubelet/plugins_registry/ | ||
type: Directory | ||
- name: kubelet-dir | ||
hostPath: | ||
path: /var/lib/kubelet | ||
type: Directory | ||
- name: plugin-dir | ||
hostPath: | ||
path: /var/lib/kubelet/plugins/pd.csi.storage.gke.io/ | ||
type: DirectoryOrCreate | ||
- name: device-dir | ||
hostPath: | ||
path: /dev | ||
type: Directory | ||
# The following mounts are required to trigger host udevadm from | ||
# container | ||
- name: udev-rules-etc | ||
hostPath: | ||
path: /etc/udev | ||
type: Directory | ||
- name: udev-rules-lib | ||
hostPath: | ||
path: /lib/udev | ||
type: Directory | ||
- name: udev-socket | ||
hostPath: | ||
path: /run/udev | ||
type: Directory | ||
- name: sys | ||
hostPath: | ||
path: /sys | ||
type: Directory |
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,15 @@ | ||
WARNING: DO NOT USE THE STAGING-LATEST VERSION OF THE DRIVER FOR PRODUCTION | ||
DISCLAIMER: THE LATEST IMAGE IS CONSTANTLY CHANGING WITH DEVELOPMENT AND CAN BE | ||
BROKEN AT ANY TIME | ||
|
||
This is the absolute cutting edge development Driver, it is intended for testing | ||
and development only and can have vast differences in | ||
functionality/behavior/configuration. Use only to try the newest features that | ||
are not guaranteed to work yet. | ||
|
||
APPROXIMATE CHANGELOG in latest: | ||
* Topology | ||
* RePD | ||
* Volume ID Format Changed | ||
* Node ID Format Changed | ||
* Parameter "zone" Removed |
11 changes: 11 additions & 0 deletions
11
deploy/kubernetes/overlays/linux/dev/controller_always_pull.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 @@ | ||
kind: StatefulSet | ||
apiVersion: apps/v1 | ||
metadata: | ||
name: csi-gce-pd-controller | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: gce-pd-driver | ||
imagePullPolicy: Always | ||
|
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,13 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
bases: | ||
- ../alpha | ||
patches: | ||
- controller_always_pull.yaml | ||
- node_always_pull.yaml | ||
images: | ||
# Replace this with your private image names and tags | ||
- name: gke.gcr.io/gcp-compute-persistent-disk-csi-driver | ||
newName: gcr.io/dyzz-csi-staging/csi/gce-pd-driver | ||
newTag: "latest" | ||
|
11 changes: 11 additions & 0 deletions
11
deploy/kubernetes/overlays/linux/dev/node_always_pull.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 @@ | ||
kind: DaemonSet | ||
apiVersion: apps/v1 | ||
metadata: | ||
name: csi-gce-pd-node | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: gce-pd-driver | ||
imagePullPolicy: Always | ||
|
1 change: 1 addition & 0 deletions
1
deploy/kubernetes/overlays/linux/prow-gke-release-staging-head/README.md
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 @@ | ||
These overlays are intended to be only used by prow for CI testing. |
23 changes: 23 additions & 0 deletions
23
deploy/kubernetes/overlays/linux/prow-gke-release-staging-head/kustomization.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,23 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
bases: | ||
- ../base | ||
images: | ||
- name: gke.gcr.io/gcp-compute-persistent-disk-csi-driver | ||
newName: gcr.io/gke-release-staging/gcp-compute-persistent-disk-csi-driver | ||
newTag: "latest" | ||
- name: gke.gcr.io/csi-provisioner | ||
newName: quay.io/k8scsi/csi-provisioner | ||
newTag: "canary" | ||
- name: gke.gcr.io/csi-attacher | ||
newName: quay.io/k8scsi/csi-attacher | ||
newTag: "canary" | ||
- name: gke.gcr.io/csi-node-driver-registrar | ||
newName: quay.io/k8scsi/csi-node-driver-registrar | ||
newTag: "canary" | ||
- name: gke.gcr.io/csi-resizer | ||
newName: quay.io/k8scsi/csi-resizer | ||
newTag: "canary" | ||
- name: gke.gcr.io/csi-snapshotter | ||
newName: quay.io/k8scsi/csi-snapshotter | ||
newTag: "canary" |
1 change: 1 addition & 0 deletions
1
deploy/kubernetes/overlays/linux/prow-gke-release-staging-rc/README.md
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 @@ | ||
These overlays are intended to be only used by prow for CI testing. |
19 changes: 19 additions & 0 deletions
19
deploy/kubernetes/overlays/linux/prow-gke-release-staging-rc/enable_sidecar_metrics.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 @@ | ||
# for external-provisioner | ||
- op: add | ||
path: /spec/template/spec/containers/0/args/- | ||
value: "--metrics-address=:22011" | ||
|
||
# for external-attacher | ||
- op: add | ||
path: /spec/template/spec/containers/1/args/- | ||
value: "--metrics-address=:22012" | ||
|
||
# for external-resizer | ||
- op: add | ||
path: /spec/template/spec/containers/2/args/- | ||
value: "--metrics-address=:22013" | ||
|
||
# for external-snapshotter | ||
- op: add | ||
path: /spec/template/spec/containers/3/args/- | ||
value: "--metrics-address=:22014" |
Oops, something went wrong.